本笔记记录freebsd8.2版本下ports方案安装mailscanner后出现Can’t run commercial checker clamav错误信息的解决方案。本笔记虽然是在FreeBSD8.2系统上测试通过,其中多数内容也适合各个Linux发行版本以及各个BSD分支,在其他系统上只需要做少量调整。
提示以下错误信息:
[[email protected] ~]#more /var/log/maillog Jul 23 14:41:02 demo MailScanner[1331]: Can't run commercial checker clamav ("/opt/MailScanner/lib/clamav-wrapper"): No such file or directory
解决步骤:
一、到配置文件目录:
[[email protected] ~]#cd /usr/local/etc/
二、查找找不到clamav-wrapper路径的相关定义文件:
[root@www.itkylin.com ~]#grep -r "clamav-wrapper" * MailScanner/virus.scanners.conf:clamav
三、查找clamav-wrapper文件所在目录:
[root@mail /usr/local/etc]# find / -name clamav-wrapper* /usr/local/libexec/MailScanner/clamav-wrapper.sample
四、安装mailscanner后默认是没有clamav-wrapper文件的,只有sample文件,
拷贝clamav-wrapper.sample为clamav-wrapper:
[[email protected] ~]#cd /usr/local/libexec/MailScanner [[email protected] ~]#mv clamav-wrapper.sample clamav-wrapper
五、编辑修改mailscanner的定配置文章之virus.scanners.conf
[[email protected] ~]#vi /usr/local/etc/MailScanner/virus.scanners.conf Change: clamav /opt/MailScanner/lib/clamav-wrapper /usr/local clamd /bin/false /usr/local To: clamav /usr/local/libexec/MailScanner/clamav-wrapper /usr/local clamd /usr/bin/false /usr/local
六、重启mailscanner完成!
[[email protected] ~]#/usr/local/etc/rc.d/mailscanner restart
文章作者:IT服务 本文地址:https://www.itkylin.com/mailscanner-errorcant-run-commercial-checker-clamav.html
版权所有? 转载时必须以链接形式注明作者和原始出处!