]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
submission: BURL command: Return more appropriate 554 5.7.14 error when BURL/URLAUTH...
authorStephan Bosch <stephan.bosch@dovecot.fi>
Wed, 27 Dec 2017 14:18:14 +0000 (15:18 +0100)
committerStephan Bosch <stephan.bosch@dovecot.fi>
Wed, 27 Dec 2017 14:22:52 +0000 (15:22 +0100)
Defined in RFC5248, Section 2.4.

src/submission/cmd-data.c

index 1cb5e49b405d5fa7d21d1f0237f0351728de11a7..78294077af3dd3abc4a5b42867ddf53e7b2c2645 100644 (file)
@@ -268,7 +268,16 @@ cmd_burl_fetch(struct cmd_burl_context *burl_cmd, const char *url,
        struct client *client = burl_cmd->client;
 
        if (client->urlauth_ctx == NULL) {
-               smtp_server_reply(cmd, 503, "5.3.3",
+               /* RFC5248, Section 2.4:
+
+                  554 5.7.14 Trust relationship required
+
+                  The submission server requires a configured trust
+                  relationship with a third-party server in order to access
+                  the message content. This value replaces the prior use of
+                  X.7.8 for this error condition, thereby updating [RFC4468].
+                */
+               smtp_server_reply(cmd, 554, "5.7.14",
                        "No IMAP URLAUTH access available");
                return -1;
        }