Question
How do I make changes to /etc/dovecot/dovecot.conf that will not be overwritten?
Answer
Warning: The content of this article needs to be discussed by a qualified system administrator prior to implementation to prevent service outages caused by misconfiguration.
Note: During a Dovecot upgrade, if the dovecot.local file does not pass the configuration test, the .local file will be renamed to .broken<template>, and a default .local template will be put in its place. Finally, during major upgrades where the main dovecot/main.local is invalid, it forces the dovecotSNI and dovecotSSL templates to also be considered invalid, which will result in them being replaced with a default template to ensure the dovecot service starts.
- Access your cPanel server via SSH as the 'root' user.
-
Make a copy of the Dovecot main.default file by running the following command:
# cp -ax /var/cpanel/templates/dovecot/main.default /var/cpanel/templates/dovecot/main.local
- Modify the configuration using your favorite text editor and add the options you need to change.
-
Rebuild dovecot:
# /scripts/builddovecotconf
-
Restart Dovecot:
# /scripts/restartsrv_dovecot
For more information on the customization process, please refer to the article and comment below.
Comments
0 comments
Article is closed for comments.