Topic: Why some emails are not bounced?
==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.6 MARIADB edition.
- Linux/BSD distribution name and version: Centos 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====
Hello,
I'm having some issues related to bouncing messages with not allowed content. I've tried to follow directions from http://www.iredmail.org/docs/quarantining.html but to no avail.
F.i., if someone sends an email with a .exe file attached, a bounce message is received. This is as expected.
However, if someone sends an email with a .js file, the email is banned:
Mar 10 10:22:20 xmail amavis[22457]: (22457-03) Blocked BANNED (application/javascript,.asc,navi.js) {NoBounceInbound,Quarantined}, [17.172.80.97]:35067 [17.172.80.97] <xxxx@xxxx.com> -> , quarantine: XYgvEOhuQMRr, Queue-ID: 4F452804F038, Message-ID: <a4d6be5b-3d28-76a1-9e47-dee10dbcf9d3@xxxx.com>, mail_id: XYgvEOhuQMRr, Hits: -, size: 2555, dkim_sd=4d515a:xxxx.com, 150 ms
Mar 10 10:22:20 xmail postfix/smtp-amavis/smtp[22409]: 4F452804F038: to=<xxxx@xxxx.xxx>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.34, delays=0.18/0/0/0.15, dsn=2.5.0, status=sent (250 2.5.0 Ok, id=22457-03, DISCARD(bounce.suppressed))
Configuration in amavisd.conf is as follows:
# Banned
$final_banned_destiny = D_BOUNCE;
#$banned_files_quarantine_method = undef;
$banned_files_quarantine_method = 'sql:';
$banned_quarantine_to = 'banned-quarantine';
However, If I set D_REJECT in final_banned_destiny, then a reject message is sent to the sender. It seems as if the bouncing is not correctly working.
Also, I see that no messages are being quarantined on the server, although they should be.
Any suggestions?
Thanks in advance.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.