Cpanel – Making persistent changes to Dovecot

Published on Author gryzli

Need to make persistent changes to Dovecot config under cpanel ?

If by some reason you need to make persistent changes to Dovecot and you are running cPanel here is how to do it.

Keep in mind that when using cPanel, if you try to make a direct change to the Dovecot configuration file, which resides here:


that’s a bad idea.

This file is automatically regenerated by cPanel and your changes will be lost very soon.


The right way to make persistent changes to Dovecot

In the following tutorial, I’m using cPanel version 11.52.1

1 Create the custom Dovecot config directory

mkdir -p /var/cpanel/conf/dovecot


2 Create the custom config file and add your custom configs


Let say you want to add the following settins:

auth_verbose = yes

The right way to do this is:

vim /var/cpanel/conf/dovecot/main

auth_verbose: yes

Keep in mind, that when you use the custom config templates such as (/var/cpanel/conf/dovecot/main), then you must change “=” with “:”.


Finally regenerate the dovecot.conf and make sure the changes are there


cat /etc/dovecot/dovecot.conf