From: Corey H coreyh@alwaysdata.net
$ sudo tail -10000 /var/log/mail.log|grep **@**mail.com|wc -l 3544
logs like this:
Aug 15 19:54:10 mx dovecot: imap-login: Login: user=<**@**mail.com>, method=PLAIN, rip=**, lip=**, mpid=4151830, TLS, session=<UPotgLcfTOjYUzTN>
How can I implement a Frequency Control on client connections to slow down his requests?
Is this a MacOSX client? I think they have a habit of doing this when doing global mailbox searches. Instead of doing a sane serial march through mailboxes, it opens up as many mailboxes as it can, then closes them when the IMAP server denies then when they hit the max.
If Aki doesn't can't offer a solution, neither can I, but maybe you can play around with mail_max_userip_connections to stop them from swamping all your connections. You might have to resort to firewall or other general network controls to actually rate limit connections.
Joseph Tam jtam.home@gmail.com
On 2024-08-16 08:26, Joseph Tam via dovecot wrote:
Is this a MacOSX client?
No, that client is using the programming method to access us. But he should use imap IDLE function rather than a crazy loop.
You might have to resort to firewall or other general network controls to actually rate limit connections.
I have communicated with the customer to improve their imap connections. before that I just drop their connections by iptables.
Thanks.
participants (2)
-
Joseph Tam
-
Wesley