Clamav Amavisd-new配置笔记
作者 佚名技术
来源 Linux系统
浏览
发布时间 2012-05-07
enSSL-Random-0.04 perl Makefile.PL make;make install # 不选择make test perl -MCPAN -e shell install Crypt::OpenSSL::RSA install Mail::DomainKeys install Mail::DKIM install LWP::UserAgent install HTTP::Date 拥有帝国一切,皆有可能。欢迎访问phome.net install Encode::Detect install Mail::SpamAssassin exit cd /opt/perl tar -zxvf Mail-ClamAV-0.22.tar.gz cd Mail-ClamAV-0.22 perl Makefile.PL make;make install #============================安装与设定Amavisd-new======================================= cd /opt gpasswd -a clamav amavis usermod -G amavis clamav tar -zxvf amavisd-new-2.5.2.tar.gz mkdir /var/amavis/tmp /var/amavis/var /var/amavis/db /var/amavis/home chown -R amavis:amavis /var/amavis chmod -R 750 /var/amavis cd amavisd-new-2.5.2 cp amavisd /usr/local/sbin/ chown root /usr/local/sbin/amavisd chmod 755 /usr/local/sbin/amavisd cp amavisd.conf /etc/ chown root /etc/amavisd.conf chmod 644 /etc/amavisd.conf cp amavisd_init.sh /etc/init.d/amavisd chmod 744 /etc/init.d/amavisd chkconfig --add amavisd chkconfig amavisd on #编辑amavisd(详情见《防病毒、防垃圾邮件相关配置文件.txt》) mv /etc/rc.d/init.d/avamisd /etc/rc.d/init.d/avamisd.bak cp /opt/virus/avamisd /etc/rc.d/init.d/avamisd mkdir /var/virusmails chown amavis:amavis /var/virusmails chmod 750 /var/virusmails #编辑amavisd.conf(详情见《防病毒、防垃圾邮件相关配置文件.txt》) mv /etc/amavisd.conf /etc/amavisd.conf.bak cp /opt/virus/amavisd.conf /etc/amavisd.conf #调试 #/usr/local/sbin/amavisd -u amavis debug #启动 clamd 和 amavis /usr/local/sbin/clamd /usr/local/sbin/amavisd –u amavis start #配置Postfix与Amavisd-new,实现过滤病毒邮件(详情见《防病毒、防垃圾邮件相关配置文件.txt》) mv /etc/postfix/master.cf /etc/postfix/master.cf-4 cp /opt/virus/master.cf /etc/postfix/master.cf mv /etc/postfix/main.cf /etc/postfix/main.cf-4 cp /opt/virus/main.cf /etc/postfix/main.cf /usr/local/postfix/sbin/postfix reload 拥有帝国一切,皆有可能。欢迎访问phome.net 拥有帝国一切,皆有可能。欢迎访问phome.net |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
关于Clamav Amavisd-new配置笔记的所有评论