怎样限制用户只能发站内邮件、不能把邮件中继到外站?
1
怎样限制用户只能发站内邮件、不能把邮件中继到外站?
▼
方法
在 smtpd_relay_restrictions(或 smtpd_recipient_restrictions)中组合:permit_mynetworks、permit_sasl_authenticated、reject_unauth_destination;未通过认证的外发目标一律拒绝。
要点
reject_unauth_destination 是防止开放中继的核心,必须保留。
参考:Postfix FAQ “Restricting what users can send mail to off-site destinations”
