Hi Victor,
At 22:02 08-04-2008, Victor Sudakov wrote:
>I have the following rule in local.cf:
>whitelist_from_rcvd *@dtdm.tomsk.ru dtdm.tomsk.ru
>Please help me figure out why the rule does not work. Below is a sample
>message where I think the rule should work but actually does not.


>Received: from mail.sibptus.tomsk.ru []
> by admin.sibptus.tomsk.ru with POP3 (fetchmail-6.3.8)
> for (single-drop); Tue, 08 Apr 2008
> 15:08:02 +0700 (OMSST)
>Received: from gw.dtdm.tomsk.ru ([] verified)
> by relay2.tomsk.ru (CommuniGate Pro SMTP 5.1.13)
> with ESMTPS id 9838562 for vas@mpeks.tomsk.su; Tue, 08 Apr 2008
> 15:05:54 +0700

That rule does not match the host in the Received: header. The host
shows up as an IP address.

You could use:

whitelist_auth *@dtdm.tomsk.ru

as the domain has SFP records. Don't forget to enable the
Mail::SpamAssassin::Plugins::SPF plugin if you use the above.