Include error messages for LMTP

These are difficult to debug log messages, when instead of an error message one gets a stack trace with `KeyError: 'lmtp'`

(cherry picked from commit ec1e49d137)
This commit is contained in:
Fabian Stanke
2024-12-25 10:00:02 +01:00
committed by Mergify
parent 91d477dfe0
commit a4e3ade323

View File

@@ -14,6 +14,7 @@ STATUSES = {
"imap": "AUTHENTICATIONFAILED", "imap": "AUTHENTICATIONFAILED",
"smtp": "535 5.7.8", "smtp": "535 5.7.8",
"submission": "535 5.7.8", "submission": "535 5.7.8",
"lmtp": "535 5.7.8",
"pop3": "-ERR Authentication failed", "pop3": "-ERR Authentication failed",
"sieve": "AuthFailed" "sieve": "AuthFailed"
}), }),
@@ -21,6 +22,7 @@ STATUSES = {
"imap": "PRIVACYREQUIRED", "imap": "PRIVACYREQUIRED",
"smtp": "530 5.7.0", "smtp": "530 5.7.0",
"submission": "530 5.7.0", "submission": "530 5.7.0",
"lmtp": "530 5.7.0",
"pop3": "-ERR Authentication canceled.", "pop3": "-ERR Authentication canceled.",
"sieve": "ENCRYPT-NEEDED" "sieve": "ENCRYPT-NEEDED"
}), }),
@@ -28,6 +30,7 @@ STATUSES = {
"imap": "LIMIT", "imap": "LIMIT",
"smtp": "451 4.3.2", "smtp": "451 4.3.2",
"submission": "451 4.3.2", "submission": "451 4.3.2",
"lmtp": "451 4.3.2",
"pop3": "-ERR [LOGIN-DELAY] Retry later", "pop3": "-ERR [LOGIN-DELAY] Retry later",
"sieve": "AuthFailed" "sieve": "AuthFailed"
}), }),