[lug] Postfix

Dan Ferris dan at ferrises.com
Wed Nov 5 09:53:57 MST 2003


In main.cf, there are the lines header_checks and body_checks.  These 
lines have to be against the left margin.  I had a space between the 
left margin and the first letter. When I did the postfix -v reload, 
without removing the spaces, it put the header_checks and body_checks 
lumped in with the mynetworks parameter, which was really REALLY weird. 
  I didn't think Postfix was whitespace sensative, but I guess it is.

Below is correct:

# REJECT the entire message is rejected.
# REJECT text.... The text is sent to the originator.
# IGNORE the header line is silently discarded.
# WARN   the header is logged (not rejected) with a warning message.
# WARN text... as above, and the text is logged, too.
#
# These patterns do not apply to MIME headers in the message body.
#
# See also the body_checks example in the sample-filter.cf file.
#
body_checks = pcre:/etc/postfix/body_checks
header_checks = pcre:/etc/postfix/header_checks

Incorrect:

# REJECT the entire message is rejected.
# REJECT text.... The text is sent to the originator.
# IGNORE the header line is silently discarded.
# WARN   the header is logged (not rejected) with a warning message.
# WARN text... as above, and the text is logged, too.
#
# These patterns do not apply to MIME headers in the message body.
#
# See also the body_checks example in the sample-filter.cf file.
#
  body_checks = pcre:/etc/postfix/body_checks
  header_checks = pcre:/etc/postfix/header_checks



Andrew Diederich wrote:
> You are, of course, correct about the -v.  I checked the command line
> prompt, not the man page.
> 
> Where was the whitespace problem, for the good of the archives?
> 




More information about the LUG mailing list