From: Magnus Bäck (no email)
Date: Thu Jan 01 2004 - 12:43:00 EST
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
|
|
|