Postgrey
From AsIsWiki
Форум |
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
Форум |