1

Topic: ClamAV false positive, amavisd-release bugfix

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.8
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version: Centos 7.6
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hello,
Today we discovered that after last clamav update we have many false positive emails. Basicly all pdf atttachements where tagged as virus - Blocked INFECTED (Win.Exploit.CVE_2019_0903-6966169-0) {DiscardedInternal,Quarantined})

freshclam
main.cvd is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
daily.cld is up to date (version: 25462, sigs: 1582158, f-level: 63, builder: raynman)
bytecode.cld is up to date (version: 328, sigs: 94, f-level: 63, builder: neo)

This was first time we needed to restore mails from amavisd quarantine (mails are stored in sql database), we used amavisd-release tool whitch is included by default. Tool does't work out of box and needs several fixes. Please include them in future releases.
/usr/bin/amavisd-release
- $socketname = '/var/run/amavisd/amavisd.sock';
+ $socketname = '/var/run/amavisd/amavisd.socket';
- my $quar_type = $fn_suffix eq '.gz' ? 'Z' : $fn_path ne '' ? 'F' : '';
+ my $quar_type = $fn_suffix eq '.gz' ? 'Z' : $fn_path ne '' ? 'F' : 'Q';

----

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

2

Re: ClamAV false positive, amavisd-release bugfix

Please update clamav database by running "freshclam --debug" manually to fix this issue.

3

Re: ClamAV false positive, amavisd-release bugfix

With iRedAdmin-Pro, it's very easy to manage quarantined emails.
Without iRedAdmin-Pro, please check this official tutorial:
https://www.ijs.si/software/amavisd/README.protocol.txt

4

Re: ClamAV false positive, amavisd-release bugfix

Win.Exploit.CVE_2019_0903-6966169-0 false/positive is fixed in clamav update 25462

https://marc.info/?l=clamav-users&m … 92&w=2

5

Re: ClamAV false positive, amavisd-release bugfix

ZhangHuangbin wrote:

Please update clamav database by running "freshclam --debug" manually to fix this issue.

root@mail:~# freshclam --debug
ERROR: /var/log/clamav/freshclam.log is locked by another process
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).