This is a discussion on Re: solved: Re: [AMaViS-user] read local_domains from "non-standard" flat file within the Amavis User forums, part of the Anti-Spam and Anti-Virus Related Forums category; Mark wrote: > Gary, >> then I also placed: >> read_hash(\%spam_kill_level, "/var/lib/amavis/killlevel"); &...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Mark wrote:
> Gary, >> then I also placed: >> read_hash(\%spam_kill_level, "/var/lib/amavis/killlevel"); >> @spam_kill_level_maps = (\%spam_kill_level, \$sa_kill_level_deflt); >> in amavisd.conf. >> >> the contents of /var/lib/amavis/killlevel are in the form: >> user1@example.com 6.5 >> user2@example.com 7.1 >> .example2.com 9.0 >> postmaster@ 99.9 >> >> Seems to work, if it does work, I see no reason it could not >> also be configured to work with sa_tag2_level. > This works since amavisd-new-2.0. From release notes: > - rewritten read_hash, it is now possible to specify key value (right-hand > side) for each key. If value is not specified, a '1' is assumed as before; > and is illustrated in amavisd.conf-sample: > @score_sender_maps = ({ > ... > read_hash("/var/amavis/sender_scores_sitewide"), > Mark So there is no need to use another variable - %spam_kill_level. We can be more direct and not have to modify amavisd: $sa_kill_level_deflt = 8.0; @spam_kill_level_maps = (\read_hash("/var/lib/amavis/killlevel"), \$sa_kill_level_deflt); Tests out OK. Gary V ------------------------------------------------------- SF.Net email is sponsored by: Tell us your software development plans! Take this survey and enter to win a one-year sub to SourceForge.net Plus IDC's 2005 look-ahead and a copy of this survey Click here to start! http://www.idcswdc.com/cgi-bin/survey?id=105hix _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/...fo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/ |
![]() |
| Thread Tools | |
| Display Modes | |
|
|