mirror of
https://blitiri.com.ar/repos/chasquid
synced 2026-01-04 17:27:02 +00:00
smtpsrv: Send enhanced status codes
SMTP supports enhanced status codes, which help with internationalization and accessibility in cases where protocol errors make their way to the users. This patch makes chasquid include these extended status codes in the corresponding replies, as well as advertising support in the EHLO reply. Main references: - RFC 3463 (https://tools.ietf.org/html/rfc3463) - RFC 2034 (https://tools.ietf.org/html/rfc2034) - SMTP Enhanced Status Codes Registry (https://www.iana.org/assignments/smtp-enhanced-status-codes/smtp-enhanced-status-codes.xhtml)
This commit is contained in:
@@ -8,7 +8,7 @@ c -> MAIL FROM:<test@testy.com>
|
||||
c <~ 250
|
||||
|
||||
c -> RCPT LALA: <>
|
||||
c <- 500 unknown command
|
||||
c <- 500 5.5.2 Unknown command
|
||||
|
||||
c -> RCPT TO:
|
||||
c <~ 500
|
||||
@@ -17,10 +17,10 @@ c -> RCPT TO:<pepe>
|
||||
c <~ 501
|
||||
|
||||
c -> RCPT TO:<a@xn--->
|
||||
c <- 501 malformed address (IDNA conversion failed)
|
||||
c <- 501 5.1.2 Malformed destination domain (IDNA conversion failed)
|
||||
|
||||
c -> RCPT TO:<henryⅣ@testserver>
|
||||
c <- 550 recipient invalid, please check the address for typos
|
||||
c <- 550 5.1.3 Destination address is invalid
|
||||
|
||||
c -> RCPT TO:<aaaa5aaaaXaaaa5aaaaXaaaa5aaaaXaaaa5aaaaXaaaa5aaaaXaaaa5aaaaXaaaa5aaaaXaaaa5aaaaXaaaa5aaaaXaaaa5aaaaXaaaa5aaaaXaaaa5aaaaXaaaa5aaaaXaaaa5aaaaXaaaa5aaaaX@bbbb5bbbbXbbbb5bbbbXbbbb5bbbbXbbbb5bbbbXbbbb5bbbbXbbbb5bbbbXbbbb5bbbbXbbbb5bbbbXbbbb5bbbbXbbbb5bbbbXbbbb5bbbbXbbbb5bbbbXbbbb5bbbbXbbbb5bbbbXbbbb5bbbbX>
|
||||
c <- 501 address too long
|
||||
c <- 501 5.1.3 Destination address too long
|
||||
|
||||
Reference in New Issue
Block a user