1

Topic: Disabling admin notification for all bad message types

==== Required information ====
- iRedMail version: 0.8.7 Pro
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: FreeBSD 10
- Related log if you're reporting an issue:
====

We want to disable admin email notification for all four classes of quarantine actions -- spam, viruses, bad headers and banned attachments.

In amavisd.conf, commenting out virus_admin_maps and spam_admin_maps will disable notifications for viruses and spam, respectively.

How to disable notifications for bad headers and banned attachments?

Note that we still want to quarantine these items -- we just do not want the admin to receive an email for every single action.

Thanks.

----

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

2

Re: Disabling admin notification for all bad message types

You need bad_header_admin_maps, banned_admin_maps.
Add them to policy bank in Amavisd config file.

3

Re: Disabling admin notification for all bad message types

What specific changes are needed to the file, and where?

For the virus and spam message types, we disabled notifications by commenting out virus_admin_maps and spam_admin_maps  lines. Currently there are no bad_header_admin_maps or banned_admin_maps, so I cannot comment them out.

Note that we still want to quarantine these items -- we just do not want the admin to receive an email for every single action.

4

Re: Disabling admin notification for all bad message types

Just append them after 'virus_admin_maps' or 'spam_admin_maps'. For example:

$policy_bank{'ORIGINATING'} = {
    ...
    virus_admin_maps => ...,
    spam_admin_maps  => ...,
    bad_header_admin_maps => [],                                                   
    banned_admin_maps => [],
    ...
};

$policy_bank{'MYUSERS'} = {
    ...
    virus_admin_maps => ...
    spam_admin_maps  => ...
    bad_header_admin_maps => [],                                               
    banned_admin_maps => [],
    ...
};

5

Re: Disabling admin notification for all bad message types

Thanks. I think I understand.

The policy we want is that bad mail WILL go into quarantine but the admin WILL NOT receive a notification email.

So, if I use this:

bad_header_admin_maps  => [],
banned_admin_maps  => [],

instead of this:

bad_header_admin_maps  => ["root\@$mydomain"],
banned_admin_maps  => ["root\@$mydomain"],

It will accomplish that policy?

Thanks again!

6

Re: Disabling admin notification for all bad message types

Yes.

7

Re: Disabling admin notification for all bad message types

Works as expected. Thanks!