Re: [AMaViS-user] sender_scores_sitewide

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 ...


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 02-17-2005
Mark Martinec
 
Posts: n/a
Default Re: [AMaViS-user] sender_scores_sitewide

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/
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 07:07 AM.


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