モーグルとカバとパウダーの日記

モーグルやカバ(EXカービング)山スキー(BC)などがメインの日記でした。今は仕事のコンピュータ系のネタが主になっています。以前はスパム対策関連が多かったのですが最近はディープラーニング関連が多めです。

postfixでエンベロープFromやToにドメインパートがないものを拒否

reject_non_fqdn_sender
reject_non_fqdn_recipient

で制限できる。

Postfix
送信元・送信者による制限

あたり参照。


うちでは、こんな感じ。
Rgrey(postgrey)を利用しているので check_policy_service の設定があるが、使っていない人はこれを省く。

smtpd_recipient_restrictions =
    permit_mynetworks,
    reject_non_fqdn_recipient,
    reject_unauth_destination,
    check_policy_service inet:10023
smtpd_sender_restrictions =
    reject_unknown_sender_domain,
    reject_non_fqdn_sender