On 05/06/2011 08:38 PM, Rajesh M wrote:
> hi
> 
> i wish to whitelist a few client's server's static ip in the spamassasin
> trusted network
> 
> i am entering a line like this in local.cf file.
> 
> trusted_networks xxx.yyy.zzz.ppp
> 
> if i do this then the email from this server ip should be given a negative
> score but it does not seem to work

No, it effects how SpamAssassin regards Received lines added by those
IPs. (ie, it causes SpamAssassin to trust that the Received line is not
forged)

You also might want to have a peek at:
http://wiki.apache.org/spamassassin/TrustedRelays
and
http://wiki.apache.org/spamassassin/TrustPath

> spamassassin does not work for any ip that i put here, even those ips of

does not work?

> my other servers are not trusted.

> It seems that spamassassin is simply not
> even looking at the trusted network ips ie it is disabled due to some
> reason

Or it could be that you are expecting trusted networks to act as a
whitelist, which is not its function.

> could you please help.

Perhaps easiest way: make a local dns whitelist of IPs to which you feel
your setup should apply a negative score, and then add some nice net
rules to go along with it.

Also, you might want to have a look at:
whitelist_from_rcvd , which is documented here:
http://spamassassin.apache.org/full/3.1.x/doc/Mail_SpamAssassin_Conf.html#whitelist_and_blacklist_options

Short version: Say your client is example.com and uses mail.example.com,
you could do:
whitelist_from_rcvd *@example.com mail.example.com

to give negative points to mail from example.com that you receive from
mail.example.com.

HTH.

-- 
Joe Sniderman <joseph.snider...@thoroquel.org>

Reply via email to