Debian邮件服务器垃圾邮件过滤实操指南
一 分层架构与总体思路
二 快速落地步骤
spamassassin unix - n n - - pipe
user=spamd argv=/usr/bin/spamc -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
三 关键配置示例
smtpd_recipient_restrictions =
permit_mynetworks
permit_sasl_authenticated
reject_unauth_destination
check_policy_service inet:127.0.0.1:10023
reject_rbl_client zen.spamhaus.org
check_client_access hash:/etc/postfix/access
content_filter = spamassassin
required_score 5.0
spamassassin unix - n n - - pipe
user=spamd argv=/usr/bin/spamc -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient}
203.0.113.10 OK
spammer.example.com REJECT
生成哈希并生效:sudo postmap /etc/postfix/access && sudo postfix reload。四 调优与运维要点
五 常见故障排查