Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Aug 2002
    Posts
    1,120

    Default Courier Configuration Changes

    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?

  2. #2
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb Re: Courier Configuration Changes

    Quote Originally Posted by sparek-3 View Post
    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

  3. #3
    Member
    Join Date
    Aug 2002
    Posts
    1,120

    Default Re: Courier Configuration Changes

    The options look like they can be set in the WHM, but I was hoping to do this en masse for several of our servers.

    I think this information will help with this.

    So basically I could change the values accordingly via the WHM for one server and then copy the 2 files:

    /usr/lib/courier-imap/etc/imapd
    /var/cpanel/courierconfig.yaml

    to the other affected servers and then those changes will keep across all of the servers even after Courier updates. Is that correct?

    I think /var/cpanel/courierconfig.yaml was the missing file that I didn't know was being changed. I figured the WHM was saving the changes somewhere, but I didn't know where.

  4. #4
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb Re: Courier Configuration Changes

    I believe you can effectively clone the Courier configuration, as setup via WHM, using the following steps:
    1. Transfer a copy of /var/cpanel/courierconfig.yaml to the desired server.
    2. Via shell, execute /scripts/courierup --reconfig to rebuild the Courier configuration from the YAML file.

Similar Threads & Tags
Similar threads

  1. courier or dovecote?
    By mambovince in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 02-14-2011, 08:29 PM
  2. Courier, courier-auth and custom usernames
    By micho101 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-27-2009, 09:36 AM
  3. Courier to Dovecot
    By neutro in forum E-mail Discussions
    Replies: 10
    Last Post: 12-22-2008, 07:03 PM
  4. uninstall courier
    By eter4 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 11-23-2005, 11:14 AM
  5. courier authlib and courier imap taking up resources
    By dennis in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 11-18-2005, 02:52 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube