Quoting RW <rwmailli...@googlemail.com>:

On Sat, 13 Jun 2015 21:25:02 +0200
Bruno Costacurta wrote:

Hello,

I setup the following into /etc/spamassassin/local.cf

whitelist_from  *@postfix.org

But this seems not working as apparently spamassassin still process
emails from *@postfix.org.

If you don't want SpamAssassin to process an email you have to
configure that in whatever glue passes the mail to
SpamAssassin, whitelist_from just causes a rule to hit with a large
negative score.

Your actual problem is that the rule isn't showing in the spamd debug.
If postfix.org isn't in the "From" header then SA needs to find it in
an appropriate envelope header. See the documentation for
whitelist_from in the SA configuration man-page.

Thanks for explanation.
Now it is resolved.

First, my previous sample about postfix.org.
In fact the 'from' did not contain @postfix.org.
The postfix log shows :
(...)
postfix/qmgr[9892]: B3C30DA6040: from=<owner-postfix-us...@postfix.org>, size=7257, nrcpt=1 (queue active)
(...)
which confused me.
In fact the header 'Sender' and 'Return-path' contains @postfix.org, but the 'From' on which I based my whitelist_from understanding, contains the sender email, not @postfix.org

Second, I understand now that whitelist_from just represent a large score, and does not bypass the email itself.

Thanks again
Bruno

--
LiCo : LinuxCounter Project
Get counted as a Linux user and register your linux boxes
http://linuxcounter.net/
--

Reply via email to