mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-21 15:17:01 +00:00
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)
21 lines
626 B
Plaintext
21 lines
626 B
Plaintext
|
|
c tcp_connect localhost:1025
|
|
|
|
c <~ 220
|
|
c -> HELO localhost
|
|
c <~ 250
|
|
c -> MAIL LALA: <>
|
|
c <- 500 5.5.2 Unknown command
|
|
|
|
c -> MAIL FROM:
|
|
c <~ 500
|
|
|
|
c -> MAIL FROM:<pepe>
|
|
c <~ 501
|
|
|
|
c -> MAIL FROM:<a@xn--->
|
|
c <- 501 5.1.8 Malformed sender domain (IDNA conversion failed)
|
|
|
|
c -> MAIL FROM:<aaaa5aaaaXaaaa5aaaaXaaaa5aaaaXaaaa5aaaaXaaaa5aaaaXaaaa5aaaaXaaaa5aaaaXaaaa5aaaaXaaaa5aaaaXaaaa5aaaaXaaaa5aaaaXaaaa5aaaaXaaaa5aaaaXaaaa5aaaaXaaaa5aaaaX@bbbb5bbbbXbbbb5bbbbXbbbb5bbbbXbbbb5bbbbXbbbb5bbbbXbbbb5bbbbXbbbb5bbbbXbbbb5bbbbXbbbb5bbbbXbbbb5bbbbXbbbb5bbbbXbbbb5bbbbXbbbb5bbbbXbbbb5bbbbXbbbb5bbbbX>
|
|
c <- 501 5.1.7 Sender address too long
|