How To Change Dovecot 2.4 Connection Limit Setting

samsda

Verified User
Joined
Apr 5, 2023
Messages
11
How to change the connection limit (mail_max_userip_connections) in the new dovecot 2.4?

The below config used to work with old dovecot but doesn't work on new one:
# cat /usr/local/directadmin/custombuild/custom/dovecot/conf/mail_max_userip_connections.conf
mail_max_userip_connections = 50
remote 127.0.0.1 {
mail_max_userip_connections = 1000
}

# doveadm -f table config get mail_max_userip_connections
mail_max_userip_connections = 15
 
Hello,

I've got this:

Bash:
[root ~]# dovecot --version
2.4.1-4 (7d8c0e5759)
[root ~]#

Bash:
[root ~]# cat /etc/dovecot/conf/mail_max_userip_connections.conf
mail_max_userip_connections = 15
remote 127.0.0.1 {
  mail_max_userip_connections = 150
}
[root ~]#

I believe the real issue is that Directadmin does not use custom configs from custom/dovecot/conf/ for Dovecot. If this is the case you might try and re-write the file /etc/dovecot/conf/mail_max_userip_connections.conf with your version directly. If the customized version gets overwritten by DirectAdmin, then you might upload your custom file to /etc/dovecot/conf.d/mail_max_userip_connections.conf. If it does not help, then you will need to use custombuild hooks and patch the original file with dovecot/dovecot_conf commands.
 
Back
Top