On 2011-07-13 18:44, Jason Ede wrote:

Can I get SA to be a bit more verbose about what it considers to be trusted 
networks?


-----Original Message-----
From: dar...@chaosreigns.com [mailto:dar...@chaosreigns.com]
Sent: 13 July 2011 17:32
To: users@spamassassin.apache.org
Subject: Re: Skipping header lines

On 07/13, Jason Ede wrote:
    I’m running 3.3.2 and I’d like to ignore the first received header as I
    receive the email on one postfix instance and then pass it along to
    another to do the scanning. So far all the emails are showing up as
    trusted as it sees the email as coming from 127.0.0.1

Really?  SA should already be skipping any 127.0.0.1 lines.  Best to provide a
couple examples via something like pastebin.com.

Generally you would skip Received headers via the internal_networks
configuration setting.  But I believe the default is to consider
127.0.0.1 included.

--
"It is better to die on your feet than to live on your knees."
  - Emiliano Zapata, Mexican Revolution Leader
http://www.ChaosReigns.com

and again.. that file is your friend:

http://spamassassin.apache.org/full/3.3.x/doc/Mail_SpamAssassin_Conf.txt

add_header all

and in TEMPLATE TAGS pick whatevr suits your need:

     _RELAYSTRUSTED_   relays used and deemed to be trusted (see the
                       'X-Spam-Relays-Trusted' pseudo-header)
     _RELAYSUNTRUSTED_ relays used that can not be trusted (see the
                       'X-Spam-Relays-Untrusted' pseudo-header)
     _RELAYSINTERNAL_  relays used and deemed to be internal (see the
                       'X-Spam-Relays-Internal' pseudo-header)
     _RELAYSEXTERNAL_  relays used and deemed to be external (see the
                       'X-Spam-Relays-External' pseudo-header)
     _LASTEXTERNALIP_  IP address of client in the external-to-internal
                       SMTP handover
     _LASTEXTERNALRDNS_ reverse-DNS of client in the external-to-internal
                       SMTP handover
_LASTEXTERNALHELO_ HELO string used by client in the external-to-internal
                       SMTP handover

eg:
add_header all _RELAYSEXTERNAL_




Reply via email to