Postgrey
From AsIsWiki
(Difference between revisions)
(Created page with "<div style='max-width:700px;text-align:justify;'> {|align="right" |[http://forum.asistech.org/viewforum.php?f=13 Форум] |} Postfix ==Postgrey== Установку ...") |
Revision as of 12:08, 4 April 2015
Форум |
Postgrey
Установку Postgrey выполняем из портов:
# cd /usr/ports/mail/postgrey/ # make install clean
В файл /usr/local/etc/postfix/main.cf добавляем:
unknown_local_recipient_reject_code = 550 smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, check_policy_service inet:127.0.0.1:10023
В файл /etc/rc.conf добавляем запуск postgrey (выше запуска postfix):
postgrey_enable="YES"
Запускаем postgrey:
# /usr/local/etc/rc.d/postgrey start
Перезапускаем postfix:
# postfix reload
Форум |