ClamAV报错CODE(0x2286dd0)
时间:2019-08-20 17:58:07 来源:igfitidea点击:
问题现象
在Ubuntu12.04LTS中,邮件病毒扫描程序Clamav报错:
Jul 23 12:20:47 mail postfix/qmgr[18020]: 0D1AF61F95: from=, size=739, nrcpt=1 (queue active) Jul 23 12:20:48 mail amavis[18032]: (18032-02) (!)run_av (ClamAV-clamd) FAILED – unexpected , output="/var/lib/amavis/tmp/amavis-20130723T122047-18032-utKqe6rf/parts: lstat() failed: Permission denied. ERRORn" Jul 23 12:20:48 mail amavis[18032]: (18032-02) (!)ClamAV-clamd av-scanner FAILED: CODE(0x2286dd0) unexpected , output="/var/lib/amavis/tmp/amavis-20130723T122047-18032-utKqe6rf/parts: lstat() failed: Permission denied. ERRORn" at (eval 112) line 899.
解决方案
在amavis组中添加clamav用户
# usermod -a -G amavis clamav
检查amavis和clamav用户组
# id amavis uid=110(amavis)gid=113(amavis)组=113(amavis) # id clamav uid=109(clamav)gid=112(clamav)组=112(clamav),113(amavis)
重启clamav守护进程、amavis和postfix服务
/etc/init.d/clamav-daemon restart /etc/init.d/amavis restart /etc/init.d/postfix restart
现在可以重新发送邮件并检查邮件日志