mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-19 14:57:04 +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)
33 lines
468 B
Plaintext
33 lines
468 B
Plaintext
|
|
c tcp_connect localhost:1025
|
|
|
|
c <~ 220
|
|
|
|
c -> DATA
|
|
c <- 503 5.5.1 Invisible customers are not welcome!
|
|
|
|
c -> HELO localhost
|
|
c <~ 250
|
|
c -> DATA
|
|
c <- 503 5.5.1 Sender not yet given
|
|
|
|
c -> MAIL FROM:<a@b>
|
|
c <~ 250
|
|
c -> RCPT TO: user@testserver
|
|
c <~ 250
|
|
c -> DATA
|
|
c <~ 354
|
|
c -> From: Mailer daemon <somewhere@horns.com>
|
|
c -> Subject: I've come to haunt you
|
|
c -> Bad header
|
|
c ->
|
|
c -> Muahahahaha
|
|
c ->
|
|
c ->
|
|
c -> .
|
|
c <~ 554 5.6.0 Error parsing message
|
|
|
|
c -> QUIT
|
|
c <~ 221
|
|
|