Your Ad Here
首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 网站建设 > 服务器相关 > debian上给postfix安装amavis+clamav
【标  题】:debian上给postfix安装amavis+clamav
【关键字】:debian,postfix,amavis+clamav
【来  源】:http://www.cublog.cn/u/22557/showart.php?id=233664

debian上给postfix安装amavis+clamav

Your Ad Here
# apt-get update
# apt-get install clamav clamav-base clamav-daemon clamav-freshclam clamav-testfiles
# apt-get install amavisd-new
 
修改/etc/amavis/amavis.conf
$mydomain = 'example.com'
$forward_method = 'smtp:127.0.0.1:10025'; # descomente
$notify_method = $forward_method; # descomente

在/etc/postfix/master.cf中加入
smtp-amavis unix - - y - 2 smtp
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes
-o disable_dns_lookups=yes
127.0.0.1:10025 inet n - y - - smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
-o smtpd_error_sleep_time=0
-o smtpd_soft_error_limit=1001
-o smtpd_hard_error_limit=1000

在/etc/postfix/main.cf中加入
content_filter=smtp-amavis:[127.0.0.1]:10024

修改某些文件的属性
chown -R amavis:amavis /var/run/clamav
chown -R amavis:amavis /var/lib/clamav
chown -R amavis:amavis /var/log/clamav

把clavav假如amavis组
gpasswd -a clamav amavis
 

修改/et/clamav/clamav.conf
We need to edit this file and change:
User clamav
to
User amavis
 
 
 
可以参考这里
http://www200.pair.com/mecham/spam/clamav-amavisd-new.html
http://www.linuxnarede.com.br/artigos/fullnews.php?id=84
POP3协议的基本命令:【上一篇】
Squid二级代理及用户认证:【下一篇】
【相关文章】
  • u-boot 在Debian etch中的一个编译 hello_world.srec 的错误
  • using colinux to install Debian linux
  • 一步一步安装服务器监视软件MRTG for debian or ubuntu
  • pure-ftpd在debian上的简单使用
  • Postfix+ Courier-imap+Smtp的安装配置(Gentoo)
  • postfix 使用 mysql
  • 我的debian经历1(windows debian grub)
  • debian的distributions
  • RRDTool with postfix
  • [转载]Debian下关闭触控板
  • 【随机文章】
  • Ruby 和 python
  • 数据库下载漏洞攻击技术
  • IPv6选路
  • 删除SAM文件真的能够消除XP系统管理员的密码吗?
  • 如何利用ASP实现邮箱访问(1)
  • C数据结构_带头接点的单链表的实现
  • 新体验!QQ2003II Beta 1新功能一览
  • Flash 遮罩特效的综合操练(2)
  • 01年VCEG-L15---ABT的编码方式要点
  • linux资源
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 软讯网络 All Rigths Reserved.