*** ./smtpd.c- Sun Oct 28 19:31:14 2001 --- ./smtpd.c Wed Nov 14 22:21:46 2001 *************** *** 1060,1065 **** --- 1060,1077 ---- state->where = SMTPD_AFTER_DOT; /* + * 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); + smtpd_chat_reset(state); + + /* * Cleanup. The client may send another MAIL command. */ mail_reset(state);