Martin wrote:

> At the moment i use "whitelist_from" in the local.cf of spamassassin to
> whitelist senders/sender domains. I am not very lucky about that
> solution 'cause it will add a -100 to every mail that
> matches the listed senders. As many spam mails come with faked senders
> there is some spam passing that shouldn't.

> Reading a bit through amavisd.conf-default and this list, i got
> some ideas how this could be solved in amavisd.
> At the moment i am thinking of using @score_sender_maps
> for all incoming mail, if i understood it right it can
> be done with '.' => [List of domains and scores]. As the List
> consist of about 30 entries and is growing i would put it into
> a file using the read_hash for score_sender_maps.

> Is this a good way or is there a better, more easy or more
> efficient way to do this?
 
> Regards / Mit freundlichen Grüßen
 
> Martin Bärtl, CDP Bharat Forge GmbH

You can simply uncomment (and configure the path if needed)
#  read_hash("/var/amavis/sender_scores_sitewide"),
and the entries will be added to the list along with all the existing
entries in amavisd.conf.

In the sender_scores_sitewide place entries in this manner:

[EMAIL PROTECTED] -6
[EMAIL PROTECTED] 10
[EMAIL PROTECTED] -1200

Keep in mind SpamAssassin uses headers (like From:) to determine a
match for whitelist_from, and amavisd-new uses the envelope sender.
More often than not they are the same, but of course, not always.

IMHO using @score_sender_maps is simpler than using spamassassin's
wbl. To match the flexibility of amavisd-new's method, you would have
to create custom rules for each sender in spamassassin.

Also, in amavisd.conf it is possible to do per-recipient wbls if
needed, so this add even more flexibility.

# # per-recipient personal tables  (NOTE: positive: black, negative: white)
# '[EMAIL PROTECTED]'  => [{'[EMAIL PROTECTED]' => 10.0}],
# '[EMAIL PROTECTED]'  => [{'.ebay.com'                 => -3.0}],
# '[EMAIL PROTECTED]'  => [{'[EMAIL PROTECTED]' => -7.0,
#                           '.cleargreen.com'           => -5.0}],

Gary V


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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