1

Topic: Amavisd PASSED but setup at D_DISCARD

==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7 MARIADB edition.
- Linux/BSD distribution name and version: CentOS Linux release 7.3.1611 (Core)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
====

Hi,

I'm testing iredmail, and it's look good, but i have a problem with amavisd.

Content of the /etc/amavisd/amavisd.conf :

# Banned
$final_banned_destiny = D_DISCARD;
$banned_files_quarantine_method = 'sql:';
$banned_quarantine_to = 'banned-quarantine';

When i receive a mail with .bat extention, and mime application/x-msdownload, maillog contains :

Aug  9 08:46:53 mail amavis[2435]: (02435-03-4) Passed BANNED (application/x-msdownload,.asc,attached\\) {RelayedTaggedInbound}, [xx.xx.xx.xx]:45823 [xx.xx.xx.xx] <test@test.net> -> <me@mydomain.com>, Queue-ID: A191C40ACA, Message-ID: <dvs,iov,dsio,o1CoCtbTWXtZG!LS2nD0cFg==>, mail_id: Ppj43x4JK2GC, Hits: 1.167, size: 1411, queued_as: 21E843F994, 10914 ms, Tests: [INVALID_MSGID=1.167,MISSING_MIME_HB_SEP=0.001,SPF_HELO_PASS=-0.001,SPF_PASS=-0.001,URIBL_BLOCKED=0.001]

Amavis let pass the email : "Passed BANNED", even if in the config file we see $final_banned_destiny = D_DISCARD;

What can i do please ?

Best regard.

----

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

2

Re: Amavisd PASSED but setup at D_DISCARD

We use global spam policy stored in SQL. Please check SQL table "amavisd.policy".

3

Re: Amavisd PASSED but setup at D_DISCARD

Hi,

Thanks for your support.
I don't known that mysql have precedence over config files !

Yes i have some thing that talk about banned files :

MariaDB [amavisd]> select * from policy\G
*************************** 1. row ***************************

          banned_files_lover: Y
          bypass_banned_checks: N
          banned_admin: NULL
          banned_rulenames: NULL

1 row in set (0.00 sec)

So it's because i'am a banned_files_lover (lol) ?

Thanks a lot.

4

Re: Amavisd PASSED but setup at D_DISCARD

I have update banned_files_lover to "N", and banned files are now blocked.

Thanks,

Have a nice day