Gary wrote:
> This is getting to be a bad habit. Not the first time I have done this,
> let me try again:
> $policy_bank{'MYNETS'} = { # mail originating from @mynetworks
> spam_tag2_level_maps => 5.0,
> spam_kill_level_maps => 18.0,
> final_virus_destiny => D_BOUNCE,
> final_banned_destiny => D_BOUNCE,
> final_spam_destiny => D_DISCARD,
> final_bad_header_destiny => D_BOUNCE,
> };
So (from the original post) why is this wrong (as an example):?
> $sa_tag2_level_deflt => [5.0], # add 'spam detected' headers at that level
sa_tag2_level_deflt is not a member of policy banks, but
spam_tag2_level_maps is.
Drop the $ because we are not trying to assign a value to a scaler here,
as we would be doing elsewhere in amavisd.conf, we are instead creating
a key that references a variable.
The square brackets in the example [5.0] would only be required if there
were a list of values; the brackets could be used here (there is a list
of 1 value), but for a _maps setting like this (that normally would
take a list of values), the brackets are not required when there is
only a single value. The final_*_destiny settings only take a single
value, not a list.
So, this should be Ok too:
$policy_bank{'MYNETS'} = { # mail originating from @mynetworks
spam_tag2_level_maps => [5.0],
spam_kill_level_maps => [18.0],
final_virus_destiny => D_BOUNCE,
final_banned_destiny => D_BOUNCE,
final_spam_destiny => D_DISCARD,
final_bad_header_destiny => D_BOUNCE,
};
Mark, I'm kind of winging it here. I hope I'm not too far off. :)
Gary V
-------------------------------------------------------------------------
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/