2007年10月1日月曜日

教えて!goo Postfixで特定ユーザに対し外部からのメールをはじきたい

教えて!goo Postfixで特定ユーザに対し外部からのメールをはじきたい

こうすればFROMとTOの両方を対象に条件を適用することができるらしい。
smtpd_restriction_classes はこーゆーところで使えば良いのですね。

smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination,
 check_recipient_access hash:/etc/postfix/user

smtpd_restriction_classes = from_domain
from_domain = check_sender_access hash:/etc/postfix/domain_list reject

/etc/postfix/user
foo@example.com from_domain

0 件のコメント: