Right now aiosmtpd will drop connections that fail auth too many times.
However a number of internet probes never even both trying to fail auth and just spam you.
in handle_EHLO we should track number of times a peer IP has attempted to connect and if it exceeds, say, 10 in a minute, then just drop any attempts by them for the next, say, 10 minutes.
Right now aiosmtpd will drop connections that fail auth too many times. However a number of internet probes never even both trying to fail auth and just spam you.
in
handle_EHLO
we should track number of times a peer IP has attempted to connect and if it exceeds, say, 10 in a minute, then just drop any attempts by them for the next, say, 10 minutes.