postfix multiple domains

December 11, 2013 4.4k views
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
4 Answers
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?
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.

And the other one is mydomain1.com`s emails is received but in the email header have this:
"Received: from server.mydomain1.com (mydomain3.com. [MY DROPLET IP])"
i think is the problem is with the myorigin = /etc/mailname part of the config, that file has one line mydomain3.com
What operating system are you working with?
Have another answer? Share your knowledge.