# yum -y install cyrus-sasl cyrus-sasl-devel cyrus-sasl-plain cyrus-sasl-md5 # chkconfig saslauthd on
pwcheck_method: saslauthd log_level: 3 mech_list: PLAIN LOGIN
# 在本檔案最後面增加這些設定資料: smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous broken_sasl_auth_clients = yes # 然後找到跟 relay 有關的設定項目,增加一段允許 SMTP 認證的字樣: 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
#vi /etc/postfix/access 1.2.3.4 ACCEPT # postmap hash:/etc/postfix/access # vi /etc/postfix/main.cf inet_interfaces = all mynetworks = 127.0.0.0/8, hash:/etc/postfix/access