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== Установку ...") |
|||
Line 1: | Line 1: | ||
<div style='max-width:700px;text-align:justify;'> | <div style='max-width:700px;text-align:justify;'> | ||
− | {| | + | {|style="float:right" |
|[http://forum.asistech.org/viewforum.php?f=13 Форум] | |[http://forum.asistech.org/viewforum.php?f=13 Форум] | ||
|} | |} | ||
Line 38: | Line 38: | ||
---- | ---- | ||
− | {| | + | {|style="float:right" |
|[http://forum.asistech.org/viewforum.php?f=13 Форум] | |[http://forum.asistech.org/viewforum.php?f=13 Форум] | ||
|} | |} | ||
[[Postfix]] | [[Postfix]] | ||
</div> | </div> |
Latest revision as of 20:39, 4 April 2015
Форум |
[edit] 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
Форум |