Hello Following online documentation I have properly set up a secondary back up mx server (for domain example.com) which relay email properly to primary.
But there is a problem with how to have mails generated automatically such as mails from cron delivered to fully qualified example.com addresses without having to check all the application config. For example I would like logwatch email normally directed to root on the back up machine to go to an example.com virtual address. I would like cron email from user1 to go to another example.com address. On backup server, postconf -n alias_maps = inet_interfaces = 9.8.7.6 mynetworks = 127.0.0.0/8 myorigin = example.com relay_domains = example.com relay_recipient_maps = hash:/etc/postfix/relay_recipients relayhost = [a.example.com]:24 smtp_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt smtp_tls_cert_file = /etc/pki/tls/private/b.crt.key.pem smtp_tls_loglevel = 1 smtp_tls_security_level = may smtpd_helo_restrictions = check_sender_access,hash:/etc/postfix/helo,reject_unknown_helo_hostname smtpd_recipient_restrictions = permit_mynetworks reject_unauth_destination smtpd_tls_ask_ccert = yes smtpd_tls_cert_file = /etc/pki/tls/private/e.crt.key.pem smtpd_tls_loglevel = 1 transport_maps = hash:/etc/postfix/transport Thanks in advance