The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

courierconfig.yaml changes

Discussion in 'E-mail Discussions' started by imageinabox, Apr 9, 2014.

  1. imageinabox

    imageinabox Member

    Joined:
    Nov 20, 2013
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Huntsville, AL
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hey Tech Support,

    I've made some changes to the courierconfig.yaml file.

    Mainly the authmodulelist. But each time courier is updated or cpanel runs the update, my authuserdb is removed, and then the authdaemonrc only shows authpipe. Even though I have authuserdb like below. This causes large amounts of failures on the mail server. Since most of my clients use the authuserdb.

    So each time the update runs, I have to mainly go edit the authdaemonrc file and add back in authuserdb.

    My questions are why does this not push the changes into the authdaemonrc? Why doesn't the file keep my settings. Since WHM doesn't offer this section to edit, I thought editing it here would keep it in the authdaemonrc.

    Code:
    # /var/cpanel/courierconfig.yaml file
    ---
    "authdaemonrc":
      "LOGGEROPTS": '"-facility=mail"'
      "authmodulelist": '"authuserdb authpipe"'
      "daemons": 5
    "imapd":
    ...
    
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,834
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    You could ensure this change is preserved by using the "postupcp" file (or hooking into the upcp event). There is a post here that describes how to do this:

    Changes in Postupcp

    You would have to modify the actual change made, but the post provides you with the general idea on how to do it.

    Thank you.
     
  3. imageinabox

    imageinabox Member

    Joined:
    Nov 20, 2013
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Huntsville, AL
    cPanel Access Level:
    Root Administrator
    Twitter:
    Michael,

    This is somewhat a solutions but not the full answer to my question. Why isn't the setting sticking from the .YAML file? I thought that was the whole purpose of the YAML files.

    Thanks,
    Justin
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,834
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Manually modifying the /var/cpanel/courierconfig.yaml file rather than making changes through the WHM interface is not natively supported. You could also submit a feature request to see the option you are referencing added to the WHM interface:

    Submit A Feature Request

    Thank you.
     
Loading...
Similar Threads - courierconfig yaml changes
  1. ttremain
    Replies:
    7
    Views:
    332

Share This Page