The following manual describes the configuration of a postfix server.
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.
This document covers the that process for all (via always_bcc) or for one or more selected Domains.
Generate copies of emails (main.cf)
Add the always_bcc option in the Postfix configuration file main.cf as follows:
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.
Check, if the option transport_maps in the file main.cf already exists.
If not, add it:
transport_maps = hash:/etc/postfix/transport
If the option already exists, it is allowed to specify multiple transport maps in one single transport option.
Add your transport rule behind the existing one and separate it with a comma.
Example:
... = hash:/etc/postfix/some-special-rules, hash:/etc/postfix/transport
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 - /etc/postfix/transport according to the following transport rule.
Be sure to enter the correct IP address and port:
reddoxxarchive.local smtp:[192.168.1.30]:1025
To enable the new configuration, the file must be converted into a so-called hash table:
postmap /etc/postfix/transport
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
Configure Sender and Recipient Maps
Add the following bcc_maps to your postfix configuration in the file main.cf:
sender_bcc_maps = hash:/etc/postfix/sender_bcc
recipient_bcc_maps = hash:/etc/postfix/recipient_bcc
Then create the following two files:
touch /etc/postfix/sender_bcc
touch /etc/postfix/recipient_bcc
Adjust the content of the created sender and recipient files as follows:
@yourdomain.de maildepot@reddoxxarchive.local
@yourdomain.com maildepot@reddoxxarchive.local
@yourdomain.net 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.
After that, the corresponding postfix hash tables need to be created:
postmap /etc/postfix/sender_bcc
postmap /etc/postfix/recipient_bcc
Check, if the option transport_maps in the file main.cf already exists.
If not, add it:
transport_maps = hash:/etc/postfix/transport
If the option already exists, it is allowed to specify multiple transport maps in one single transport option.
Add your transport rule behind the existing one and separate it with a comma.
Example:
... = hash:/etc/postfix/some-special-rules, hash:/etc/postfix/transport
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 - /etc/postfix/transport according to the following transport rule.
Be sure to enter the correct IP address and port:
reddoxxarchive.local smtp:[192.168.1.30]:1025
To enable the new configuration, the file must be converted into a so-called hash table:
postmap /etc/postfix/transport
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:
More Information to the configuration of the smtp connector can be found in the manual