2
0
mirror of https://github.com/vdukhovni/postfix synced 2025-08-31 06:05:37 +00:00

snapshot-20011115

This commit is contained in:
Wietse Venema
2001-11-15 00:00:00 -05:00
committed by Viktor Dukhovni
parent 456a68b122
commit 2c1f63a39a
3 changed files with 20 additions and 1 deletions

View File

@@ -5581,6 +5581,11 @@ Apologies for any names omitted.
Bugfix: reset the smtpd command transaction log between Bugfix: reset the smtpd command transaction log between
deliveries. File: smtpd/smtpd.c. deliveries. File: smtpd/smtpd.c.
20011115
Bugfix: reset the smtpd command transaction log between
non-deliveries. File: smtpd/smtpd.c.
Open problems: Open problems:
Medium: need in-process caching for map lookups. LDAP Medium: need in-process caching for map lookups. LDAP

View File

@@ -15,7 +15,7 @@
* Version of this program. * Version of this program.
*/ */
#define VAR_MAIL_VERSION "mail_version" #define VAR_MAIL_VERSION "mail_version"
#define DEF_MAIL_VERSION "Snapshot-20011114" #define DEF_MAIL_VERSION "Snapshot-20011115"
extern char *var_mail_version; extern char *var_mail_version;
/* LICENSE /* LICENSE

View 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 if (state->history != 0 && state->client != VSTREAM_IN
&& (state->error_mask & state->notify_mask)) && (state->error_mask & state->notify_mask))
smtpd_chat_notify(state); smtpd_chat_notify(state);
state->error_mask = 0;
smtpd_chat_reset(state); smtpd_chat_reset(state);
/* /*
@@ -1095,6 +1096,19 @@ static int rset_cmd(SMTPD_STATE *state, int argc, SMTPD_TOKEN *unused_argv)
return (-1); 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. * Restore state to right after HELO/EHLO command.
*/ */