With Windows 10 you can get a certain advantages if you opt to use your Microsoft login. However, if you have something Unixoid (e.g. NAS4Free) for your file server you will quickly notice you need to remind it of your user name. And no, solution is not as simple as renaming your user to your e-mail address since at character (@) cannot be used.
What needs to be done instead is to create a simple mapping file (I named mine
anita = firstname.lastname@example.org
anita = anita
josip = email@example.com
josip = josip
In that file you map user name received over network to the Unix user. Notice that multiple different names can be mapped to the same user.
Last step is getting Samba to actually use that file. How is that configured really varies with your system. For NAS4Free, you want to visit
Settings and into
Auxiliary parameters add path to the given mapping:
username map = /mnt/Config/samba.map
Now you can use your Windows 10 user e-mail to your heart's desire.
[2018-07-22: NAS4Free has been renamed to XigmaNAS as of July 2018]