> Assuming I will use amavisd.conf-sample as my amavisd.conf,
> what effect will leaving the %final_destiny_by_ccat() settings
> uncommented have if I simply want to change $final_spam_destiny
> from D_BOUNCE to D_DISCARD?
Leaving %final_destiny_by_ccat to its default (not having a new
value assigned to it in amavisd.conf, e.g. having it commented out),
everything behaves as before, the $final_spam_destiny will be taken
into effect if mail is spam.
The same applies to all *_by_ccat associative arrays: leave them
at their defaults (don't mention them in amavisd.conf), and all old
config variables will behave as before.
If a *_by_ccat is assigned to explicitly, then whatever is assigned to
it controls which settings or config variables will be consulted.
From RELEASE_NOTES:
The chain of lookups adhere to the following evaluation sequence
for settings with an associated *_by_ccat mechanism:
* policy bank chooses a *_by_ccat associative array (by TCP port or
by client's IP address (MYNETS));
* the most relevant contents type of the message chooses an entry in
a _by_ccat associative array; the entry can be a final settings value,
or a ref to an array of by-recipient lookup tables (*_maps);
mostly for compatibility reasons an entry can also be a ref to CODE,
which allows for delayed evaluation through legacy *_maps settings
(which may again be members of policy banks);
* the chosen list of lookup tables is queried based on recipient address,
producing a final setting;
Note that currently only settings which are applicable _after_ the mail
contents type has already been determined, have their associated _by_ccat
associative array. Settings like @bypass_spam_checks_maps which need to be
evaluated _before_ mail contents is assessed, do not have their associated
_by_ccat array;
Mark
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
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/