Arno,

> we use amavisd-new with a sendmail sandwich config - it works very well
> there is always a single quarantine at "tag2-level" defined.
> now some organisations (mostly large ones) want to define two
> quarantines.
> - one with score between tag2-level and about 6 points and
> - one with all the spams above 6 points
> is this possible with amavisd-new ?

With recent versions of amavisd-new (2.5.1, 2.5.0) it is
possible to make use of $tag3_level and *_by_ccat configurations.

Tag3 is similar to tag2, both turn on CC_SPAMMY contents category,
while tag3 also turns on a minor contents category 1 (in addition
to the default 0 as tag2 does).

The following relation is common:
  tag <= tag2 <= tag3 <= kill level

The usual quarantining takes place at kill level.

To turn on also quarantining at tag3 level (which is:  CC_SPAMMY,1 ),
and direct it to a dedicated directory, something like the following
can be used:

$sa_tag2_level_deflt = 6.2;  # add 'spam' headers at that level
$sa_tag3_level_deflt = 8;    # add 'blatant spam' headers

# optional but nice:
@spam_subject_tag2_maps = ('***SPAM*** _SCORE_ ');
@spam_subject_tag3_maps = ('***BLATANT*SPAM**** _SCORE_ ');

# quarantining at tag2 level (optional)
$quarantine_to_maps_by_ccat{+CC_SPAMMY} = ['spam-quarantine'];
$quarantine_method_by_ccat{+CC_SPAMMY} = 'local:spammy2/%m.gz';

# quarantining at tag3 level (this is the one we are talking about)
$quarantine_to_maps_by_ccat{CC_SPAMMY.",1"} = ['spam-quarantine'];
$quarantine_method_by_ccat{CC_SPAMMY.",1"} = 'local:spammy3/%m.gz';

# quarantining at kill level (a default, stated explicitly)
$quarantine_to_maps_by_ccat{+CC_SPAM} = ['spam-quarantine'];
$quarantine_method_by_ccat{+CC_SPAM} = 'local:spam/%m.gz';


Note that quarantining controls are independent from passing/blocking mail.
Mail is blocked at kill level (unless destiny is D_PASS or recipient is 
*_lover), this is hard-wired.

  Mark

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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