Where is the mailman config file located and how to change variables without being overwritten when cPanel updates

Operating System & Version
CentOS v7.9.2009
cPanel & WHM Version
v100.0.11

Mark Fischer

Member
Jan 18, 2017
7
0
126
Georgetown, TX
cPanel Access Level
Root Administrator
Where is the mailman config file located on cPanel?

Also, how can I update a mm_cfg variable and not have it overwritten every time cPanel updates?

I need the mailman roster to display realnames. Every time that cPanel updates I have to go in and update 3rdparty/mailman/Mailman/HTMLFormatter.py to make it work. All that I have to do is set mm_cfg.ROSTER_DISPLAY_REALNAME to 1 but every time cPanel updates it changes it back.
 
Last edited by a moderator:

Mark Fischer

Member
Jan 18, 2017
7
0
126
Georgetown, TX
cPanel Access Level
Root Administrator
Hey there! Can you try editing the /usr/local/cpanel/3rdparty/mailman/Mailman/mm_cfg.py file directly instead of the main python file? That's the official Mailman recommendation to make those types of changes, which can be found here:

I found that config file after I posted and made the changes there. A couple of years ago, when I did the same thing, cPanel overwrote that file when it updated. Hopefully it does not do that this time.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
14,363
2,249
363
cPanel Access Level
Root Administrator
You can always try running a "/scripts/upcp --force" to force an update on the machine instead of waiting for the nightly update. I tried that on my end just now and the file does get touched during the update, but the entries I placed under the "# Put YOUR site-specific settings below this line." section were maintained.