以下的文章主要講述的是Postfix+Cyrus-SASL+MySQL數據庫投遞經過驗證的郵件正確設置的實際操作步驟,就算它是要投到本地域的郵件或來自本地局域網的郵件都要通過驗證,否則就不讓過。main.cf 這一段要如何修改呢?
- mynetworks_style = host
mynetworks = 168.100.189.0/28, 127.0.0.0/8
定義你的服務器IP
- #====================SASL=====================
- smtpd_sasl_auth_enable = yes
- smtpd_sasl_security_clients = noanonymous
- broken_sasl_auth_clients = yes
- smtpd_delay_reject = yes
- smtpd_recipient_restrictions = permit_sasl_authenticated
- reject_rbl_client opm.blitzed.org
- reject_rbl_client list.dsbl.org
- reject_rbl_client bl.spamcop.net
- reject_rbl_client sbl-xbl.spamhaus.org
- reject_rbl_client cbl.anti-spam.org.cn
- reject_rbl_client cdl.anti-spam.org.cn
- reject_rbl_client cblplus.anti-spam.org.cn
- reject_invalid_hostname
- reject_unknown_sender_domain
- reject_non_fqdn_sender
- reject_non_fqdn_recipient
- reject_unknown_recipient_domain
- reject_unauth_pipelining
- reject_unauth_destination
- permit_mynetworks
- check_recipient_maps
- smtpd_client_restrictions = permit_sasl_authenticated
- smtpd_helo_restrictions = reject_invalid_hostname
- smtpd_sender_restrictions = permit_sasl_authenticated
- reject_non_fqdn_sender
- reject_unknown_sender_domain
- reject_sender_login_mismatch
- smtpd_sasl_authenticated_header = yes
- smtpd_helo_required = yes
以上的相關內容就是對Postfix+Cyrus-SASL+MySQL數據庫投遞經過驗證的郵件設置的介紹,望你能有所收獲。