You must login to view /lordwelch/chasquid/commit/1927e15ea2d8f8917642c14819a80da640806f01.
The GitHub option should be usable for most people, it only links via username.

Files
chasquid/test/t-12-minor_dialogs/auth_multi_dialog.cmy
Alberto Bertogli 85305f4bd9 smtpsrv: Close the connection after 3 errors (lowering from 10)
Today, we close the connection after 10 errors. While this is fine for
normal use, it is unnecessarily large.

Lowering it to 3 helps with defense-in-depth for cross-protocol attacks
(e.g. https://alpaca-attack.com/), while still being large enough for
useful troubleshooting and normal operation.

As part of this change, we also remove the AUTH-specific failures limit,
because they're covered by the connection limit.
2021-06-11 10:34:20 +01:00

35 lines
694 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
# Reconnect to avoid getting rejected due to too many errors.
c close
c tls_connect localhost:1465
c <~ 220
c -> EHLO localhost
c <... 250 HELP
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!