Question
Email forwarding Multiple Domains (Postfix)
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
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.
×
Hi, in case anyone still need it: this might help: https://www.debian-administration.org/article/243/Handling_mail_for_multiple_virtual_domains_with_postfix