1

Topic: clamAV problem

==== Required information ====
- iRedMail version: 0.8.7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mYsql
- Linux/BSD distribution name and version: Ubuntu 14.04 + every week full upgrade(including dist-upgrade)
- Related log if you're reporting an issue:
====

Hi,
I've recently updated my server and when ClamAV asked me to upgrade the configs, I said yes...
what should I do now? I'm not receiving any emails...

thanks

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: clamAV problem

Any related log in /var/log/mail.log?

3

Re: clamAV problem

there are
mail.err ,
mail.err.1 ,
mail.err.2.gz ,
mail.err.3.gz ,
mail.err.4.gz ,
mail.log ,
mail.log.1 ,
mail.log.2.gz ,
mail.log.3.gz ,
mail.log.4.gz

& I have absolutely no idea what to look in for.

there is a line saying that it had tried to connect to /tmp/clamd.socket and failed
Also:
WARN: All primary virus scanners failed, considering backups

should I provide the whole log? are there any content that I should remove from them?

4

Re: clamAV problem

OK, that means clamav service is not running. Did you try to restart clamav service? Any message on terminal while you restarting clamav service?

5

Re: clamAV problem

service clamav-daemon restart

* Stopping ClamAV daemon clamd
/sbin/start-stop-daemon: warning: failed to kill 5484: No such process
   ... done.
* Starting ClamAV daemon clamd
   ...fail!

6

Re: clamAV problem

are any of emails that I'm not recieving, being stored somewhere?

7

Re: clamAV problem

You can try to disable clamav service in Amavisd first, after you get it running, enable it in amavisd again.

Add below line in /etc/amavis/conf.d/50-user in front of the last line:

@bypass_virus_checks_maps = (1);

Restart amavisd service, then you should be able to sent/receive email again but without virus scanning.
Fix clamav issue quickly, then comment out or remove above line in '50-user'.

By the way, you can purchase a support ticket to get help to solve this issue remotely (via ssh): http://www.iredmail.org/support.html

8

Re: clamAV problem

Thanks,
but I'm in Iran and even bitcoins aren't that easy to access...

9

Re: clamAV problem

It didn't work...

10

Re: clamAV problem

Alright, you can comment out 'content_filter =' line in Postfix /etc/postfix/main.cf, restart postfix service. Postfix will not pass email to Amavisd for spam/virus scanning right now. And please fix your clamav issue as quick as possible.