Don't put `$mydomain` in `mydestination` if you want backup your domain too. It took me hours to find it out. Check
http://www.postfix.org/STANDARD_CONF...ME.html#backup to find out more.
So, to backup even example.com main.cf should be:
Code:
# file /etc/postfix/main.cf
myhostname = mx2.example.com
mydomain = example.com
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname
smtpd_banner = $mydomain MX Backup
biff = no
alias_maps =
relay_domains = hash:/etc/postfix/relay_domains
relay_recipient_maps = hash:/etc/postfix/relay_recipients
queue_run_delay = 200s
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks,
reject_non_fqdn_hostname,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unauth_destination,
reject_unauth_pipelining,
reject_invalid_hostname,
reject_rbl_client zen.spamhaus.org
smtpd_helo_required = yes
disable_vrfy_command = yes
smtpd_data_restrictions =
reject_unauth_pipelining,
permit