Mark wrote:

> Is it possible I amavisd-new to specify which users get notifications
> when a mail message was blocked or banned? I'd rather not turn on admin
> notifications and get a notice every single time there's a virus sent to
> one of our users. We have some users who wish to receive blocked/banned
> notifications, while other who do not. Is this possible with the current
> version?

> Thanks,
> Mark
>

amavisd-conf.sample shows a couple examples like:

[EMAIL PROTECTED] = (    # by-recipient maps
#  {'not.example.com' => '',
#   '.' => '[EMAIL PROTECTED]'},
#  $virus_admin,   # the usual default
#);


#advanced example, using a hash lookup table and a scalar default,
#lookup key is a recipient envelope address:
[EMAIL PROTECTED] = (    # by-recipient maps
#  { '[EMAIL PROTECTED]' => '[EMAIL PROTECTED]',
#    '.sub1.example.com'  => '[EMAIL PROTECTED]',
#    '.sub2.example.com'  => '',               # don't send admin notifications
#    'a.sub3.example.com' => '[EMAIL PROTECTED]',
#    '.sub3.example.com'  => '[EMAIL PROTECTED]',
#    '.example.com'       => '[EMAIL PROTECTED]', # default for our virus 
senders
#  },
#  '[EMAIL PROTECTED]',  # catchall for the rest
#);

of course, the recipient could be both on the LHS and the RHS.
You could also have another set for @banned_admin_maps and/or
@bad_header_admin_maps.

See also amavisd.conf-default and you will see:
# $banned_admin     = [EMAIL PROTECTED];
# @banned_admin_maps    = (\$banned_admin);
Which tells me you could leave the banned/bad header stuff alone
and they will load the settings you have in @virus_admin_maps.

Gary V



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to