]> git.ipfire.org Git - thirdparty/postfix.git/commitdiff
snapshot-20011115
authorWietse Venema <wietse@porcupine.org>
Thu, 15 Nov 2001 05:00:00 +0000 (00:00 -0500)
committerViktor Dukhovni <viktor@dukhovni.org>
Tue, 5 Feb 2013 06:27:34 +0000 (06:27 +0000)
postfix/HISTORY
postfix/src/global/mail_version.h
postfix/src/smtpd/smtpd.c

index 1880fc28571dd89394a0d8fab5a2668513e3e4cf..fb9b2fa00bd5ec3621e6c6ff049604bb4bb2747f 100644 (file)
@@ -5581,6 +5581,11 @@ Apologies for any names omitted.
        Bugfix: reset the smtpd command transaction log between
        deliveries. File: smtpd/smtpd.c.
 
+20011115
+
+       Bugfix: reset the smtpd command transaction log between
+       non-deliveries. File: smtpd/smtpd.c.
+
 Open problems:
 
        Medium: need in-process caching for map lookups. LDAP
index 63c45741e17cd4e9f93a58441ca35cf19ad0303b..ada8bd0cceff132ea6da4ac3bd6519e4aa445bd2 100644 (file)
@@ -15,7 +15,7 @@
   * Version of this program.
   */
 #define VAR_MAIL_VERSION       "mail_version"
-#define DEF_MAIL_VERSION       "Snapshot-20011114"
+#define DEF_MAIL_VERSION       "Snapshot-20011115"
 extern char *var_mail_version;
 
 /* LICENSE
index 7bb85f3bcbcef9eb1c35e51022f5760022823fce..85d1dbd45488319580a9a491f2a37b85cccc2385 100644 (file)
@@ -1069,6 +1069,7 @@ static int data_cmd(SMTPD_STATE *state, int argc, SMTPD_TOKEN *unused_argv)
     if (state->history != 0 && state->client != VSTREAM_IN
        && (state->error_mask & state->notify_mask))
        smtpd_chat_notify(state);
+    state->error_mask = 0;
     smtpd_chat_reset(state);
 
     /*
@@ -1095,6 +1096,19 @@ static int rset_cmd(SMTPD_STATE *state, int argc, SMTPD_TOKEN *unused_argv)
        return (-1);
     }
 
+    /*
+     * Notify the postmaster if there were errors. This usually indicates a
+     * client configuration problem, or that someone is trying nasty things.
+     * Either is significant enough to bother the postmaster. XXX Can't
+     * report problems when running in stand-alone mode: postmaster notices
+     * require availability of the cleanup service.
+     */
+    if (state->history != 0 && state->client != VSTREAM_IN
+       && (state->error_mask & state->notify_mask))
+       smtpd_chat_notify(state);
+    state->error_mask = 0;
+    smtpd_chat_reset(state);
+
     /*
      * Restore state to right after HELO/EHLO command.
      */