diff --git a/postfix/HISTORY b/postfix/HISTORY index 0540862c2..edb53b26b 100644 --- a/postfix/HISTORY +++ b/postfix/HISTORY @@ -9092,6 +9092,31 @@ Apologies for any names omitted. Misc. documentation fixes by Victor Duchovni. +20040126 + + Safety: handle the case that main.cf is updated while it + is being read. File: util/dict.c. + +20040127 + + Bugfix: missing flush_init() call. Introduced 20040105. + File: postqueue/postqueue.c. + +20040202 + + Bugfix: changed mis-leading warning about text>4096 characters + into "unexpected end-of-input". File: util/attr_scan0.c. + +20040204 + + Bugfix: don't panic on a corrupt queue file. File: + *qmgr/qmgr_message.c. + +20040205 + + Cleanup: sample-filter.cf is gone. Better documentation is + available with "man header_checks". + Open problems: Low: log xdelay (esp. for SMTP and delivery to command). diff --git a/postfix/conf/header_checks b/postfix/conf/header_checks index 6b46495a9..df3313eb2 100644 --- a/postfix/conf/header_checks +++ b/postfix/conf/header_checks @@ -57,8 +57,10 @@ # find out what lookup table types your Postfix system sup- # ports. # -# The general format of a Postfix regular expression table -# is: +# The general format of Postfix regular expression tables is +# given below. For a discussion of specific pattern or +# flags syntax, see pcre_table(5) or regexp_table(5), +# respectively. # # /pattern/flags action # When pattern matches the input string, execute the @@ -94,10 +96,6 @@ # text. A line that starts with whitespace continues # a logical line. # -# For a discussion of specific pattern or flags syntax -# details, see pcre_table(5) or regexp_table(5), respec- -# tively. -# # TABLE SEARCH ORDER # For each line of message input, the patterns are applied # in the order as specified in the table. When a pattern is @@ -138,12 +136,12 @@ # as DUNNO. # # FILTER transport:destination -# Write a content filter request record to the queue -# file and inspect the next input line. After the -# complete message is received it will be sent -# through the specified external content filter. -# More information about external content filters is -# in the Postfix FILTER_README file. +# Write a content filter request to the queue file +# and inspect the next input line. After the com- +# plete message is received it will be sent through +# the specified external content filter. More infor- +# mation about external content filters is in the +# Postfix FILTER_README file. # # Note: this action overrides the main.cf con- # tent_filter setting, and affects all recipients of @@ -167,6 +165,15 @@ # IGNORE Delete the current line from the input and inspect # the next input line. # +# PREPEND text... +# Prepend one line with the specified text and +# inspect the next input line. The prepended line of +# text is output before the input line that triggered +# the PREPEND pattern. +# +# Note: this action cannot be used to prepend multi- +# line text. +# # REDIRECT user@domain # Write a message redirection request to the queue # file and inspect the next input line. After the @@ -245,6 +252,19 @@ # process a multi-line message header one line at a # time. # +# EXAMPLES +# Header pattern to block attachments with bad file name +# extensions. +# +# /^content-(type|disposition):.*name[[:space:]]*=.*\.(exe|vbs)/ +# REJECT Bad attachment file name extension: $1 +# +# Body pattern to stop a specific HTML browser vulnerability +# exploit. +# +# /^