]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
submission,submission-login: Omit listing VRFY capability if the backend provides...
authorStephan Bosch <stephan.bosch@dovecot.fi>
Fri, 19 Oct 2018 14:42:41 +0000 (16:42 +0200)
committerVille Savolainen <ville.savolainen@dovecot.fi>
Tue, 12 Feb 2019 13:41:23 +0000 (15:41 +0200)
src/submission-login/client-authenticate.c
src/submission/submission-client.c
src/submission/submission-commands.c

index 335ed8c92052e1725340cf52958ea1351221cd56..8b5422f833783c55d774c69ceb70f34f90501d4d 100644 (file)
@@ -70,7 +70,8 @@ static void cmd_helo_reply(struct submission_client *subm_client,
                if (client_is_tls_enabled(client) && !client->tls)
                        smtp_server_reply_ehlo_add(reply, "STARTTLS");
                smtp_server_reply_ehlo_add(reply, "PIPELINING");
-               smtp_server_reply_ehlo_add(reply, "VRFY");
+               if ((backend_caps & SMTP_CAPABILITY_VRFY) != 0)
+                       smtp_server_reply_ehlo_add(reply, "VRFY");
                smtp_server_reply_ehlo_add_xclient(reply);
        }
        smtp_server_reply_submit(reply);
index e0cd34dcfbdf131f05e9bbf81794e742bd3ea4b4..46160dfe08b1b373394fb6190260f127e94d87d2 100644 (file)
@@ -106,8 +106,7 @@ void client_apply_backend_capabilities(struct client *client)
        /* propagate capabilities */
        caps |= SMTP_CAPABILITY_AUTH | SMTP_CAPABILITY_PIPELINING |
                SMTP_CAPABILITY_SIZE | SMTP_CAPABILITY_ENHANCEDSTATUSCODES |
-               SMTP_CAPABILITY_CHUNKING | SMTP_CAPABILITY_BURL |
-               SMTP_CAPABILITY_VRFY;
+               SMTP_CAPABILITY_CHUNKING | SMTP_CAPABILITY_BURL;
        caps &= SUBMISSION_SUPPORTED_SMTP_CAPABILITIES;
        smtp_server_connection_set_capabilities(client->conn, caps);
 }
index 2f94a185fc730afc7ae29f139fa7b7967c8312d1..587e751322d84fa28e990dee071a0250db16a66a 100644 (file)
@@ -89,7 +89,8 @@ void submission_helo_reply_submit(struct smtp_server_cmd_ctx *cmd,
                } else {
                        smtp_server_reply_ehlo_add(reply, "SIZE");
                }
-               smtp_server_reply_ehlo_add(reply, "VRFY");
+               if ((backend_caps & SMTP_CAPABILITY_VRFY) != 0)
+                       smtp_server_reply_ehlo_add(reply, "VRFY");
 
                submission_helo_reply_add_extra(client, reply);
        }