Domain – Mail set up in multiple domain server

domainemailemail-serverpostfix

I have a server with one IP and multiple domains. Using Webmin, Postfix and Dovecot.

These domains are created automatically by webmin (and it creates the user, the user folder, database etc) but as I need to create multiple mail accounts on each domain I follow the following process (imagine I want to create the account info@somedomain.com):

  1. I create a specific user for that mail account, as I can't repeat info as username I prepend the domain name to the username (in this example: somedomaininfo)
  2. In webmin I go to Virtual Domains and create a new mapping in order to map info@somedomain.com to the user somedomaininfo
  3. Restart postfix and dovecot (I'm not sure if this is required)

After this everything works great but I'm in the process of migrating about 30 domains and repeating this steps in all domains is a little pain.

I would like to know:

  1. if this is the right way to do this.
  2. in case it's the right way, if this process can be more automatic (by installing some module or something like this).

Best Answer

You can use database to keep mail users settings and manage domain/users. With postfixadmin/vimbadmin it would be very easy

Related Topic