postfix用spamassassin防垃圾邮件
- 安装程序
sudo yum install spamassassin
- 编辑/etc/mail/spamassassin/local.cf
required_hits 5.0
report_safe 0
required_score 5
rewrite_header Subject [SPAM]
- 创建用户、组
groupadd spamd
useradd -g spamd -s /bin/false -d /var/log/spamassassin spamd
chown spamd:spamd /var/log/spamassassin
- Selinux设置 …