Question

Email forwarding Multiple Domains (Postfix)

  • Posted January 29, 2014

Hi Here is my setup

DNS MX 1 mail.domain1.com A mail.domain1.com A @ ipaddress

Postfix

  • Installed it
  • my /etc/postfix/main.cf is:

myhostname = mail.domain1.com virtual_alias_domains = domain1.com domain2.com domain3.com virtual_alias_maps = hash:/etc/postfix/virtual alias_database = hash:/etc/aliases mydestination = localhost, localhost.localdomain, , localhost relayhost = mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128

my /etc/postfix/virtual: @domain1.com xxx@mail.com @domain2.com xxx@mail.com @domain3.com xxx@mail.com

Its not working so I must be doing something wrong.

Any advice would be much aprreciated

thanks

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.

Did you add MX records to the rest of the domains? You also need to run “newaliases” and restart postfix.