Archiving with Zimbra

The following manual describes the configuration of a zimbra mailserver for archiving.
All E-Mails that are processed by Postfix (incoming, outgoing and internal) will be sent as blind copy via smtp to the REDDOXX Appliance.
The REDDOXX Appliance recieves E-Mails via smtp connector and archives the E-Mails accordingly.
De-Duplication will take place in case the REDDOXX Appliance is integrated in mail flow, so that an e-mail is only archived once.

Adjustments with the zimbra user
Login as zimbra user on your zimbra linux shell:

su - zimbra

Enter following commands to set the always_bcc:

export PATH=/opt/zimbra/bin:$PATH
zmlocalconfig -e always_bcc=maildepot@reddoxxarchive.local
postconf -e always_bcc=maildepot@reddoxxarchive.local

With this option activated, a blind copy will be generated for all incoming and outgoing mails, as well as all internal mail traffic which is sent to the specified address.
Please note that the domain of the address may not actually exist, the domain needs to be a fictitious domain.

Configure a transport rule
Create a rule which forwards all copies to the REDDOXX MailDepot.
Use the hostname or the IP address of the REDDOXX appliance as the target of the transport rule.
Enter the port of the SMTP connector at the end of the IP address separated by a colon.
The default port of the SMTP Connector for the MailDepot of the REDDOXX is: 1025.
Reconfigure the transport map file "/opt/zimbra/common/conf/transport" according to the following transport rule.
Be sure to enter the correct IP address and port.

Adjust the file "/opt/zimbra/common/conf/transport" and add the transport for the rule at the bottom:


maildepot@reddoxxarchive.local smtp:

To enable the new configuration, the file must be converted into a so-called hash table:

postmap lmdb:/opt/zimbra/common/conf/transport
zmprov ms <zimbra FQDN> zimbraMtaTransportMaps "lmdb:/opt/zimbra/common/conf/transport,proxy:ldap:/opt/zimbra/conf/"

Reload the new Postfix configuration and test
Reload the Postfix configuration:

postfix reload

Send a test mail and check the logfile with:

tail -f /var/log/mail.log

The following steps are required to configure the smtp connector:

  1. Connect via web interface to the appliance (http://Appliance-IP/rws/desktop)
  2. Select the area MailDepot
  3. Select "SMTP Connector" in the left menu
  4. Click "Settings"
  5. Select "Additional static E-Mail Addresses for ACL" and choose "Mail Header only"
  6. Confirm the Settings with "Save"
  7. Activate the smtp connector with "Enable Service"

More Information to the configuration of the smtp connector can be found in the manual