Jens wrote:
> Hi list,
> I want to costumize the notification on amavisd-new-2.4.4
> with the following settings:
> - Banned-Files: Notify only sender (not recipient, not admin)
> - Virusmails: Notify only admin
> - All other notification should be disabled (SPAM ...)
> How do I have to costumize my amavisd.conf to let it work so ?
> My actual amavisd.conf for notification looks like:
> [...]
> $warnvirussender = undef;
> $warnspamsender = undef;
> $warnbannedsender = 1;
> $warnbadhsender = undef;
> $warn_offsite = undef;
> $warnvirusrecip = undef;
> $warnbannedrecip = undef;
> $warnbadhrecip = undef;
You can simply leave these at their default (undef) value:
# $warnvirussender = undef;
# $warnspamsender = undef;
# $warnbannedsender = 1;
# $warnbadhsender = undef;
# $warn_offsite = undef;
# $warnvirusrecip = undef;
# $warnbannedrecip = undef;
# $warnbadhrecip = undef;
> $virus_admin = "[EMAIL PROTECTED]"; # notifications recip.
The email address of the virus admin goes here:
$virus_admin = "[EMAIL PROTECTED]";
> $mailfrom_notify_admin = "[EMAIL PROTECTED]"; # notifications sender
> $mailfrom_notify_recip = "[EMAIL PROTECTED]"; # notifications sender
> $mailfrom_to_quarantine = ''; # null return path; uses original sender if
> undef
> @addr_extension_virus_maps = ('virus');
> @addr_extension_spam_maps = ('spam');
> @addr_extension_banned_maps = ('banned');
> @addr_extension_bad_header_maps = ('badh');
> [...]
This has to do with address extensions ([EMAIL PROTECTED]), not
notifications.
> Thx for all replies ...
# D_DISCARD mail will not be delivered to its recipients, sender will NOT be
# notified. Effectively we lose mail (but will be quarantined
# unless disabled). Losing mail is not decent for a mailer,
# but might be desired.
# D_BOUNCE mail will not be delivered to its recipients, a non-delivery
# notification (bounce) will be sent to the sender by amavisd-new;
# Exception: bounce (DSN) will not be sent if a virus name matches
# @viruses_that_fake_sender_maps, or to messages from mailing lists
# (Precedence: bulk|list|junk), or for spam level that exceeds
# the $sa_dsn_cutoff_level.
To disable notifications to virus sender:
$final_virus_destiny = D_DISCARD;
To enable notifications to banned sender:
$final_banned_destiny = D_BOUNCE;
If you mark and pass spam:
$final_spam_destiny = D_PASS;
otherwise:
$final_spam_destiny = D_DISCARD;
you can probably leave this at:
$final_bad_header_destiny = D_PASS;
Gary V
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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/