From: Igor Bogomazov <[email protected]>
Date: Fri, 2 Oct 2009 12:34:55 +0400
When I add the string like:
whitelist_from [email protected]
it works OK.
But:
whitelist_from_rcvd [email protected] prefix.domain.mail
doesn't work.
I've checked rDNS of the prefix.domain.mail with 'host' utility - it's
all right.
And the appropriate mail header seems to be correct:
Received: from prefix.domain.mail (unknown [12.12.12.12])
What's the matter?
It is hard to say for sure without seeing actual received headers.
You need to use the last external relay used by the email.
>From man Mail::SpamAssassin::Conf.
whitelist_from_rcvd ...
This string is matched against the reverse DNS lookup used during
the handover from the internet to your internal network's mail
exchangers. It can either be the full hostname, or the domain
component of that hostname. ...
The easiest way to figure out which one to use is to add a Relay
header using:
add_header all Relay trusted=_RELAYSTRUSTED_, untrusted=_RELAYSUNTRUSTED_
Then get the RDNS from the first untrusted=[ip=... rdns=RDNS ...] relay.
If the RDNS is blank then the whitelist_from_rcvd won't work.
Your internal_networks and trusted_networks needs to be setup correctly.
-jeff