[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[postfix-jp:320] Re: smtpd_recipient_restrictionsの設定



pragma1です。

smtpd_recipient_restrictions = permit_mynetwork,
    check_sender_access hash:/etc/postfix/local_user,
    reject
smtpd_restriction_classes = enable_remote
enable_remote = check_relay_domains

自分のドメインから

mail from:aaa@xxxxxxxxxxx
250 Ok
rcpt to:bbb@xxxxxxxxxxx
250 Ok

違うドメインのメールも送信してしまうので
permit_mynetwork,を外してみました。

smtpd_recipient_restrictions =
    check_sender_access hash:/etc/postfix/local_user,
    reject
smtpd_restriction_classes = enable_remote
enable_remote = check_relay_domains

mail from:aaa@xxxxxxxxxxx
250 Ok
rcpt to:bbb@xxxxxxxxxxx
554 <bbb@xxxxxxxxxxx>: Recipient address rejected: Access denied

mail from:aaa@自分のドメイン
250 Ok
rcpt to:bbb@xxxxxxxxxxx
554 <bbb@xxxxxxxxxxx>: Recipient address rejected: Access denied

全て弾くようです。

Follow-Ups
[postfix-jp:321] Re: smtpd_recipient_restrictions の設定, Ikeda Nozomu

[検索ページ] [Postfix-JP ML Home]