postfix spamassassin транспорт внешняя система

postfix spamassassin транспорт внешняя система

Локальный запуск spamassassin на почтовой системе вызывает проблемы с загрузкой. В другой системе, которая использует Exim в качестве MTA, отправка почты в массив внешних систем spamassassin была всего лишь изменением одной строки в конфигурации, и они были запрошены по кругу.

Теперь в новой настройке Postfix транспорт для сканирования спама выглядит следующим образом в /etc/postfix/master.cf:

smtpd pass - - - - 200 smtpd -o content_filter=spamassassin

и определение spamassassin также в /etc/postfix/master.cf:

spamassassin unix - n n - - pipe user=debian-spamd argv=/usr/bin/spamc -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}

Я хотел бы снять нагрузку с этой системы, но не могу найти никакой документации, специально предназначенной для postfix-транспортов для внешнего spamassassin. Самое близкое, что я нашел, это то, что я нашел в postfix docs http://www.postfix.org/FILTER_README.htmlв разделе «Пример расширенного фильтра содержимого», что заставило меня попытаться изменить транспортную строку следующим образом:

smtpd pass - - - - 200 smtpd -o content_filter=scan:<ExternalIP>:<ExternalPort>

Однако это сделало транспорт недоступным.

решение1

spamassassin unix  -       n       n       -       -       pipe
  user=debian-spamd argv=/usr/bin/spamc -d <external_host1>,<external_host2>,<external_host3> -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}

Это сработало, хотя это не циклический алгоритм, а просто отказоустойчивость.

Такжеman spamc

Configuration File

The above command-line switches can also be loaded from a configuration file.

The format of the file is similar to the SpamAssassin rules files; blank lines and lines beginning with "#" are ignored. Any space-separated words are considered additions to the command line, and are prepended. Newlines are treated as equivalent to spaces. Existing command line switches will override any settings in the configuration file.

If the -F switch is specified, that file will be used. Otherwise, "spamc" will attempt to load spamc.conf in "SYSCONFDIR" (default: /etc/mail/spamassassin). If that file doesn't exist, and the -F switch is not specified, no configuration file will be read.

Example:

# spamc global configuration file

# connect to "server.example.com", port 783
-d server.example.com
-p 783

это вещь.

Связанный контент