username@domain login name for email account with virtualmin and postfix

For IMAP and POP3 authentication, all you have to do is change the “Format for usernames that include domain” in:

Virtualmin > System Settings > Server Templates > Default Settings > Mail for Domain

to be “user@domain”.

However, Cyrus SASL, which is what handles the SMTP authentication, requires a special flag on it to handle user@domain usernames, a -r in the settings. The magical file you need to edit is /etc/sysconfig/saslauthd. At the bottom you will see the following:

Additional flags to pass to saslauthd on the command line.
See saslauthd(8) for the list of accepted flags. FLAGS=-r

Just make your FLAGS= like mine does. This will pass the -r to the sasl authentication daemon, and your user@domain authentication will work!

Let me know if you have any other questions.

Originally found at :

Virtualmin domain(s) configuration files

When you setup domain with virtualmin, sometime you want to change after while.

eg., administrative username

modify domain(s) without re-setup entire domain(s), edit following file.

1. [root@ns99 ~]# cd /etc/webmin/virtual-server/

2. [root@ns99 virtual-server]# cat sample.local.act

change sample.local as your domain name

3. see where it says domains=117160406314152

remember number of domains.

4. [root@ns99 virtual-server]# cd domains/

5. [root@ns99 domains]# vim 117160406314152 number you find before.

6. edit and save. done!