Lucas,

> I would like to take this message to ask about quarantine.
> In my amavis::custom, I use CC_SPAM to discard the e-mail,
> but the message has been stored at disk.
> These filters are developed in checks function.
>
> Is there the way to discard the message entirely?

You could employ the @spam_quarantine_cutoff_level_maps
mechanism, which suppresses quarantining if a spam level
is above quarantine cutoff level for each recipient.

The level could be set arbitrarily high (if you don't
want it to trigger for lower score spam), but must be
defined (not empty/undef), e.g.:

@spam_quarantine_cutoff_level_maps = (9999);

Then in the custom hook 'checks' where you are already
flagging a message as CC_SPAM for each recipient, set
either the $r->recip_score_boost above 9999, or flag it
as blacklisted - blacklisting behaves similarly
to a very high spam score:

    for my $r (@{$msginfo->per_recip_data}) {
      $r->add_contents_category(CC_SPAM);
      $r->recip_blacklisted_sender(1);
      $r->recip_score_boost(12000);
    }


(you don't need both the recip_blacklisted_sender and
recip_score_boost, one or the other should suffice)

  Mark

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
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