From: Wietse Venema
Date: Thu, 16 Sep 2010 05:00:00 +0000 (-0500)
Subject: postfix-2.8-20100916
X-Git-Tag: v2.8.0-RC1~23
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce34a3c9dcf79e810d0016e7363a316d8517b426;p=thirdparty%2Fpostfix.git
postfix-2.8-20100916
---
diff --git a/postfix/HISTORY b/postfix/HISTORY
index 918563b10..8b9509bbb 100644
--- a/postfix/HISTORY
+++ b/postfix/HISTORY
@@ -15996,4 +15996,16 @@ Apologies for any names omitted.
20100915
Bugfix (introduced 20100914): missing precondition for
- call-back notification. File: postscreen/dnsblog.c.
+ call-back notification. File: postscreen/postscreen_dnsbl.c.
+
+ Bugfix (introduced 20100914): the "postscreen_greet_wait"
+ delay speedup worked only for DNSBL listed sites. File:
+ postscreen/postscreen_dnsbl.c.
+
+ Workaround: better handling of pregreeting spambots. The
+ postscreen built-in SMTP engine no longer sends a 220 banner
+ to a client that falls into the pregeet trap. This eliminates
+ many "non-SMTP command" records in postscreen logging, as
+ the SMTP client and server no longer get out of sync. It
+ also results in better logging of sender/recipient information.
+ file: postscreen/postscreen-smtpd.c.
diff --git a/postfix/README_FILES/POSTSCREEN_README b/postfix/README_FILES/POSTSCREEN_README
index a11a3d05c..6851341ea 100644
--- a/postfix/README_FILES/POSTSCREEN_README
+++ b/postfix/README_FILES/POSTSCREEN_README
@@ -423,19 +423,34 @@ mail:
1. Comment out the "smtp inet ... smtpd" service in master.cf, including any
"-o parameter=value" entries that follow.
+ /etc/postfix/master.cf:
+ #smtp inet n - n - - smtpd
+ # -o parameter=value ...
+
2. Uncomment the new "smtpd pass ... smtpd" service in master.cf, and
duplicate any "-o parameter=value" entries from the smtpd service that was
commented out in step 1.
+ /etc/postfix/master.cf:
+ smtpd pass - - n - - smtpd
+ -o parameter=value ...
+
3. Uncomment the new "smtp inet ... postscreen" service in master.cf.
+ /etc/postfix/master.cf:
+ smtp inet n - n - 1 postscreen
+
4. Uncomment the new "dnsblog unix ... dnsblog" service in master.cf. This
service does DNSBL lookups for postscreen(8) and logs results.
+ /etc/postfix/master.cf:
+ dnsblog unix - - n - 0 dnsblog
+
5. To enable DNSBL lookups, list some DNS blocklist sites in main.cf,
separated by whitespace. Different sites can have different weights. For
example:
+ /etc/postfix/main.cf:
postscreen_dnsbl_threshold = 2
postscreen_dnsbl_sites = zen.spamhaus.org*2 example.com*1 example.net*1
@@ -520,14 +535,29 @@ processes:
1. Comment out the "smtp inet ... postscreen" service in master.cf, including
any "-o parameter=value" entries that follow.
+ /etc/postfix/master.cf:
+ #smtp inet n - n - 1 postscreen
+ # -o parameter=value ...
+
2. Comment out the "dnsblog unix ... dnsblog" service in master.cf.
+ /etc/postfix/master.cf:
+ #dnsblog unix - - n - 0 dnsblog
+
3. Comment out the "smtpd pass ... smtpd" service in master.cf, including any
"-o parameter=value" entries that follow.
+ /etc/postfix/master.cf:
+ #smtpd pass - - n - - smtpd
+ # -o parameter=value ...
+
4. Uncomment the "smtp inet ... smtpd" service in master.cf, including any "-
o parameter=value" entries that follow.
+ /etc/postfix/master.cf:
+ smtp inet n - n - - smtpd
+ -o parameter=value ...
+
5. Read the new configuration with "postfix reload".
HHiissttoorriiccaall nnootteess aanndd ccrreeddiittss
@@ -538,13 +568,13 @@ in OpenBSD spamd, and in MailChannels Traffic Control.
Wietse threw together a crude prototype with pregreet and dnsbl support in June
2009, because he needed something new for a Mailserver conference presentation
in July. Ralf Hildebrandt ran this code on several servers to collect real-
-world evidence. This version used the dnsblog(8) ad-hoc DNS client program.
+world statistics. This version used the dnsblog(8) ad-hoc DNS client program.
Wietse needed new material for a LISA conference presentation in November 2010,
so he added support for DNSBL weights and filters in August, followed by a
major code rewrite, deep protocol tests, helo/sender/recipient logging, and
stress-adaptive behavior in September. Ralf Hildebrandt ran this code on
-several servers to collect real-world evidence. This version still used the
-same delay for pregreet and DNBL tests, as well as the embarrassing dnsblog(8)
+several servers to collect real-world statistics. This version still used the
+same delay for pregreet and DNSBL tests, as well as the embarrassing dnsblog(8)
ad-hoc DNS client.
diff --git a/postfix/html/POSTSCREEN_README.html b/postfix/html/POSTSCREEN_README.html
index 3843d51a0..d9734d344 100644
--- a/postfix/html/POSTSCREEN_README.html
+++ b/postfix/html/POSTSCREEN_README.html
@@ -585,22 +585,45 @@ without blocking mail:
in master.cf, including any "-o parameter=value" entries
that follow.
+
+/etc/postfix/master.cf:
+ #smtp inet n - n - - smtpd
+ # -o parameter=value ...
+
+
Uncomment the new "smtpd pass ... smtpd" service
in master.cf, and duplicate any "-o parameter=value" entries
from the smtpd service that was commented out in step 1.
+
+/etc/postfix/master.cf:
+ smtpd pass - - n - - smtpd
+ -o parameter=value ...
+
+
Uncomment the new "smtp inet ... postscreen"
service in master.cf.
+
+/etc/postfix/master.cf:
+ smtp inet n - n - 1 postscreen
+
+
Uncomment the new "dnsblog unix ... dnsblog"
service in master.cf. This service does DNSBL lookups for postscreen(8)
and logs results.
+
+/etc/postfix/master.cf:
+ dnsblog unix - - n - 0 dnsblog
+
+
To enable DNSBL lookups, list some DNS blocklist sites in
main.cf, separated by whitespace. Different sites can have different
weights. For example:
+/etc/postfix/main.cf:
postscreen_dnsbl_threshold = 2
postscreen_dnsbl_sites = zen.spamhaus.org*2 example.com*1 example.net*1
@@ -714,17 +737,41 @@ SMTP server processes:
in master.cf, including any "-o parameter=value" entries
that follow.
+
+/etc/postfix/master.cf:
+ #smtp inet n - n - 1 postscreen
+ # -o parameter=value ...
+
+
Comment out the "dnsblog unix ... dnsblog" service
in master.cf.
+
+/etc/postfix/master.cf:
+ #dnsblog unix - - n - 0 dnsblog
+
+
Comment out the "smtpd pass ... smtpd" service
in master.cf, including any "-o parameter=value" entries
that follow.
+
+/etc/postfix/master.cf:
+ #smtpd pass - - n - - smtpd
+ # -o parameter=value ...
+
+
+
Uncomment the "smtp inet ... smtpd" service in
master.cf, including any "-o parameter=value" entries that
follow.
+
+/etc/postfix/master.cf:
+ smtp inet n - n - - smtpd
+ -o parameter=value ...
+
+
Read the new configuration with "postfix reload".
@@ -739,7 +786,7 @@ Control.
Wietse threw together a crude prototype with pregreet and dnsbl
support in June 2009, because he needed something new for a Mailserver
conference presentation in July. Ralf Hildebrandt ran this code on
-several servers to collect real-world evidence. This version used
+several servers to collect real-world statistics. This version used
the dnsblog(8) ad-hoc DNS client program.
Wietse needed new material for a LISA conference presentation
@@ -747,9 +794,9 @@ in November 2010, so he added support for DNSBL weights and filters
in August, followed by a major code rewrite, deep protocol tests,
helo/sender/recipient logging, and stress-adaptive behavior in
September. Ralf Hildebrandt ran this code on several servers to
-collect real-world evidence. This version still used the same delay
-for pregreet and DNBL tests, as well as the embarrassing dnsblog(8)
-ad-hoc DNS client.
+collect real-world statistics. This version still used the same
+delay for pregreet and DNSBL tests, as well as the embarrassing
+dnsblog(8) ad-hoc DNS client.