Skip to content

Commit

Permalink
submission: BURL command: Return more appropriate 554 5.7.14 error wh…
Browse files Browse the repository at this point in the history
…en BURL/URLAUTH is not configured.

Defined in RFC5248, Section 2.4.
  • Loading branch information
stephanbosch authored and villesavolainen committed Feb 1, 2018
1 parent 6dfadcd commit 028fa17
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/submission/cmd-data.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 028fa17

Please sign in to comment.