Question

postfix multiple domains

  • Posted December 11, 2013

I configured the postfix, but i dont sure it is ok, i have 3 domains like: mydomiain1.com mydomiain2.com mydomiain3.com

my /etc/postfix/main.cf myhostname = server.mydomiain1.com alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = $myhostname, /etc/postfix/virtual/domains virtual_maps = hash:/etc/postfix/virtual/addresses

the /etc/postfix/virtual/addresses: mydomiain1.com DOMAIN user1@ user1@gmail.com admin@gmail.com user2@ user2@gmail.com admin@gmail.com @mydomiain1.com admin@gmail.com

mydomiain2.com DOMAIN user3@ user3@gmail.com admin@gmail.com user4@ user4@gmail.com admin@gmail.com @mydomiain2.com admin@gmail.com

mydomiain3.com DOMAIN user5@ user5@gmail.com admin@gmail.com user6@ user6@gmail.com admin@gmail.com @mydomiain3.com admin@gmail.com

and the/etc/postfix/virtual/domains: mydomiain1.com mydomiain2.com mydomiain3.com

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Debian 7

What operating system are you working with?

Yes i have two problem with this setup, first one is i not receive any email sent to mydomain2.com. all of the domains dns settings is the same. <br> <br>And the other one is mydomain1.com`s emails is received but in the email header have this: <br>“Received: from server.mydomain1.com (mydomain3.com. [MY DROPLET IP])” <br>i think is the problem is with the myorigin = /etc/mailname part of the config, that file has one line mydomain3.com

Are you encountering any errors when you try to send mail? Did you follow a tutorial when you set this up? If so, which one?