Hello,
While it's possible to change the mailman URL, it's important to note that no native feature exists to preserve these types of changes. cPanel updates call "/scripts/resetmailmanurls", which reverts the custom changes. I suggest voting and adding feedback to the following feature request if you want to see a change in this behavior:
MailMan - Make it configurable on a site basis, not server wide ( PCI-DSS Compliance )
In the meantime, you can use hooks to disable "/scripts/resetmailmanurls" during the cPanel update process. Here's one example of doing this:
Code:
touch /root/preupcpscript.sh
touch /root/postupcpscript.sh
chmod 0755 /root/preupcpscript.sh
chmod 0755 /root/postupcpscript.sh
Then, edit these files to match the following contents (Note the vi command is in code tags, but not part of the actual script):
Code:
vi /root/preupcpscript.sh
#!/bin/sh
chmod 0000 /usr/local/cpanel/scripts/resetmailmanurls
chattr +i /usr/local/cpanel/scripts/resetmailmanurls
Code:
vi /root/postupcpscript.sh
#!/bin/sh
chattr -i /usr/local/cpanel/scripts/resetmailmanurls
chmod 0755 /usr/local/cpanel/scripts/resetmailmanurls
Next, run the following commands to enable these scripts:
Code:
/usr/local/cpanel/bin/manage_hooks add script /root/preupcpscript.sh --manual --category System --event upcp --stage pre
/usr/local/cpanel/bin/manage_hooks add script /root/postupcpscript.sh --manual --category System --event upcp --stage post
Keep in mind this will result in an error message during the upcp process when it tries to run "/scripts/resetmailmanurls", but the update itself will still proceed.
Thank you.