*** /var/tmp/postfix-2.0.20/src/smtpd/smtpd_sasl_proto.c Mon Sep 11 18:45:40 2000 --- src/smtpd/smtpd_sasl_proto.c Tue Apr 19 18:50:00 2011 *************** *** 151,156 **** --- 151,160 ---- msg_warn("%s[%s]: SASL %s authentication failed", state->name, state->addr, auth_mechanism); smtpd_chat_reply(state, "%s", err); + + /* Don't reuse the SASL handle after authentication failure. */ + smtpd_sasl_disconnect(state); + smtpd_sasl_connect(state); return (-1); } smtpd_chat_reply(state, "235 Authentication successful");