close

之前介紹過postfix,後來發現在外面要發現會被擋掉,所以必須要加上驗證機制

1.啟動 saslauthd

2.安裝安裝 cyrus-sasl-plain  cyrus-sasl  cyrus-sasl-md5   套件

3.在postfix/mail.cf最下方加上

smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes

smtpd_recipient_restrictions =
     permit_mynetworks
     permit_sasl_authenticated
     reject_unauth_destination
     reject_rbl_client cbl.abuseat.org
     reject_rbl_client bl.spamcop.net
     reject_rbl_client cblless.anti-spam.org.cn
     reject_rbl_client sbl-xbl.spamhaus.org
     check_policy_service unix:/var/spool/postfix/postgrey/socket

 重新啟動postfix即可

arrow
arrow
    全站熱搜

    翰 發表在 痞客邦 留言(0) 人氣()