On 7/1/2010 2:15 PM, David Hill wrote:
On Thu, Jul 01, 2010 at 02:35:22PM -0400, Wietse Venema wrote:
David Hill:
Hello,
I am using Postfix 2.7.1. The header_checks manpage says REJECT will
insert a default enhanced status code of 5.7.1 if the optional text is
not specified. However, the server gives back 450 4.7.1.
220 mail.server.com ESMTP Postfix
EHLO hostname
250-mail.server.com
250-PIPELINING
250-SIZE 35651584
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
MAIL FROM:<da...@wmol.com>
250 2.1.0 Ok
RCPT TO:<da...@wmol.com>
250 2.1.5 Ok
DATA
354 End data with<CR><LF>.<CR><LF>
Subject: Viagra
.
450 4.7.1 Spam.
/var/log/maillog shows 5.7.1 was returned?
Jul 1 11:16:18 mail postfix/cleanup[28982]: 01B6B72347: reject: header
Subject: Viagra from localhost[127.0.0.1];
from=<da...@wmol.com> to=<da...@wmol.com> proto=ESMTP
helo=<hostname>: 5.7.1 Spam
# grep Viagra /etc/postfix/config/header_checks
/^Subject:.*Viagra/ REJECT 5.7.1 Spam.
# /usr/local/sbin/postconf | grep ^header_checks
header_checks = pcre:/etc/postfix/config/header_checks
What am I doing wrong?
As I replied to your direct mail, Postfix has 600+ configuration
parameters. For a proper problem report see
http://www.postfix.org/DEBUG_README.html#mail
Wietse
I changed header_checks to just the following:
/^Subject:.*Viagra/ REJECT
I used ktrace and kdump and see this... (snippet)
In the unlikely event we need to see ktrace/kdump output,
we'll ask for it.
What we do need to see is detailed here:
http://www.postfix.org/DEBUG_README.html#mail
-- Noel Jones