Re: solved: Re: [AMaViS-user] read local_domains from "non-standard" flat file

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"); &...


Go Back   Usenet Forums > Anti-Spam and Anti-Virus Related Forums > Amavis User

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-28-2005
Gary V
 
Posts: n/a
Default Re: solved: Re: [AMaViS-user] read local_domains from "non-standard" flat file

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/
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:27 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0