Email forwarding Multiple Domains (Postfix)

January 29, 2014 3.1k views
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
1 Answer
Did you add MX records to the rest of the domains? You also need to run "newaliases" and restart postfix.
Have another answer? Share your knowledge.