分类: BSD
2008-04-17 09:28:43
重启postfix
%/usr/local/etc/rc.d/postfix.sh restart
postfix/postfix-script: stopping the Postfix mail system
postfix/postfix-script: starting the Postfix mail system
对于Spamassassin 配置文件/usr/local/etc/mail/spamassassin/local.cf 请参考
配置工具
调试amavisd-new
%su vscan
$ /etc/sbin/amavisd debug
如果没有出现任何错误,证明你的amavisd-new 正常。
2、安装Clamav
clamav 用于邮件杀毒
%cd /usr/ports/security/clamav
%make install clean
可以什么都不选,直接回车
clamav_clamd_enable="YES"
clamav_freshclam_enable="YES"
修改/usr/local/etc/clamd.conf 让其以vscan 身份运行(约145行)
#User clamav
User vscan
修改/usr/local/etc/freshclam.conf
#DatabaseOwner clamav
DatabaseOwner vscan
修目录权限
%chown -R vscan:vscan /var/log/clamav
%chown -R vscan:vscan /var/run/clamav
%chown -R vscan:vscan /var/db/clamav
启动clamav 与 自动更新
%/usr/local/etc/rc.d/clamav-clamd.sh start
%/usr/local/etc/rc.d/clamav-freshclam.sh start3、测试%telnet localhost 25
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.mold.com.cn.
Escape character is '^]'.
220 extmail.org ESMTP Mail System
ehlo test.com