
おそらく単純な質問ですが、ローカル マシンからメールを送信できるユーザーをロックダウンしようとしています。/etc/postfix/allowed_recipients ファイルで newaliases を実行し、次のような設定を行うことで、受信できるユーザーをロックダウンしました。
smtpd_recipient_restrictions = hash:/etc/postfix/allowed_recipients, reject
これは機能しますが、送信者制限についても同じことを行うにはどうすればよいでしょうか。
答え1
smtpd_sender_restrictions = reject_unknown_sender_domain, reject_unlisted_sender, check_sender_access hash:/etc/postfix-internal/localusers, reject
ローカルユーザー内で、各OKアドレスをリストします
[email protected] OK
[email protected] OK
またはドメインを追加してブロックのみをリストすることもできます
example.com OK
[email protected] 550 Account compromised
[email protected] 550 Account closed
答え2
postfix のドキュメントをご覧ください。http://www.postfix.org/RESTRICTION_CLASS_README.html