On 5/5/2010 12:00 PM, Laurent CARON wrote:
Hi,

I'm basically trying to protect my users from the following:

Spam
- Sent from accounts hosted on freemail providers (yahoo, ...)
- Originating from AfriNIC ranges
- Tergetted at several dozen of users

The headers look like this:
Received: from [41.207.213.162] by web1104.biz.mail.sk1.yahoo.com via HTTP; 
Tue, 04 May 2010 14:44:20 PDT


It is fairly trivial to block suck things via a header access map

if
/^(Received|X-((Origin(ating)?|Client|MDRemote|Sender)-?IP|(Client|Remote_)Addr|PHP-Script)):/
/\b(41\.\d+\.\d+\.\d+)\b/ REJECT regional junk 001 #Africa
endif

Some of my users receive a few legitimate emails from Africa.

Apart from using a policy server, can postfix natively be configured to
acheive this goal ?

Policy servers don't have access to headers. Header_checks apply to all mail with no exceptions.

Sounds as if you need amavisd-new + SpamAssassin.

  -- Noel Jones

Reply via email to