How to create backup account in zimbra
Here I am creating an account in which I want all incoming and outgoing mail in specific zimbra account
Create an account like : report@example.com
$zmprov ca report@example.compasswordhere
Go to config file and put backup parameter below of file
$vim /opt/zimbra/postfix/main.cf
always_bcc = report@example.com
Reload postfix service
#postfix reload
Test mail both incoming and outgoing.
---------------------------------------------
Create a separate backup account for each user in zimbra
Create an account for shahzad@example.com
Create incoming mail account: shahzad.in@example.com
Create outgoing mail account: shahzad.out@example.com
$zmprov ca shahzad@example.compasswordhere
$zmprov ca shahzad.in@example.com passwordhere
$zmprov ca shahzad.out@example.compasswordhere
Go to config file and put backup parameter below of file
For Zimbra 8.6 version
$vim /opt/zimbra/postfix/main.cf
sender_bcc_maps = texthash:/opt/zimbra/postfix/conf/archivelist-sending
recipient_bcc_maps = texthash:/opt/zimbra/postfix/conf/archivelist-receving
For below zimbra 8.6 version
sender_bcc_maps = hash:/opt/zimbra/postfix/conf/archivelist-sending
recipient_bcc_maps = hash:/opt/zimbra/postfix/conf/archivelist-receving
Reload config file
$postfix reload
Now create backup file
$ touch /opt/zimbra/postfix/conf/archivelist-sending
$ touch /opt/zimbra/postfix/conf/archivelist-receving
Check permission of file
$ ls -l /opt/zimbra/postfix/conf/archivelist-sending
-rw-r----- 1 zimbra zimbra 0 Mar 26 02:00 /opt/zimbra/postfix/conf/archivelist-sending
$ ls -l /opt/zimbra/postfix/conf/archivelist-receving
-rw-r----- 1 zimbra zimbra 0 Mar 26 02:08 /opt/zimbra/postfix/conf/archivelist-receving
Set backup for outgoing
$vim /opt/zimbra/postfix/conf/archivelist-sending
Set backup for incoming
$vim /opt/zimbra/postfix/conf/archivelist-receving
Update backup file using portmap command
$postmap /opt/zimbra/postfix/conf/archivelist-sending
$postmap /opt/zimbra/postfix/conf/archivelist-receving
Now Test backup