Remove .virtualservername extension?

Hey I wanted to know how to remove the extension which is like myname.myserver and just make it myname for the imap/pop/smtp login. Thanks

You can toggle that behavior in System Settings -> Virtualmin Configuration -> Defaults for new domains : Include domain name in usernames.

This setting only applies to new domains though; existing user accounts need to be deleted and re-created for the modification to apply.