mirror of
https://blitiri.com.ar/repos/chasquid
synced 2026-01-28 20:56:03 +00:00
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.
This commit is contained in:
@@ -10,9 +10,5 @@ c <~ 501
|
||||
c -> AUTH PLAIN something
|
||||
c <~ 501
|
||||
c -> AUTH PLAIN something
|
||||
c <~ 501
|
||||
c -> AUTH PLAIN something
|
||||
c <~ 501
|
||||
c -> AUTH PLAIN something
|
||||
c <~ 503 5.7.8 Too many attempts, go away
|
||||
c <~ 421 4.5.0 Too many errors, bye
|
||||
|
||||
|
||||
Reference in New Issue
Block a user