1

Topic: amavis banned attachment problems

==== Required information ====-

iRedMail version (check /etc/iredmail-release): 0.9.6
- Linux/BSD distribution name and version: Debian 8.7 x64
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? NO
- Related log if you're reporting an issue:
====

I have a strange behavior in amavis, if the sender is an authenticated user, the warning about banned attachments is sent only to postmaster and the original email goes to quarantine.
if the email comes from outside, the sender  receive a warning from amavis about his banned attachments
where do I can set option to tell amavis to warn internal senders about the non deliveruy of banned attachment?
I tried in /etc/amavis/conf.d/50-user.conf without success

BR
Stefano

----

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

2

Re: amavis banned attachment problems

gatto wrote:

where do I can set option to tell amavis to warn internal senders about the non deliveruy of banned attachment?

Do you have "warnbannedsender => 1," in policy bank "ORIGINATING"?

3

Re: amavis banned attachment problems

ZhangHuangbin wrote:
gatto wrote:

where do I can set option to tell amavis to warn internal senders about the non deliveruy of banned attachment?

Do you have "warnbannedsender => 1," in policy bank "ORIGINATING"?

yes, there is.
virus_admin_maps => ["root\@$mydomain"],
    spam_admin_maps  => [],
    bad_header_admin_maps => [],
    banned_admin_maps => ["root\@$mydomain"],
    warnbadhsender   => 1,
    warnbannedsender => 1,

I forgot to tell that the server has 3 domains, dunno if it's important or not, I just tried on one of them.

4

Re: amavis banned attachment problems

The setting looks just fine. It sounds like a bug of Amavisd. I suggest posting to Amavisd mailing list to get support from its developers:
https://amavis.org/#support