How To Whitelist Hosts/IP Addresses In Postfix

postfix 裡的訊息

SMTP error from remote mail server after RCPT TO:: host mail.example.com [4.3.2.1]: 554 5.7.1 Service unavailable; Client host [1.2.3.4] blocked using dnsbl.sorbs.net; Currently Sending Spam See: http://www.sorbs.net/lookup.shtml?1.2.3.4

1.先編輯 vi /etc/postfix/rbl_override
1.2.3.4 OK
1.2.3.5 OK
mail.freemailer.tld OK

2.將rbl_override文字檔轉為postfix看得懂得資料庫
postmap /etc/postfix/rbl_override

編輯 /etc/postfix/main.cf 並搜尋 for the smtpd_recipient_restrictions parameter. 加入 check_client_access hash:/etc/postfix/rbl_override to that parameter, after reject_unauth_destination, but before the first blacklist.

So if smtpd_recipient_restrictions looks like this now…

本篇發表於 未分類。將永久鍊結加入書籤。

發表迴響

您的電子郵件位址並不會被公開。 必要欄位標記為 *

*

您可以使用這些 HTML 標籤與屬性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>