mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-18 14:47:03 +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)
28 lines
549 B
Plaintext
28 lines
549 B
Plaintext
|
|
c tls_connect localhost:1465
|
|
|
|
c <~ 220
|
|
c -> EHLO localhost
|
|
c <... 250 HELP
|
|
|
|
c -> AUTH SOMETHINGELSE
|
|
c <~ 534
|
|
|
|
c -> AUTH PLAIN
|
|
c <~ 334
|
|
c -> dXNlckB0ZXN0c2VydmVyAHlalala==
|
|
c <~ 501 5.5.2 Error decoding AUTH response
|
|
|
|
c -> AUTH PLAIN
|
|
c <~ 334
|
|
c -> dXNlckB0ZXN0c2VydmVyAHVzZXJAdGVzdHNlcnZlcgB3cm9uZ3Bhc3N3b3Jk
|
|
c <~ 535 5.7.8 Incorrect user or password
|
|
|
|
c -> AUTH PLAIN
|
|
c <~ 334
|
|
c -> dXNlckB0ZXN0c2VydmVyAHVzZXJAdGVzdHNlcnZlcgBzZWNyZXRwYXNzd29yZA==
|
|
c <~ 235 2.7.0 Authentication successful
|
|
|
|
c -> AUTH PLAIN
|
|
c <~ 503 5.5.1 You are already wearing that!
|