RE: postfix not checking header_checks file

From: Jon Langton (no email)
Date: Thu Jan 01 2004 - 12:52:52 EST


I screwed up my last email. Here is what I have:
header_checks = regexp:/etc/postfix/header_checks in main.cf
/^From: .*<>/ REJECT in header_checks file

With this config I see in /var/log/maillog an entry of From=<> size=3225,
nrcpt=1 (queue active) then I see a bunch of outbound emails so I am
assuming that they are using a null? from field to fool postfix into
relaying email. Any ideas how to prevent this?

-----Original Message-----
From: Magnus Bäck [mailto:]
Sent: Thursday, January 01, 2004 10:43 AM
To:
Subject: Re: postfix not checking header_checks file

On Thu, Jan 01, 2004 at 10:31:56AM -0700,
     Jon Langton <> wrote:

> I have installed postfix 2.0.16 on RedHat Linux 7.2 (kernel 2.4.20-24.7)
> and am using it to relay email to and from my production Exchange server.
> I am having issues with the header_checks file in that nothing gets
> blocked that has the / REJECT set in this file. In my main.cf file I have
> header_checks = hash:/etc/postfix/header_checks.

You probably don't want to use a hash map for header_checks. Use regexp
or, even better, pcre.

> In the header_checks file I have From: <>/ REJECT or From:<>/ REJECT
> which doesn't seem to work. Can someone help me with the correct
> syntax?

Read regexp_table(5) or pcre_table(5) for a syntax description. It seems
that you're missing a / at the beginning of the line. Use postmap(1) to
debug your expressions.

(If you *really* want to use a hash map, which I assume will work, read
access(5).)

-- 
Magnus Bäck







Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD