全球主机论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 888|回复: 1

VestaCP如何在 RHEL 或 CentOS 上安装ClamAV 和 SpamAssassin

[复制链接]
发表于 2015-5-5 11:25:47 | 显示全部楼层 |阅读模式

ClamAV 安装


yum install clamd
wget http://c.vestacp.com/0.9.8/rhel/clamd.conf -O /etc/clamd.conf
wget http://c.vestacp.com/0.9.8/rhel/freshclam.conf -O /etc/freshclam.conf
gpasswd -a clam exim
gpasswd -a clam mail
freshclam
chkconfig clamd on
service clamd start



SpamAssassin 安装


yum install spamassassin
chkconfig spamassassin on
service spamassassin start


Exim 配置


sed -i "s/^#SPAMASSASSIN/SPAMASSASSIN/g" /etc/exim/exim.conf
sed -i "s/^#CLAMD/CLAMD/g" /etc/exim/exim.conf
service exim restart


Vesta配置


sed -i "s/ANTIVIRUS.*/ANTIVIRUS_SYSTEM='clamav'/" /usr/local/vesta/conf/vesta.conf
sed -i "s/ANTISPAM.*/ANTISPAM_SYSTEM='spamassassin'/" /usr/local/vesta/conf/vesta.conf
发表于 2017-9-29 20:31:13 | 显示全部楼层
看得我反手就是一个赞
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|小黑屋|全球服务器论坛

GMT+8, 2024-11-29 22:45 , Processed in 1.716003 second(s), 18 queries , File On.

Powered by Discuz! X3.5

Copyright © 2001-2024 Tencent Cloud.

快速回复 返回顶部 返回列表