courierconfig.yaml changes

imageinabox

Member
Nov 20, 2013
21
2
3
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":
...
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
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.