I just made one myself. You caught me when I was trying to figure this out too.
I’m still trying to figure it out. I believe you’ll want the FULL NAME option and set it back to “Always”.
Then browse to the "System Settings/Server Templates/Default Settings - (If the Default Settings template is the one affecting your domains that you are trying to setup).
Then go to the "Mail for domain" page and set the option in "Format for usernames that include domain" to "username@domain".
Then you’ll get what you want. The problem that just happened to me is that two user with same UID were created. I don’t know why or how it happened or if it works. I have two browser windows open on separate machines and don’t know if I clicked to quit to see changes or if deleting the same user over and over until I get it right causes issues.
I think that maybe it has something to do with my operating system (Fedora 6) and a user name with the @ symbol. I will keep playing with it.
I need the same username under separate domains too. You can also have alias once you get them set up correctly. That is my plan after I’m finished creating them.
Here’s what the help windows say for the option we’ve been discussing.
under default templates/email for domain:
<b>Format for usernames that include domain</b>
When a username has the domain name appended, this option selects the format. Not all options are available on all OS platforms, as some characters are not allowed in usernames. Whether the domain name is the full username, i.e. "virtualmin.com", or just the first part, i.e. "virtualmin", is dictated by the next option.
under module config/default for new domains:
Include domain name in usernames?
This option selects how usernames will be generated. By default, Virtualmin will use the base username requested, but if it clashes with an existing username it will append the domainname in the manner specified in the next option. If consistency is preferable, set this to "Always", and all usernames within sub-servers will have the domain name appended.
Domain name style in usernames
This option determines whether the domain name used in usernames that contain the domain will be the full domain name, i.e. "virtualmin.com", just the first part, i.e. "virtualmin", or the user/group name for the domain. By default, the group name is used for new top-level servers, and the first part of the domain is used for sub-servers.
In some environments, it may be easier for users to understand a username like "email@example.com" for their POP/IMAP or FTP login name than "joeuser.virtualmin".
I am using the "Virtualmin Framed Theme" which provides help links under the titles of each option.