stalwartlabs / mail-server

Secure & Modern All-in-One Mail Server (IMAP, JMAP, POP3, SMTP)
https://stalw.art
5.12k stars 210 forks source link

[enhancement]: Prevent mailbox recipient bruteforcing #688

Closed ghagl closed 2 months ago

ghagl commented 2 months ago

Which feature or improvement would you like to request?

I would like to block spamhosts who repetitively try to e-mail (non-existent) mailboxes

Is your feature request related to a problem?

No response

Code of Conduct

williamdes commented 2 months ago

I would like to block spamhosts who repetitively try to e-mail (non-existent) mailboxes

Can we have a system that does some of the following:

Having a middleware/hook would be great so it can be easy to deny the login attempt before it is computed. Country of the IP check, you know China bots... -> Denied Reverse DNS -> Matches some name -> Denied AS owning the IP -> China net -> Denied

You get the idea