Shelley Waltz writes:
> Spamassassin 2.63-1/amavisd-new-20030616-p8
> 
> I am trying to configure spamassassin such that any email originating
> from my domain is not spam tagged.  I have tried in local.cf
> 
> both these syntaxes.
> 
> header LOCAL_RCVD Received =~ /.*\(\S+\.myhost\.mydom\.edu\s+\[.*\]\)/
> header LOCAL_RCVD Received =~ /\S+\.myhost\.mydom\.edu\s+\(.*\[.*\]\)/
> 
> 
> In each case only one rule will work for one particular received from
> header.  I have these two styles(one from mozilla, and one from webmail)
> 
> Received: from [192.168.1.10] (myhost.mydom.edu [192.168.1.10])
> 
> Received: from webmail.mydom.edu (localhost.localdomain [127.0.0.1])
> 
> Is there a rule which will work for both, or is there a simpler way to
> achieve this result, ie, to not filter locallly originating mail?

use trusted_networks; this is what ALL_TRUSTED is for.

--j.

Reply via email to