VitualMin is a nice web hosting panel which handles most of the things like Apache server, FTP users and Mail server. Once you are done with VirtualMin installation, the next step is adding a new server for your site and of course email IDs for the users.
Problem here is whenever you add user, the emails are created in normal ‘email@example.com’ format but the login details and display are still in UNIX dot level i.e. ‘username.domain.com’. This is neither user friendly for people to login, nor looks good. So, question is how to change user.domain.com to firstname.lastname@example.org. This is pretty simple.
Note: This fix was tested on VirtualMin GPL running Ubuntu 14.04 x64 installed at RamNode server. However, the same options should be available under any VirtualMin version.
Login to your VirtualMin control panel from your browser.
Change user.domain.com to email@example.com
Navigate to ‘Server Templates‘ from sidebar under ‘System Settings‘.
Sidebar –> System Setting –> Server Templates
Select ‘Default Template/Settings‘.
Then you will need to select ‘Mail for domain‘ from the dropdown list.
Find the option ‘Format for usernames that include domain‘. Click on dropdown and there are many formats to select from. Select the one which says ‘username@domain‘
Now, restart the server for previous users to be changed. You can now add new user and you will notice that it is not ‘user.domain.com’ but ‘firstname.lastname@example.org’. If for some reasons, it doesn’t work for previously added users after reboot, then you will need to delete the user (keep files and mail) and then add again.