Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1445038
  • 博文数量: 295
  • 博客积分: 10051
  • 博客等级: 上将
  • 技术积分: 3850
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-11 08:50
文章分类

全部博文(295)

文章存档

2011年(1)

2009年(4)

2008年(290)

我的朋友

分类: BSD

2008-04-17 09:28:43

-o mynetworks=127.0.0.0/8

  重启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

阅读(608) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~