Dovecot 2.4: mail_max_userip_connections gets overwritten after DirectAdmin/CustomBuild updates

smarthost

New member
Joined
Sep 2, 2026
Messages
2
Hi,

we are experiencing an issue with the mail_max_userip_connections setting in Dovecot.

Quite often, after updating DirectAdmin or running CustomBuild updates, the value in:

/etc/dovecot/conf/mail_max_userip_connections.conf

is reset to the default value of 15.

This causes problems for one of our clients, who needs to maintain a significantly higher number of simultaneous IMAP connections. After the value is reset, we see errors such as:

imap-login: Login aborted: Maximum number of connections from user+IP exceeded (mail_max_userip_connections=15) (connection limit reached, 1/1 successful auths in 0 secs) (connection_limit)

We have also tried modifying the CustomBuild configuration template directly:

/usr/local/directadmin/custombuild/configure/dovecot/2.4/conf/mail_max_userip_connections.conf

However, this file can also be overwritten during DirectAdmin/CustomBuild updates.

What is the recommended way to permanently customize this setting for Dovecot 2.4 so that it survives DirectAdmin and CustomBuild updates?

We would like to keep CustomBuild updates enabled while ensuring that this parameter is not reverted to the default value after every update.

dovecot --version
2.4.5 (0cbb641e3e)

/usr/local/directadmin/directadmin v
DirectAdmin 1.709

Thanks in advance!
 
So, as I understand it, I should create a file at /usr/local/directadmin/custombuild/custom/dovecot/2.4/conf/mail_max_userip_connections.conf with the following content:



mail_max_userip_connections = x
remote 127.0.0.1 {
mail_max_userip_connections = x
}


"x" represents, of course, the maximum number of connections?
 
Last edited:
Yes, although you can leave out the version, then rebuild dovecot

eg. create a /usr/local/directadmin/custombuild/custom/dovecot/conf/mail_max_userip_connections.conf
 
Back
Top