我的 clamav.log 里全是这些信息,可能是什么问题,如何修复?我有 Debian clamav-0.97.6+dfsg-1~squeeze1 spamassassin-3.3.1-1 dovecot-pop3d-1.2.15-7 postfix-2.7.1-1+squeeze1,而且在 milter 附近还有个地方。
LocalSocket 设置没问题
Tue Jun 4 07:43:34 2013 -> WARNING: No clamd server appears to be available
Tue Jun 4 07:44:34 2013 -> WARNING: No clamd server appears to be available
Tue Jun 4 07:45:34 2013 -> WARNING: No clamd server appears to be available
Tue Jun 4 07:46:34 2013 -> WARNING: No clamd server appears to be available
Tue Jun 4 07:47:34 2013 -> WARNING: No clamd server appears to be available
Tue Jun 4 07:47:58 2013 -> ERROR: Failed to initiate streaming/fdpassing
Tue Jun 4 07:47:58 2013 -> WARNING: No clamd server appears to be available
Tue Jun 4 07:48:58 2013 -> WARNING: No clamd server appears to be available
Tue Jun 4 07:49:33 2013 -> ERROR: Failed to initiate streaming/fdpassing
Tue Jun 4 07:49:33 2013 -> WARNING: No clamd server appears to be available
答案1
clamd 服务器似乎未运行。请尝试启动它。
答案2
同样检查:
/etc/clamav/clamd.conf
...
LocalSocket /var/run/clamav/clamd.ctl
...
和
/etc/clamav/clamav-milter.conf
...
ClamdSocket unix:/var/run/clamav/clamd.ctl
...
答案3
当 clamd@scan 服务出现问题时,由于用户从 clam 更改为 clamscan,请尝试此解决方案:(注意!!!这是针对 Red Hat、CentOS、Fedora 系列发行版的解决方案)。
# sudo mkdir -p /var/log/clamav
确保 /var/lib/clamav 和 /var/log/clamav 具有正确的用户和组。
# sudo chown -R clamscan:clamscan /var/lib/clamav
# sudo chown -R clamscan:clamscan /var/log/clamav
打开文件 /etc/freshclam.conf 并确保行设置如下:
# sudo nano /etc/freshclam.conf
查找并检查它是否包含以下内容:(使用 ctrl+w)
DatabaseDirectory /var/lib/clamav
DatabaseOwner clamscan
#sudo nano /etc/clamd.conf
查找并检查它是否包含以下内容:(使用 ctrl+w)
LogFile /var/log/clamav/clamd.scan
DatabaseDirectory /var/lib/clamav
User clamscan
# sudo nano /etc/clamd.d/scan.conf
查找并检查它是否包含以下内容:(使用 ctrl+w)
LocalSocket /var/run/clamd.scan/clamd.sock
# sudo nano /etc/mail/clamav-milter.conf
查找并检查它是否包含以下内容:(使用 ctrl+w)
ClamdSocket unix:/var/run/clamd.scan/clamd.sock
如果有人正在使用 clamav milter 并且遇到问题。
# sudo chown -R clamilt:clamilt /var/run/clamav-milter/clamav-milter.socket
# sudo chown -R clamilt:clamilt /var/run/clamav-milter/
# sudo chmod 775 /var/run/clamav-milter/clamav-milter.socket
# sudo chmod -R 775 /var/run/clamav-milter/
# sudo getfacl /var/run/clamav-milter/clamav-milter.socket
# sudo getfacl /var/run/clamav-milter/
重启将需要 2 分钟或更长时间,请稍等。它应该会自动启动。
# sudo systemctl restart clamd@scan
# sudo freshclam
检查状态:
# sudo systemctl status clamd@scan
答案4
Fedora 19:systemctl、sendmail 和 clamav-milter:
http://pantestmb.blogspot.ro/2013/10/fedora-19-systemctl-sendmail-clamav.html