scanner / as_email_service

A Django app and smtp relay service for working with 3rd party email services and asimap
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Add more spam control to aiosmtpd #72

Open scanner opened 11 months ago

scanner commented 11 months ago

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.