Mail Archiving in Zimbra Collaboration Suite Open-Source Edition

Archiving mail with the ability to view it in the future is an important feature for large businesses. It can be used to deal with various complaints, conduct investigations and in a number of other situations. Also, this feature is useful for SaaS providers to protect themselves in the event that an unscrupulous user uses their service to commit illegal acts.

Especially for these purposes, the Zimbra Archiving and Discovery plugin was created, which allows you to archive outgoing and incoming letters in each mailbox, and even letters saved in drafts. However, this solution is not without its downsides. Firstly, it works only with the paid Zimbra Collaboration Suite Network Edition, and secondly, it works only within the web client and will not archive anything when using desktop or mobile mail clients. In this regard, we will tell you how to implement archiving of incoming and outgoing mail in the free ZImbra Collaboration Suite Open-Source Edition. which, moreover, will archive letters that are sent from any mail clients.

Mail Archiving in Zimbra Collaboration Suite Open-Source Edition
Mail archiving is implemented through the built-in Postfix BCC function. It works as follows: the system administrator sets the archive mail address for the mailbox, enter certain settings, after which each incoming and outgoing letter will be copied to the archive mail, in which you can later find the desired letter. We recommend creating a separate domain for the mail archive. This will greatly simplify the management of archive mailboxes in the future.

Archiving outgoing emails

Mail Archiving in Zimbra Collaboration Suite Open-Source Edition

Set up archiving of outgoing emails. Let's take an account as an example. [email protected] and make an archive mailbox for it [email protected]. In order for outgoing messages to be archived, a number of changes must be made to the Postfix settings. To do this, you need to open the file /opt/zimbra/postfix/conf/main.cf and add the line at the end sender_bcc_maps = lmdb:/opt/zimbra/postfix/conf/sender_bcc. After that, you need to create a file /opt/zimbra/postfix/conf/sender_bcc and add to it the mailboxes that you plan to archive, as well as the mailboxes to which the archived messages will be sent. It is possible to archive several mailboxes into one. This is done as follows:

[email protected] [email protected]
[email protected] [email protected]
[email protected] [email protected]

Mail Archiving in Zimbra Collaboration Suite Open-Source Edition

After all mailboxes have been added, all that remains is to run the command postmap /opt/zimbra/postfix/conf/sender_bcc and reload Postfix with the command postfix reload. As follows from our example, after a reboot, all outgoing emails from accounts [email protected] ΠΈ [email protected] will go to the same mailbox [email protected], and the account's outgoing emails [email protected] will be archived in the mailbox [email protected]

Archiving incoming emails

Now let's set up automatic archiving of incoming emails. To do this, you can use the same Postfix BCC. As in the case of archiving outgoing emails, you need to open the file /opt/zimbra/postfix/conf/main.cf and add a line to it recipient_bcc_maps = lmdb:/opt/zimbra/postfix/conf/recipient_bcc. After that, you need to create a file /opt/zimbra/postfix/conf/recipient_bcc and add the necessary postal addresses to it in the same format.

Mail Archiving in Zimbra Collaboration Suite Open-Source Edition

After adding boxes, you need to run the command postmap /opt/zimbra/postfix/conf/recipient_bcc and reload Postfix with the command postfix reload. Now all incoming emails from accounts [email protected] ΠΈ [email protected] will be archived in the mailbox [email protected], and the account's incoming emails [email protected] will be copied to the mailbox [email protected].

Mail Archiving in Zimbra Collaboration Suite Open-Source Edition
An example of configuring an incoming message filter

We especially note that each time you add or remove email addresses in the lists /opt/zimbra/postfix/conf/sender_bcc ΠΈ /opt/zimbra/postfix/conf/recipient_bcc you need to re-execute the command postmap specifying the modified list, and reload Postfix. We also recommend using the Zimbra OSE mail filters based on the sender and recipient names so that incoming and outgoing messages are sorted into folders and it will be easier for you to find the right letter later.

Mail Archiving in Zimbra Collaboration Suite Open-Source Edition
An example of configuring an outgoing message filter

To search for letters in the created mail archives, you can later use the built-in search of Zimbra OSE. Also note that emails stored in the archive are much longer than in the account, which means that they need to set a higher quota, as well as a retention policy with a higher period. In the event that your archive mailboxes are stored on a separate domain, this will be much easier to do.

For all questions related to Zextras Suite, you can contact the Representative of Zextras Ekaterina Triandafilidi by e-mail [email protected]

Source: habr.com

Add a comment