1

Topic: Spam policy, disabling virus check doesn't work

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.0
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version:  CentOS 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hello,
we are trying to disable virus checking for one specific email address, but it doesn't work.

Amavisd has the right configuration:

./amavisd.conf:925:@storage_sql_dsn = (['DBI:mysql:database=amavisd;host=127.0.0.1;port=3306', 'amavisd', 'pass']);
./amavisd.conf:928:@lookup_sql_dsn = @storage_sql_dsn;

I unchecked "Enable virus checking" and "Quarantine virus" in iRedAdmin-Pro for that specific email account.
The Global Spam Policy are:

Spam checking 
Enable spam checking -> checked
Quarantine spam -> not checked

Virus checking
Enable virus checking -> checked
Quarantine virus -> checked

Bad-header checking
Enable bad-header checking -> checked
Quarantine bad-header email -> not checked

Banned file type checking
Enable banned file type checking -> checked
Quarantine email which contains banned file types -> checked

MySQL row in amavisd.policy for global and specific email address

1, @., N, Y, , N, Y, N, N, N, N, virus-quarantine, spam-quarantine, banned-quarantine, , , , , -100, 5, 5, 6.9, , , , , , , , , , , , , , , , [SPAM] , [SPAM] , , , , , , 

3, acc@domain.net, Y, N, , N, Y, Y, N, N, N, , , banned-quarantine, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , 

Is this a bug or some sort of configuration issue?
Thank you very much for your help!

----

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

2

Re: Spam policy, disabling virus check doesn't work

- What's the setting of "@lookup_sql_dsn =" in amavisd config file?
- What's the spam policy of this specific email account?

3

Re: Spam policy, disabling virus check doesn't work

- What's the setting of "@lookup_sql_dsn =" in amavisd config file?

./amavisd/amavisd.conf:938:@lookup_sql_dsn = @storage_sql_dsn;
./amavisd/amavisd.conf:935:@storage_sql_dsn = (['DBI:mysql:database=amavisd;host=127.0.0.1;port=3306', 'amavisd', '{password}']);

- What's the spam policy of this specific email account?

iRedAdmin-LDAP-Pro:
Spam checking
Enable spam checking -> checked
Quarantine spam -> not checked

Virus checking
Enable virus checking -> not checked
Quarantine virus -> not checked

Bad-header checking
Enable bad-header checking -> checked
Quarantine bad-header email -> not checked

Banned file type checking
Enable banned file type checking -> checked
Quarantine email which contains banned file types -> checked

SQL:
3, acc@domain.net, Y, N, , N, Y, Y, N, N, N, , , banned-quarantine, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , 

4

Re: Spam policy, disabling virus check doesn't work

slovenka wrote:

we are trying to disable virus checking for one specific email address, but it doesn't work.

Please turn on debug mode in Amavisd and show us full log lines in /var/log/maillog when you send a testing email to this user.
FYI https://docs.iredmail.org/debug.amavisd.html