はじめに:
最近、「。date」TLDソースから大量のスパムを受信しており、Postfixを使用してこれらすべてのメールをブロックしたいと考えていました。
解決策はhttps://serverfault.com/questionsにあります。 / 728641 / blacklisting-tld-in-postfix / 728658
手順:
PostfixPCREディクショナリをインストールしますapt-get install postfix-pcre
postfixを設定しますpostconf -e smtpd_sender_restrictions=pcre:/etc/postfix/rejected_domains
postconf -e reject_unauth_destinations=pcre:/etc/postfix/rejected_domains
新しいファイルを編集します/etc / postfix / reject_domains 次の内容で:/\.date$/ REJECT All Date Domains
Postfixをリロードservice postfix reload