amavis-user February 2013 archive
Main Archive Page > Month Archives  > amavis-user archives
amavis-user: Re: Notifications on banned files

Re: Notifications on banned files

From: Patrick Ben Koetter <p_at_nospam>
Date: Fri Feb 22 2013 - 15:30:12 GMT
To: amavis-users@amavis.org

* Michael Dukelsky <amavism@mail.ru>:
> I'd like a recipient to receive a notification of a banned file moved to
> the quarantine, if and only if the recipient is in my net. How do I do it?

Set @mynetworks to tell where your machines are:

@mynetworks = qw(
    127.0.0.0/8
    ...
    ); #

Set @local_domains_maps to tell amavis who your recipients are:

@local_domains_maps = (
    ".$mydomain"
    );

Tell amavis to notify recipients of banned file quarantine:

# Don't send notification to sender
$warnbannedsender = 0;

# Send notification to recipient
$warnbannedrecip = 1;

p@rick

-- [*] sys4 AG http://sys4.de, +49 (89) 30 90 46 64 Franziskanerstraße 15, 81669 München Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer Aufsichtsratsvorsitzender: Joerg Heidrich