How To Archiving on Zimbra OSE (Auto BCC by Recipient)

Posted by

previously, we can archive every sent email from who users has been configured for archived. But, how to archive also email received for users that will archived? whether it can? Yes, we also can archive every received email with same method as previously. We can use auto bcc by recipient.

Auto bcc by recipient will archive/copy every email received by users who has been configured. Below is how to configure it

# Create domain archive on Zimbra. Example imanudin.archive. To do that, you can do via Zimbra Admin | Configure | Domains or via Command Line with the following command

su - zimbra
zmprov cd imanudin.archive

# Create account for archive. Example account user1@imanudin.net have account archive user1@imanudin.archive. To do that, you can do via Zimbra Admin | Manage or via Command Line with the following command

su - zimbra
zmprov ca user1@imanudin.archive passwordarchiveuser1

# Create rule on Zimbra for archive every received email to user that will be archived

vi /opt/zimbra/postfix/conf/main.cf

Add the following line on the bottom

recipient_bcc_maps = lmdb:/opt/zimbra/postfix/conf/recipient_bcc

# Create file /opt/zimbra/postfix/conf/recipient_bcc and fill with the users who will be archived

vi /opt/zimbra/postfix/conf/recipient_bcc

Fill with the following example

user1@imanudin.net      user1@imanudin.archive

# Postmap file /opt/zimbra/postfix/conf/recipient_bcc

postmap /opt/zimbra/postfix/conf/recipient_bcc

# Reload service Postfix Zimbra

postfix reload

Please try to sending email for user who have been configured auto bcc. Every sent email to user1@imanudin.net will be also copied to user1@imanudin.archive

Note :

– This guidance using Zimbra 8.5. If using old Zimbra and above guidance is not working, please change lmdb become hash

– Every add/change/delete users archives on /opt/zimbra/postfix/conf/recipient_bcc, don’t forget to doing postmap and reload Postfix Zimbra

If you have budget and want to simple archives users, consider to using Zimbra NE with more features available

Good luck and hopefully useful 😀

3 comments

  1. Hi,

    Thanks for this great article,it helped alot,only problem is it’s only forwarding internal emails,what i need to do is auto forward external mails too. For example my domain is abc.com if user:user1@abc.com receive an email from user2@abc.com recipient rule automatically forward a copy to incomingbackup@abc.com, but if user1 receive an e-mail from his/her external account then it’s not forwarding at all(External account set to deliver message to inbox). Is it possible to configure that way ?

      1. As far as i know those filters only works if user use the webmail but in my case all users are using outlook, so i’m stuck in this part.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.