Totally disable Mailman?

Jul 11, 2012
12
1
3
cPanel Access Level
Root Administrator
Hi there
Due to a very strict annual audit, I am asked to disable any default page that Mailman could show, like /mailman/listinfo/ (try it yourself in your installation). That page also reveals the mailman version running.

I've been digging into Mailman settings and Apache confs but couldn't hit the nail. Even renaming the listinfo.py and listinfo.pyc Python files to something else is giving me a nice "hey, we have a bug" page showing the Mailman version!

Is there any way to totally make dissapear Mailman from a cPanel installation?

Thanks in advance
 

dalem

Well-Known Member
PartnerNOC
Oct 24, 2003
2,980
156
368
SLC
cPanel Access Level
DataCenter Provider
assuming you have all ready disabled mailmain from service manager
Code:
cp -a /var/cpanel/templates/apache2_4/ea4_main.default /var/cpanel/templates/apache2_4/ea4_main.local
edit /var/cpanel/templates/apache2_4/ea4_main.local
and remove the lines 2 lines

Alias /mailman/archives /usr/local/cpanel/3rdparty/mailman/archives/public/
ScriptAlias /mailman /usr/local/cpanel/3rdparty/mailman/cgi-bin/

and run

/scripts/rebuildhttpdconf