]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
auth: auth-sasl - Add translation for Submission and LMTP protocols to just smtp
authorStephan Bosch <stephan.bosch@open-xchange.com>
Sun, 31 Aug 2025 18:06:27 +0000 (20:06 +0200)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Thu, 9 Oct 2025 08:41:22 +0000 (08:41 +0000)
src/auth/auth-sasl.c

index 90a597ee982a14f8bdef801d50b78e9753a70ef3..1333244c624bd90f32f68385c62591abe9d7d2bc 100644 (file)
@@ -256,6 +256,12 @@ auth_sasl_translate_protocol_name(struct auth_request *request)
                   called just "pop". */
                return "pop";
        }
+       if (strcasecmp(protocol, "Submission") == 0 ||
+           strcasecmp(protocol, "LMTP") == 0) {
+               /* The standard Submission or LMTP service name with
+                  SASL/GSSAPI/Kerberos is called just "smtp". */
+               return "smtp";
+       }
 
        return t_str_lcase(protocol);
 }