Backup incoming mail from zimbra system to another mail system
Edit /opt/zimbra/postfix/conf/mail.cf and add the following two lines.
sender_bcc_maps = pcre:/opt/zimbra/postfix/conf/archive_mail
recipient_bcc_maps = pcre:/opt/zimbra/postfix/conf/archive_mail
Create /opt/zimbra/postfix/conf/archive_mail, replacing the domain with the domain whose email you want to back up. /^(.*)@ezymailhosting.com$/ $1@backup.ezymailhosting.com The configuration above tells the system to BCC both incoming and outgoing email for ezymailhosting.com to backup.ezymailhosting.com. For example: When email arrives: TO: alice@ezymailhosting.com — the system sends a BCC to alice@backup.ezymailhosting.com. TO: bob@ezymailhosting.com — the system sends a BCC to bob@backup.ezymailhosting.com. When a user sends email: FROM: cathy@ezymailhosting.com — the system sends a BCC to cathy@backup.ezymailhosting.com. Edit /opt/zimbra/postfix/conf/transport to specify the backup email server for the system. backup.ezymailhosting.com smtp:[192.168.1.x] Replace 192.168.1.x with the IP address of the backup email server. Then run: cd /opt/zimbra/postfix/conf/ postmap transport After finishing the changes, restart the MTA service with: su - zimbra -c “zmmtactl restart”