
Originally Posted by
sparek-3
It looks like whenever Courier is updated on a server the configuration changes that are made in:
/usr/lib/courier-imap/etc/imapd
are lost.
Is there a way to keep the changes made to this file Courier is updated?
Is there another file that these changes should be made in?
Are there specific configuration directives needing customization that are not available in WebHost Manager? Please ensure the following area in WHM is used as a first step: WHM: Main >> Service Configuration >> Mailserver Configuration
After the Courier (mail server) preferences are configured via WHM, please take a moment to examine the following YAML file that stores the Courier configuration:
Code:
/var/cpanel/courierconfig.yaml
If the desired customization is not offered in WHM, I would consider using the built-in script hooks that allow you to setup a custom "pre" and or "post" script that would be called at the beginning or end of the update process for Courier. Executed via /scripts/courierup, you may create /scripts/precourierup and or /scripts/postcourierup to perform custom actions, such as to save a backup of and or re-apply modifications to the Courier installation:
Code:
/scripts/precourierup
/scripts/postcourierup
Related documentation:
Hooking into cPanel Functionality
cPanel & WHM Script Hooks