1 (edited by m.krzaczek 2018-01-10 19:46:30)

Topic: amavis, email with information when it blocks a mail

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7
- Linux/BSD distribution name and version: centos
- 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.
====
hi
what and where to change in /etc/amavisd/amavisd.conf to receive mail about blocked mails, I'd like to receive mail on postmaster@mydom.com and to send information that mail is banned to sender (DISCARD(bounce.suppressed) Blocked BANNED (.dat,image003.emz) {NoBounceInternal}, ).
BTW, this email was written in the same @mydom.com ...

I know that it is  very important to type address correctly  (I mean with "  ", or '  ', etc) becouse system stops sending mails. Now I have:

$SOME VARIABLE=  undef;

thank you.

----

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

2

Re: amavis, email with information when it blocks a mail

Try this in Amavisd config file:

$banned_admin = "postmaster\@mydomain.com";

Note: there's also per bank policy setting in Amavisd. for example:

$policy_bank{'ORIGINATING'} = {
    ...
    banned_admin_maps => ["root\@$mydomain"],
    ...
};