Rudy,
> > If you have spam admin notifications enabled, these are sent
> > for every CC_SPAM message (spam score above kill level),
> > and there is no cutoff limit. The only cutoff limits are
> > the DSN cutoff limit (applies to sender notifications)
> > and a quarantine cutoff limit (applies to quarantining).
>
> Oh. Bugger! That is what I'm seeing.
>
> I was going to use the quarantine like following to sharpen my levels:
>
> admin_notify = [ kill_level, quarantine_cutoff ]
>
> and thus by looking at the those mails easily deciding when to move
> kill_level and quarantin_cutoff back or forwards.
>
> Would this be easy to implement in Amavis to specify a
> spam_admin_cutoff threshold?
Try this one, adds @spam_notifyadmin_cutoff_level_maps :
--- amavisd.orig 2009-04-22 02:24:12.000000000 +0200
+++ amavisd 2009-05-26 18:59:43.000000000 +0200
@@ -325,5 +325,5 @@
@spam_crediblefrom_dsn_cutoff_level_maps
@spam_crediblefrom_dsn_cutoff_level_bysender_maps
- @spam_quarantine_cutoff_level_maps
+ @spam_quarantine_cutoff_level_maps @spam_notifyadmin_cutoff_level_maps
@whitelist_sender_maps @blacklist_sender_maps @score_sender_maps
@author_to_policy_bank_maps @signer_reputation_maps
@@ -463,5 +463,6 @@
$banned_filename_re $viruses_that_fake_sender_re
$sa_tag_level_deflt $sa_tag2_level_deflt $sa_tag3_level_deflt
- $sa_kill_level_deflt $sa_quarantine_cutoff_level
+ $sa_kill_level_deflt
+ $sa_quarantine_cutoff_level @spam_notifyadmin_cutoff_level_maps
$sa_dsn_cutoff_level $sa_crediblefrom_dsn_cutoff_level
$sa_spam_modifies_subj $sa_spam_subject_tag1 $sa_spam_subject_tag
@@ -1691,5 +1692,5 @@
@spam_kill_level_maps @spam_modifies_subj_maps
@spam_dsn_cutoff_level_maps @spam_dsn_cutoff_level_bysender_maps
- @spam_quarantine_cutoff_level_maps
+ @spam_quarantine_cutoff_level_maps @spam_notifyadmin_cutoff_level_maps
@spam_subject_tag_maps @spam_subject_tag2_maps @spam_subject_tag3_maps
@whitelist_sender_maps @blacklist_sender_maps @score_sender_maps
@@ -12568,4 +12569,19 @@
$r->setting_by_contents_category(cr('admin_maps_by_ccat'));
($a) = lookup2(0,$rec,$admin_maps_ref) if $admin_maps_ref;
+ if (defined $a && $a ne '' &&
+ ($rec_ccat_maj==CC_SPAM || $rec_ccat_maj==CC_SPAMMY)) {
+ # consider suppressing spam admin notifications
+ my($cutoff) = lookup2(0,$rec, ca('spam_notifyadmin_cutoff_level_maps'));
+ if (!defined $cutoff || $cutoff eq '') {
+ # no cutoff, sending administrator notifications
+ } elsif ($blacklisted && !$whitelisted) {
+ do_log(2,"do_notify_and_quarantine: spam admin cutoff, blacklisted");
+ $a = ''; # disable admin notification on behalf of this recipient
+ } elsif ($spam_level_boosted >= $cutoff) {
+ do_log(2,"do_notify_and_quarantine: spam level exceeds ".
+ "spam admin cutoff level %s", $cutoff);
+ $a = ''; # disable admin notification on behalf of this recipient
+ }
+ }
push(@a_addr, $a) if defined $a && $a ne '' && !grep {$_ eq $a} @a_addr;
if (ccat_maj($r->contents_category)==CC_VIRUS && $newvirus_admin_maps_ref){
Mark
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
_______________________________________________
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/