]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
submission-login: client - Explicitly set SMTP server command and auth line limits.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Fri, 29 Oct 2021 22:43:55 +0000 (00:43 +0200)
committerStephan Bosch <stephan.bosch@open-xchange.com>
Wed, 3 Nov 2021 21:52:55 +0000 (22:52 +0100)
This way, it will always use the same limits as all other login services.

src/submission-login/client.c

index c4e4b4dac8523e8d1b88ce681291d82f70ac8e2b..7e5c170566a38def91dd2e883e0be55b0bf5913c 100644 (file)
@@ -112,6 +112,8 @@ static void submission_client_create(struct client *client,
        smtp_set.tls_required = !client->secured &&
                (strcmp(client->ssl_set->ssl, "required") == 0);
        smtp_set.xclient_extensions = xclient_extensions;
+       smtp_set.command_limits.max_parameters_size = LOGIN_MAX_INBUF_SIZE;
+       smtp_set.command_limits.max_auth_size = LOGIN_MAX_AUTH_BUF_SIZE;
        smtp_set.debug = client->set->auth_debug;
 
        subm_client->conn = smtp_server_connection_create_from_streams(