ответвление с помощью Milter протокола
- Убедитесь, что вы используете Postfix версии 2.4.6 или выше.
- Настройте Mailarchiva для получения трафика по протоколу Milter
- Настройка Postfix
Добавьте данные строки в файл конфигурации main.cf Postfix, где 127.0.0.1:8091 IP адрес и порт где запущен Milter коннектор Архива
main.cfПерезапустите postfix
Приблизительно это будет выглядеть так:
В Postfix 2.6, milter_default_action может быть установлено hold, означающей, если сервер архивации недоступен, сообщения будут помещаться в hold очередь Postfix. После восстановления соединения с сервером архивирования, администратор может отправить все сообщения из hold очереди на MailArhchiva.
BCC ответвление
This approach involves configuring Postfix to send copies of all emails to a specific journal mailbox and then configuring Архива to retrieve emails from the mailbox using IMAP.
Архива Configuration
- Click Configuration->Listeners.
- Select SMTP Listener in the drop down and then click the New Listener button.
- Check "Listen for incoming SMTP/Exchange requests"
- Leave the SMTP port as 8091
- Click Save
To accomplish this:
- Create a new mailbox called "journal" and set a password (on Unix, you would typically use the useradd command to create a new user)
Add the following line to Postfix's main.cf:
always_bcc = journal@domain.com (replace journal@domain with your domain)
- In Архива, select Connections -> IMAP Client -> New Connection. Add a new IMAP journal account connection to the IMAP service running on the Postfix server.
- Optionally: enable IMAP Idle to receive message arrival notification as opposed to polling (if you later find archiving stops after a period, you will need to disable IMAP Idle again)