Postfix SMTP发件人访问限制
问题: 几天前,我们面临来自外部IP的垃圾邮件攻击,它使用一个真正的外部域来发送大约7k电子邮件到不同的外部域名,如雅虎,hotmail,Gmail等….我不得不通过防火墙手动阻止该IP , 如何只允许我的“域”MySQL数据库中定义的域,并拒绝其他人(即使他们是真正的MX和Alogging)像reject_unlisted_sender参数行为 configuration: – /etc/postfix/main.cf ….. smtpd_sasl_auth_enable = yes broken_sasl_auth_clients = yes smtpd_sasl_authenticated_header = yes smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/sender_access, reject_unlisted_sender, permit_sasl_authenticated, reject_unknown_sender_domain smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf ……….. – /etc/postfix/master.cf smtp inet n – – – – smtpd smtps inet n – – – – smtpd -o syslog_name=postfix/smtps -o smtpd_tls_wrappermode=yes […]