首页 > Linux运维 > extmail clamad报错
2016
11-12

extmail clamad报错

前几天extmail发不了邮件,上服务器检查一下,邮件服务都不存在,df -h 看了一下磁盘使用率,发现磁盘都被占满了,再查看邮件服务log,发现一个巨大的log,82G,重定向清空log文件,tail -f 查看,还是不断的写入log。
报错信息如下:
extmail clamad报错 - 第1张  | 劳福喜-专注Linux服务器运维技术

LibClamAV Error: mpool_malloc(): Attempt to allocate 8388608 bytes. Please report to http://bugs.clamav.net
LibClamAV Error: mpool_malloc(): Attempt to allocate 8388608 bytes. Please report to
LibClamAV Error: mpool_malloc(): Attempt to allocate 8388608 bytes. Please report to
LibClamAV Error: mpool_malloc(): Attempt to allocate 838serial8250: too much work for irq4
8608 bytes. Please report to http://bugs.clamav.net

解决方法:

先停掉clamad服务

service clamad stop

centos5,centos6,centos7 都可以用 epel 仓库里的 clamd、clamav来升级。

yum -y install epel-release.noarch

升级clamd、clamav、clamav-db、clamav-devel

yum -y install clamd clamav clamav-db clamav-devel

启动clamad报错

service clamad restart

报错信息:

Stopping Clam AntiVirus Daemon:                            [FAILED]
Starting Clam AntiVirus Daemon: LibClamAV Error: cli_loaddb(): No supported database files found in /var/clamav
ERROR: Can't open file or directory                        [FAILED]

删除旧文件及干扰文件

rm -rf /var/log/clamav/
rm -rf /var/clamav/
rm -rf /var/lib/clamav/
rm -rf /var/run/clamav/
rm -rf /etc/clamd.*

重装软件包

yum -y install clamd clamav clamav-db clamav-devel

启动clamd

[root@localhost clamav]# service clamd start
Starting Clam AntiVirus Daemon: LibClamAV Warning: **************************************************
LibClamAV Warning: ***  The virus database is older than 7 days!  ***
LibClamAV Warning: ***   Please update it as soon as possible.    ***
LibClamAV Warning: **************************************************
                                                           [  OK  ]
[root@localhost clamav]# 

问题解决。

最后编辑:
作者:劳福喜
这个作者貌似有点懒,什么都没有留下。

留下一个回复

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据