Author Topic: About Clamd and Amavisd  (Read 15693 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
About Clamd and Amavisd
« 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
« Last Edit: March 23, 2016, 03:31:15 PM by eduardomjus »

Offline
*
Re: About Clamd and Amavisd
« Reply #1 on: March 24, 2016, 01:00:06 AM »
it would be the best to contact support for more detailed check of the server configuration.
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: About Clamd and Amavisd
« Reply #2 on: March 24, 2016, 08:16:15 PM »
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.

Offline
*****
Re: About Clamd and Amavisd
« Reply #3 on: March 28, 2016, 10:10:26 AM »
Hello.

Try to use next commands:

Code: [Select]
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
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: About Clamd and Amavisd
« Reply #4 on: May 06, 2016, 02:09:01 PM »
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:
Quote
usermod -a -G amavis clam
chmod g+rx /var/amavis/tmp