From: keithcommins <keith.comm...@windmilllane.com>
   Date: Wed, 28 Jul 2010 07:57:43 -0700 (PDT)
   
   Hi there , 
   
   Having some trouble getting this to work correctly , it would seem..
   
   Firstly,  here is my whitelist_from rcvd config from my local.cf file.
   
You can't use whitelist_from_rcvd on internal email.   You don't have
an external relay to match against.   It doesn't matter if your
machine ends in .local or not.

Note the FH_DATE_PAST_20XX.   You probably need to run sa-update sometime this 
year.

The ALL_TRUSTED should be enough by itself.   If you need to have a
separate whitelisting you could try something like the following:

meta __TRUSTED_NETWORKS (NO_RELAYS || ALL_TRUSTED)
header __LOCAL_SENDER      From =~ /\...@mydomain\.com/i
meta   FORGED_LOCAL_SENDER (__LOCAL_SENDER && !__TRUSTED_NETWORKS)
score  FORGED_LOCAL_SENDER 0.1
meta   VALID_LOCAL_SENDER (__LOCAL_SENDER && __TRUSTED_NETWORKS)
score  VALID_LOCAL_SENDER -0.1

-jeff


   whitelist_from_rcvd  *...@mydomain.com         mydomain.local
   trusted_networks 172.16.1/24 172.16.2/24 172.16.3/24 172.16.5/24 xx.xx.xx.xx
   internal_networks 172.16.1/24 172.16.2/24 172.16.3/24 172.16.5/24
   xx.xx.xx.xx
   
   ( xx.xx.xx.xx represents the outward facing IP of my mail server )
   
   Secondly, below is a header from a test email I sent to myself..
   
   Return-Path: <some.u...@mydomain.com>
   Received: by mydomain.com (CommuniGate Pro PIPE 5.2.12)
     with PIPE id 18275900; Wed, 28 Jul 2010 11:31:13 +0100
   X-TFF-CGPSA-Version: 1.5
   X-TFF-CGPSA-Filter: Scanned
   X-Spam-DCC: wuwien: mail.mydomain.com 1290; Body=1 Fuz1=2 Fuz2=6
   X-Spam-Checker-Version: SpamAssassin 3.2.5 ( 2008-06-10 ) on
        mail.mydomain.com
   X-Spam-Level: ***
   X-Spam-Status: No, score=3.8 required=8.0
   tests=ALL_TRUSTED,FH_DATE_PAST_20XX,
        HTML_IMAGE_ONLY_20,HTML_MESSAGE autolearn=no version=3.2.5
   X-Spam-Pyzor: 
   Received: from [172.16.3.150] (account some.user [172.16.3.150] verified)
     by mydomain.com (CommuniGate Pro SMTP 5.2.12)
     with ESMTPA id 18275888 for some.u...@mydomain.com; Wed, 28 Jul 2010
   11:31:04 +0100
   Message-ID: <4c500626.7010...@mydomain.com>
   Date: Wed, 28 Jul 2010 11:27:50 +0100
   From: Some User <some.u...@mydomain.com>
   User-Agent: Thunderbird 2.0.0.24 (Windows/20100228)
   MIME-Version: 1.0
   To: Some User <some.u...@mydomain.com>
   Subject: (no subject)
   Content-Type: multipart/alternative;
    boundary="------------020906000403080006070205"
   X-EsetId: 90695D289D6435708F6F5D7C933375
   
   This is a multi-part message in MIME format.
   --------------020906000403080006070205
   Content-Type: text/plain; charset=ISO-8859-1; format=flowed
   Content-Transfer-Encoding: 7bit
   
   Couple of things to note , we use Active Directory which means the FQDN name
   of all our machines end in *.local rather than *.com. Should the
   whitelist_rcvd reflect this in any way??
   Its my understanding that all mails should get a Spam Assassin score of -100
   or thereabouts , thus permanently whitelisting all our domain users. However
   , as you can see this isn't happening??
   
   Is there anything else I should be doing to whitelist my domain users??
   
   
   Thanks in advance for all your help..
   Keith
   -- 
   View this message in context: 
http://old.nabble.com/Trouble-whitelisting-domain-users-with-whitelist_from_rcvd-tp29287372p29287372.html
   Sent from the SpamAssassin - Users mailing list archive at Nabble.com.
   

Reply via email to