我正在管理邮件服务器.邮件服务器正在运行,并配置了多个域.问题是经过身份验证的用户可以使用任何发件人电子邮件ID,我需要阻止它.我怎样才能做到这一点?
示例:发送电子邮件至anything@example.com的发件人正在发送邮件,发件人电子邮件地址为anything@yahoo.com
我需要防止这种情况.
这适用于Postfix 2.1如果没有,则拒绝_sender_login_mismatch
smtpd_sender_restrictions = reject_sender_login_mismatch
根据postfix documentation
reject_authenticated_sender_login_mismatch强制执行reject_sender_login_mismatch
reject_sender_login_mismatch: Reject the request when $smtpd_sender_login_maps specifies an owner for the MAIL FROM address,but the client is not (SASL) logged in as that MAIL FROM address owner; or when the client is (SASL) logged in,but the client login name doesn’t own the MAIL FROM address according to $smtpd_sender_login_maps.