This is a discussion on Re: [AMaViS-user] sender_scores_sitewide within the Amavis User forums, part of the Anti-Spam and Anti-Virus Related Forums category; Per olof, > I am trying to do @score_sender_maps using > read_hash("/var/amavis/sender_scores_sitewide"), > but cannot ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Per olof,
> I am trying to do @score_sender_maps using > read_hash("/var/amavis/sender_scores_sitewide"), > but cannot see anything happening. >... > Should the format of the external file read > sender => <score> > or > sender <score> The @score_sender_maps is a two level structure. The read_hash can create or fill only a simple associative array (Perl hash), there is currently no provision to read a two-level structure directly from a file. You will have to follow the example in amavisd.conf-sample : @score_sender_maps = ( {'.sub1.example.com' => [ read_hash("/var/amavis/sender_scores_sub1") ], '.sub2.example.com' => [ read_hash("/var/amavis/sender_scores_sub2") ], '.' => [ read_hash("/var/amavis/sender_scores_sitewide") ], } ); Mark ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ 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 | |
|
|