Andrew Wilkinson wrote:
I'm experimenting with Fedora 8 and a miltered sendmail configuration running as a mail gateway (smf-sav, smf-spf, milter-greylist, clamav-milter, spamass-milter). I've configured spamassassin's local.cf with a custom rule. It's a simple regex which checks the 'Received' header on inbound mail for any IP in a specific Class C range,

You may be trying to check a header that doesn't exist by the time the message reaches SA. A stock sendmail/milter setup will not pass in the Received: header that would be generated on that machine; that header is added *after* milter processing. Several smarter milters generate a pseudoheader to work around this.

IP-based whitelisting like this is usually best done at higher levels; I'm not sure what criteria you can use to limit which messages get passed to SA.

-kgd

Reply via email to