Gary wrote: > Thierry wrote:
>> Benny Pedersen a écrit : >>> On Sun, July 30, 2006 12:07, Thierry B wrote: >>>> Hello, >>>> >>>> I use amavis for virus and spam (spamassassin). >>>> >>>> As I receive mails from amavis, postfix, debian list, I try to put these >>>> mails to my file spam_lovers like that: >>>> >>>> serveurP4:~# cat /etc/amavis/spam_lovers >>>> [email protected] >>>> ....... >>>> >>>> But for example, if I look a mail that I receive for amavis list, I've >>>> that: >>>> >>>> X-Virus-Scanned: by amavisd-new-20030616-p10 (hostname) at my_domain >>>> X-Spam-Status: No, hits=1.9 tagged_above=-100.0 required=5.0 >>>> tests=BAYES_50, >>>> FORGED_MUA_THEBAT_CS >>>> X-Spam-Level: * >>>> >>>> Why it doesn't works and how can I do to make it works? :-) >>>> >>>> Thanks :-) >>> >>> add whitelist_to into local.cf with that to address you just added to >>> spam_lowers >>> >>> whitelist_to [EMAIL PROTECTED] >>> >>> i bet amavisd is not a spam tester :-) >>> > It uses SpamAssassin to test for spam, and has it's own > blacklist/whitelist settings that can be used instead of > or in conjunction with spamassassin's. >> Ok, it's done :-) >> But if I have to use whitelist_to, what is the interest to use spam_lovers? >> So I can delete files spam_lovers, blacklist_sender, whitelist_sender >> from amavis, and use only whitelist_to, whitelist_from and >> blacklist_from of local.cf? >> Thanks :-) >> Bye > spam_lovers insures spam is delivered to listed *recipients* regardless > of spam score. It is not for senders. If you want to whitelist mail sent > from [email protected] then you would place that address > in your whitelist_sender table (or) in local.cf you could set: > whitelist_from [email protected] > Placing the address in your whitelist_sender table means mail from > that address will be delivered regardless of spam score (but still > could be blocked if it contains a virus or banned content etc.). > Using whitelist_from in local.cf means the score will get lowered by > 100 points for mail that is sent from the listed address. > whitelist_to as suggested will lower the spam score by 100 point for > mail that YOU send to the listed address. This would only be of use if > outbound mail passes through amavisd-new, and you are sending spam. Correction, Benny is correct in this particular case of [email protected], since the header of the mail does have: To: [email protected] or possibly CC: [email protected] whitelist_to in local.cf would work, but the majority of the time, mail will be addressed to you. SpamAssassin reads the headers to determine this, but amavisd-new uses the envelope sender. So to whitelist the amavis list, you would actually add these to your whitelist_sender table: [EMAIL PROTECTED] [EMAIL PROTECTED] as these are the two possible envelope senders. http://spamassassin.apache.org/full/3.1.x/dist/doc/Mail_SpamAssassin_Conf.html#whitelist_and_blacklist_options Gary V ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ 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/
