A transaction with the immediate mode enabled did not wait and started to submit
commands too early; i.e., before an EHLO reply is received. This means that
the first MAIL command is always sent bare without any extensions and the XCLIENT
command is not sent when it is deferred (e.g. for submission).
smtp_client_connection_add_transaction(conn, trans);
- if (trans->immediate) {
+ if (trans->immediate &&
+ conn->state == SMTP_CLIENT_CONNECTION_STATE_READY) {
trans->state = SMTP_CLIENT_TRANSACTION_STATE_MAIL_FROM;
if (!trans->submitting)