Control Web Panel
WebPanel => E-Mail => Topic started by: eduardomjus on March 23, 2016, 11:42:49 AM
-
Hello forum,
My first post here ...
I was search for my problem but dont found anything .. only this topic: http://forum.centos-webpanel.com/centos-webpanel-bugs/spam-virus-filtering/ But dont help me much ... so, anyone have another tip about this problem?
Thanks
sorry , I forgot to paste the error log
Mar 23 11:24:44 mail amavis[32213]: (32213-08) Checking: 5cEgmnQnEanm [xxx] <xxx> -> <xxx>
Mar 23 11:24:44 mail amavis[32213]: (32213-08) Open relay? Nonlocal recips but not originating: xxx
Mar 23 11:24:44 mail amavis[32213]: (32213-08) (!)run_av (ClamAV-clamd) FAILED - unexpected , output="/var/amavis/tmp/amavis-20160323T111516-32213-OQ7fmYyj/parts: lstat() failed: Permission denied. ERROR\n"
Mar 23 11:24:44 mail amavis[32213]: (32213-08) (!)ClamAV-clamd av-scanner FAILED: CODE(0x2d9b078) unexpected , output="/var/amavis/tmp/amavis-20160323T111516-32213-OQ7fmYyj/parts: lstat() failed: Permission denied. ERROR\n" at (eval 113) line 897.
Mar 23 11:24:44 mail amavis[32213]: (32213-08) (!)WARN: all primary virus scanners failed, considering backups
-
it would be the best to contact support for more detailed check of the server configuration.
-
Perfect, but my idea here is to share the information , certainly others found same problem when activated clamd .. as before activating all worked ...
btw, thanks.
-
Hello.
Try to use next commands:
sed -i 's/DatabaseDirectory.*$/DatabaseDirectory\ \/var\/lib\/clamav/g' /etc/freshclam.conf
sed -i 's/DatabaseOwner.*$/DatabaseOwner\ clam/g' /etc/freshclam.conf
sed -i 's/DatabaseDirectory.*$/DatabaseDirectory\ \/var\/lib\/clamav/g' /etc/clamd.conf
sed -i 's/User.*$/User\ clam/g' /etc/clamd.conf
chown -R clam:clam /var/lib/clamav
chown -R clam:clam /var/log/clamav
yum -y --enablerepo=epel install amavisd-new
freshclam
service clamd restart
service amavisd restart
-
Hello forum,
My first post here ...
I was search for my problem but dont found anything .. only this topic: http://forum.centos-webpanel.com/centos-webpanel-bugs/spam-virus-filtering/ But dont help me much ... so, anyone have another tip about this problem?
Thanks
sorry , I forgot to paste the error log
Mar 23 11:24:44 mail amavis[32213]: (32213-08) Checking: 5cEgmnQnEanm [xxx] <xxx> -> <xxx>
Mar 23 11:24:44 mail amavis[32213]: (32213-08) Open relay? Nonlocal recips but not originating: xxx
Mar 23 11:24:44 mail amavis[32213]: (32213-08) (!)run_av (ClamAV-clamd) FAILED - unexpected , output="/var/amavis/tmp/amavis-20160323T111516-32213-OQ7fmYyj/parts: lstat() failed: Permission denied. ERROR\n"
Mar 23 11:24:44 mail amavis[32213]: (32213-08) (!)ClamAV-clamd av-scanner FAILED: CODE(0x2d9b078) unexpected , output="/var/amavis/tmp/amavis-20160323T111516-32213-OQ7fmYyj/parts: lstat() failed: Permission denied. ERROR\n" at (eval 113) line 897.
Mar 23 11:24:44 mail amavis[32213]: (32213-08) (!)WARN: all primary virus scanners failed, considering backups
Try execute the following commands:
usermod -a -G amavis clam
chmod g+rx /var/amavis/tmp