2010年7月18日 星期日

Postfix 裡main.cf 的一些設定解釋

smtpd_sasl_auth_enable = yes //開啟 smtp 認證

broken_sasl_auth_clients = yes //保持client端的相容性,例如MSOE4

smtpd_recipient_restrictions = permit_sasl_authenticated permit_auth_destination rejec //表示允許 sasl 認證,允許認證目的主機,接收本postfix為最後一站的信件。

smtpd_client_restrictions = permit_sasl_authenticated //允許用戶端sasl認證

smtpd_sasl_security_options = noanonymous //允許任何非匿名的使用者

smtpd_sasl_local_domain = $myhostname //sasl的本地網域

smtpd_sender_restrictions = reject_unknown_sender_domain //阻擋網域名稱錯誤的主機

smtpd_client_restrictions = check_client_access regexp:/etc/postfix/access //阻擋動態IP的主機,在access裡設定