]> dgit.raspbian.org Git - dovecot.git/commit
[PATCH 5/5] submission-login: submission-proxy - Recognize 421 4.7.0 as connection...
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Thu, 7 May 2026 10:58:24 +0000 (10:58 +0000)
committerNoah Meyerhans <noahm@debian.org>
Wed, 16 Sep 2026 19:06:35 +0000 (15:06 -0400)
commite71c3a6b4ff580f1d78654d9f3e29e1f0ea07177
treece98798b8e60ca3cde9d2751f10bfd96e49de33c
parentd54ef477a9a741cdcc096eb4aa4ce90f5372d45e
[PATCH 5/5] submission-login: submission-proxy - Recognize 421 4.7.0 as connection-limit reply

When the backend signals that the user's connection limit has been
reached, do not classify the response as a generic temporary
authentication failure (which causes the proxy to reconnect). Map it
instead to LOGIN_PROXY_FAILURE_TYPE_AUTH_LIMIT_REACHED_REPLIED, which
suppresses retries and reports the failure as proxy_dest_connection_limit
in the login_aborted event/log line. This mirrors what imap-login does
for the [LIMIT] response code and pop3-login for [IN-USE].

Other 421 replies (typically server shutdown / fatal error) are mapped
to LOGIN_PROXY_FAILURE_TYPE_AUTH_REPLIED rather than AUTH_TEMPFAIL: 421
means "closing transmission channel" (RFC 5321 Section 4.2.1), so a
reconnect on the same destination is unlikely to help and should not
happen automatically.

Gbp-Pq: Name 0005-submission-login-submission-proxy-Recognize-421-4.7..patch
src/submission-login/submission-proxy.c