I am trying to setup a backup postfix mail server for a few domains. I tested this at home with a personal domain and have it working fine. I've now come to build the server at my office where I have replicated the configuration. Upon testing all email for each domain bounces back stating...
"mail for domain.com loops back to myself"
The test box still works (I followed the guide from
here)so I have been trying to compare configuration but haven't been able to find the answer. A lot of other sites mention the fact you need entries in the "transport" file which when testing does indeed work. This means though for every domain I plan to look after I now need to edit two files and run the command to turn the file into a binary. I also need to watch for changes my customers make to their DNS records. My test server doesn't use the transport file at all and is working as needed. It solely uses DNS to work out an MX that accepts mail for this domain.
Hopefully someone can tell me what's wrong with my production server...
Production Server:
Code:
alias_database = $alias_maps
alias_maps = hash:/etc/postfix/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
html_directory = no
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
mynetworks_style = subnet
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = no
relay_domains = $mydestination, domain.com
relay_recipient_maps =
sample_directory = /etc/postfix/sample
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, permit_mx_backup
unknown_local_recipient_reject_code = 550
Test Server:
Code:
alias_database = $alias_maps
alias_maps = hash:/etc/postfix/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
html_directory = no
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
mynetworks_style = subnet
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = no
relay_domains = $mydestination, domain.com
relay_recipient_maps =
sample_directory = /etc/postfix/sample
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, permit_mx_backup
unknown_local_recipient_reject_code = 550