增加防止发件人身份伪造的配置:
代码如下 | 复制代码 |
# smtpd related config
smtpd_sender_restrictions = # SMTP AUTH config here |
补充:
配置extmail不允许伪造不存在的本地邮件地址发邮件,不允许并仿冒他人邮件地址发送邮件
cd /etc/postfix/
cat >mysql_virtual_sender_maps.cf<
user = extmail
password = extmail
hosts = localhost
dbname = extmail
table = mailbox
select_field = username
where_field = username
additional_conditions = AND active = '1'
EOFvim main.cf
smtpd_sender_login_maps =
mysql:/etc/postfix/mysql_virtual_sender_maps.cfsmtpd_sender_restrictions =
permit_mynetworks,
reject_sender_login_mismatch,
reject_authenticated_sender_login_mismatch,
reject_unauthenticated_sender_login_mismatch
使配置生效
postfix reload