个人工具
登录
查看“UbuntuHelp:EximClamAV”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:EximClamAV”的源代码
来自Ubuntu中文
←
UbuntuHelp:EximClamAV
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/EximClamAV}} {{Languages|UbuntuHelp:EximClamAV}} == Introduction == This page describes how to integrate [[UbuntuHelp:ClamAV|ClamAV]] (virus scanner) and [[UbuntuHelp:Exim4|Exim4]] (mail server). == Required packages == You must have the following packages installed * exim4-daemon-heavy * clamav-daemon == Configuring Exim to use ClamAV == If you are using a split configuration file, create the file <code><nowiki>/etc/exim4/conf.d/main/50_local_clamav</nowiki></code> with the following content: <pre><nowiki> CHECK_DATA_LOCAL_ACL_FILE = /etc/exim4/conf.d/local-acl av_scanner = clamd:/var/run/clamav/clamd.ctl </nowiki></pre> Otherwise, insert those two lines into your exim4.conf. /!\ Note that the sample exim4.conf specifies an incorrect <code><nowiki>av_scanner</nowiki></code> path of <code><nowiki>clamd:/tmp/clamd</nowiki></code> Next, create the file <code><nowiki>/etc/exim4/conf.d/local-acl</nowiki></code> with the following content: <pre><nowiki> deny malware = * message = This message was detected as possible malware ($malware_name). </nowiki></pre> === Restart exim4 === Reconfigure exim4 so that it picks up your changes. Normally, this is with the command <pre><nowiki> # dpkg-reconfigure exim4-config </nowiki></pre> Accepting all the defaults should be OK. == Allow ClamAV to access the Exim mail spool == Add the <code><nowiki>clamav</nowiki></code> daemon user to the <code><nowiki>Debian-exim</nowiki></code> group, so that it can access the spool files. <pre><nowiki> # usermod -a -G Debian-exim clamav </nowiki></pre> === Restart clamav-daemon === After changing the daemon's groups, you must restart the daemon so that it acquires the new groups <pre><nowiki> # /etc/init.d/clamav-daemon restart </nowiki></pre> == Testing == Test your email server by mailing it a copy of [http://www.eicar.org/anti_virus_test_file.htm EICAR test virus (eicar.com)] The mail server should reject the message immediately. == See Also == * [[UbuntuHelp:ClamAV|ClamAV]] - The [[UbuntuHelp:ClamAV|ClamAV]] anti-virus * [[UbuntuHelp:Exim4|Exim4]] - The Exim mail serevr [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:EximClamAV
。