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

Reply via email to