Control Web Panel

WebPanel => E-Mail => Topic started by: venty on April 06, 2016, 07:11:53 AM

Title: ClamAV and AMaViS (A Mail Virus Scanner)stop working
Post by: venty on April 06, 2016, 07:11:53 AM
Hi,

for some reason, applications ClamAV and  AMaViS (A Mail Virus Scanner) as work, stops and having to start manually .. After some time again stop and again I have to do manually be started ...

All this leads to the danger of losing messages ...

Please help!

BR

Venty
Title: Re: ClamAV and AMaViS (A Mail Virus Scanner)stop working
Post by: Jae on April 06, 2016, 08:19:33 AM
usually it is caused by server with small ram, eq 512mb, but you have lot of email transaction
Title: Re: ClamAV and AMaViS (A Mail Virus Scanner)stop working
Post by: Sandeep on April 06, 2016, 08:43:50 AM
you need 2 gb ram and above for normal operation
Title: Re: ClamAV and AMaViS (A Mail Virus Scanner)stop working
Post by: venty on April 06, 2016, 08:46:28 AM
I have 8 GB RAM
Title: Re: ClamAV and AMaViS (A Mail Virus Scanner)stop working
Post by: Sandeep on April 06, 2016, 08:53:50 AM
what did you last modified ?
Title: Re: ClamAV and AMaViS (A Mail Virus Scanner)stop working
Post by: venty on April 06, 2016, 08:59:09 AM
I am a rookie and I have installed a new panel. The latter is what I did to create domains and mailboxes ... I made it through user panel...
Title: Re: ClamAV and AMaViS (A Mail Virus Scanner)stop working
Post by: LiXuS on April 07, 2016, 09:54:41 AM
try to uninstall ClamAV whith yum :
Code: [Select]
yum remove clamav -yand after
Rebuild your mail server with ClamAV (AntiSpam and AntiVirus Protection)
from yourdomain.com:2030 Email -> Postfix Mail Server Manager section.
at me it's works....
Title: Re: ClamAV and AMaViS (A Mail Virus Scanner)stop working
Post by: venty on April 07, 2016, 01:50:38 PM
Hi,

I did it, but get:

Stopping Clam AntiVirus Daemon: [  OK  ]
Starting Clam AntiVirus Daemon: ERROR: Can't open /var/log/clamav/clamd.log in append mode (check permissions!).
[FAILED]

What to do?

BR
Venty
Title: Re: ClamAV and AMaViS (A Mail Virus Scanner)stop working
Post by: venty on April 07, 2016, 02:12:38 PM
... and ClamAV stopped working and can not be started...
Title: Re: ClamAV and AMaViS (A Mail Virus Scanner)stop working
Post by: Administrator on April 08, 2016, 01:56:43 PM
you should check the permissions of your log folder /var/log/clamav

if owner is clam then replace it with clamav or reverse if different.
example
Code: [Select]
chown -R clamav.clamav /var/log/clamav
Title: Re: ClamAV and AMaViS (A Mail Virus Scanner)stop working
Post by: venty on May 15, 2016, 03:14:49 PM
where to put this code?

More .... at this point ClamAV not there a row on the main screen (Dashboard)???

 Services Status (chkconfig auto start up)
Apache Webserver      httpd (pid 1571) is running...    Start  Stop  Restart
Varnish Cache Server      varnishd (pid 1640) is running...    Start  Stop  Restart
Nginx Reverse Proxy      nginx (pid 1586) is running...    Start  Stop  Restart
FTP Server      pure-ftpd (pid 1607) is running...    Start  Stop  Restart
MySQL Database Server      mysqld (pid 1398) is running...    Start  Stop  Restart
BIND DNS Server      named (pid 1142) is running...    Start  Stop  Restart
SSH Server      openssh-daemon (pid 1259) is running...    Start  Stop  Restart
Crontab      crond (pid 1619) is running...    Start  Stop  Restart

Mail Server Services

Postfix Mail Server      master (pid 26163) is running...    Start  Stop  Restart
Dovecot IMAP/POP3 Server      dovecot (pid 26062) is running...    Start  Stop  Restart
AMaViS (A Mail Virus Scanner)      amavisd (pid 27448 27447 27160) is running...    Start  Stop  Restart
OpenDKIM      opendkim (pid 26188) is running...    Start  Stop  Restart
SpamAssassin      spamd (pid 26016) is running...    Start  Stop  Restart
Title: Re: ClamAV and AMaViS (A Mail Virus Scanner)stop working
Post by: Sandeep on May 15, 2016, 03:30:17 PM
Enter the code in ssh/terminal
Title: Re: ClamAV and AMaViS (A Mail Virus Scanner)stop working
Post by: venty on May 15, 2016, 03:33:45 PM
Service SSH/ Send Shell command ?
Title: Re: ClamAV and AMaViS (A Mail Virus Scanner)stop working
Post by: venty on May 24, 2016, 05:45:32 AM
hi,
in daily root messeges, in the end I have the following records:

cpulimit: no process killed
/etc/cron.daily/freshclam:

touch: cannot touch `/var/log/clamav/freshclam.log': No such file or directory
chmod: cannot access `/var/log/clamav/freshclam.log': No such file or directory
chown: cannot access `/var/log/clamav/freshclam.log': No such file or directory
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!).
/etc/cron.daily/logrotate:

error: stat of /var/log/lfd.log failed: No such file or directory

My ClamAV still does not work .. What to do?!!?

BR
Venty