...
- Убедитесь, что вы используете Postfix версии 2.4.6 или выше.
- Настройте Mailarchiva для получения трафика по протоколу Milter
- Настройка Postfix
Warning У ранних версий Postfix, milter клиент с ошибками, приводящий к архивированию сообщений с пустым телом. Postfix v2.3.4 и более ранних версий не работает с Архива из за ошибки в клиенте Postfix. В этом случае, используйте BCC SMTP.Добавьте данные строки в файл конфигурации main.cf Postfix, где 127.0.0.1:8091 IP адрес и порт где запущен Milter коннектор Архива
Code Block language bash title main.cf milter_default_action = tempfail smtpd_milters = inet:127.0.0.1:8092
Перезапустите postfix
...
Code Block | ||||
---|---|---|---|---|
| ||||
milter_default_action = tempfail smtpd_milters = unix:/var/run/spamass.sock inet:127.0.0.1:8092 |
In В Postfix 2.6, milter_default_action can be set to hold, meaning if the archive server goes down, the messages will be placed indefinitely in a hold queue. Once the archiving service is restored, the administrator can intervene and process the messages in the hold queueможет быть установлено 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
...