1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2026-01-09 17:55:57 +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:
Alberto Bertogli
2019-01-09 23:43:11 +00:00
parent 78937aca93
commit e7309a2c7b
9 changed files with 78 additions and 81 deletions

View File

@@ -4,12 +4,12 @@ c tcp_connect localhost:1025
c <~ 220
c -> DATA
c <- 503 Invisible customers are not welcome!
c <- 503 5.5.1 Invisible customers are not welcome!
c -> HELO localhost
c <~ 250
c -> DATA
c <- 503 sender not yet given
c <- 503 5.5.1 Sender not yet given
c -> MAIL FROM:<a@b>
c <~ 250
@@ -25,7 +25,7 @@ c -> Muahahahaha
c ->
c ->
c -> .
c <~ 554 error parsing message
c <~ 554 5.6.0 Error parsing message
c -> QUIT
c <~ 221