Thx Gary... That file format is what I was looking for... I thought you had
to use aaa => score as in amavisd.conf ... I was wrong..

Now its working and its better to use the external file since amavisd.conf
can be replaced or modified when/if you upgrade amavis.

Thx! 

|-----Original Message-----
|From: [EMAIL PROTECTED] 
|[mailto:[EMAIL PROTECTED] On Behalf Of Gary V
|Sent: Tuesday, October 25, 2005 9:54 PM
|To: [email protected]
|Subject: Re: [AMaViS-user] upping the score for a single email address
|
|Anton wrote:
|
|> This looks interesting:
|> @score_sender_maps = ({  # a by-recipient hash lookup table #  
|> read_hash("/var/amavis/sender_scores_sitewide"),
|> But how do you make such a file? Whats the format?
|>
|
|@score_sender_maps is probably the best way to adjust a score 
|for a particular sender (email address or domain). This is 
|known as 'soft'
|whitelistling or 'soft' blacklisting.
|
|@score_sender_maps = ({  # a by-recipient hash lookup table <...>
|  # site-wide opinions about senders (the '.' matches any recipient)
|  '.' => [  # the _first_ matching sender determines the score 
|boost <...> #  read_hash("/var/amavis/sender_scores_sitewide"),
|
|   { # a hash-type lookup table (associative array)
|     '[EMAIL PROTECTED]'                     => -1.0,
|     '[EMAIL PROTECTED]'                        => -3.0,
|     '[EMAIL PROTECTED]'              => -3.0,
|     '[EMAIL PROTECTED]'                    => -3.0,
|<...>
|
|You can either place the sender in amavisd.conf, in the same 
|place these examples are, or in a file you create. You would 
|of course uncomment the read_hash line. There are a number of 
|ways to create files, but often you create them by simply 
|editing them. For example:
|
|vi /var/amavis/sender_scores_sitewide
|
|If you are not familiar with the vi editor, then you could use 
|'nano', but you should learn enough about vi to be able to 
|edit a file with it.
|
|This example assumes you have a /var/amavis directory (the 
|home directory of the amavisd-new user).
|
|The format of this file is: sender on the left, score 
|adjustment on the right.
|
|[EMAIL PROTECTED] -1.0
|daimlerchrysler.com -3.0
|.fordmotorcompany.com -2.0
|
|that was an example of
|a particular sender
|a domain
|a domain and any subdomain of that domain
|
|It should be obvious a negative number decreases the final 
|spam score, and a positive score increases it.
|
|Gary V
|
|
|
|-------------------------------------------------------
|This SF.Net email is sponsored by the JBoss Inc.
|Get Certified Today * Register for a JBoss Training Course 
|Free Certification Exam for All Training Attendees Through End 
|of 2005 Visit http://www.jboss.com/services/certification for 
|more information _______________________________________________
|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/
|



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
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/

Reply via email to