Force TCP socket disconnect on imap login failure?

Jan Hugo Prins jhp at jhprins.org
Mon May 23 20:23:31 UTC 2022


Look at fail2ban.
Should be able to do that for you.

Jan Hugo


On 5/23/22 21:11, Lloyd Zusman wrote:
> I'm running dovecot 2.2.13 under Debian 8.
>
> I'd like to force an immediate TCP socket disconnect after any imap 
> login attempt that fails.
>
> Right now, if invalid credentials are supplied during an imap login, 
> the client can keep retrying logins with different credentials. 
> However, I want to prevent that from occurring by causing the socket 
> connection to be closed as soon as there is any failed login attempt.
>
> I haven't been able to find any |dovecot| configuration setting which 
> could control this behavior, but I'm hoping that I just missed something.
>
> Thank you very much for any suggestions.
>
> -- 
> hippoman at gmail.com
>  Take a hippopotamus to lunch today.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dovecot.org/pipermail/dovecot/attachments/20220523/e7733740/attachment.htm>


More information about the dovecot mailing list