ImportError: No module named korean / How do you disable mailman?

Vatoloco

Well-Known Member
Jun 21, 2004
99
0
166
I'm not using a mailing list on my server and want to completely disable mailman. I unchecked Mailman under Tweak Settings in WHM but I'm getting a bunch of error messages e-mailed to me that look related to mailman:

Code:
Cron <[email protected]> /usr/bin/python2.4 -S /usr/local/cpanel/3rdparty/mailman/cron/senddigests

Traceback (most recent call last):
  File "/usr/local/cpanel/3rdparty/mailman/cron/senddigests", line 36, in ?
    import paths
  File "/usr/local/cpanel/3rdparty/mailman/cron/paths.py", line 60, in ?
    import korean
ImportError: No module named korean
Code:
Cron <[email protected]> /usr/bin/python2.4 -S /usr/local/cpanel/3rdparty/mailman/cron/disabled

Traceback (most recent call last):
  File "/usr/local/cpanel/3rdparty/mailman/cron/disabled", line 67, in ?
    import paths
  File "/usr/local/cpanel/3rdparty/mailman/cron/paths.py", line 60, in ?
    import korean
ImportError: No module named korean
Code:
Cron <[email protected]> /usr/bin/python2.4 -S /usr/local/cpanel/3rdparty/mailman/cron/checkdbs

Traceback (most recent call last):
  File "/usr/local/cpanel/3rdparty/mailman/cron/checkdbs", line 34, in ?
    import paths
  File "/usr/local/cpanel/3rdparty/mailman/cron/paths.py", line 60, in ?
    import korean
ImportError: No module named korean
Code:
Cron <[email protected]> /usr/bin/python2.4 -S /usr/local/cpanel/3rdparty/mailman/cron/nightly_gzi

Traceback (most recent call last):
  File "/usr/local/cpanel/3rdparty/mailman/cron/nightly_gzip", line 52, in ?
    import paths
  File "/usr/local/cpanel/3rdparty/mailman/cron/paths.py", line 60, in ?
    import korean
ImportError: No module named korean

Does anyone know how I would stop those errors and completely disable mailmain?
 

Vatoloco

Well-Known Member
Jun 21, 2004
99
0
166
I'm still not sure why I was getting that error in the first place, but I think removing mailman and its cron entries will solve my problem. I don't use mailing lists so I shouldn't have any need for it. Here's the guide I found to do that:

http://wiki.asmallorange.com/HOWTODisableMailman

Disabling Mailman for Cpanel Users

First, login to WHM and go to Server Configuration -> Tweak Settings.
Scroll down to Mail and uncheck the box for Mailman.
Scroll to the bottom and click "Save".

Removing the Mailman alias in Apache

Using SSH to connect to your server, login as root.
Edit httpd.conf (do not use the Virtuozzo file editor to do this) using vi or nano
Code:
nano /usr/local/apache/conf/httpd.conf
Scroll down to these lines:
Code:
Alias /mailman/archives/ /usr/local/cpanel/3rdparty/mailman/archives/public/
ScriptAlias /mailman/ /usr/local/cpanel/3rdparty/mailman/cgi-bin/
Alias /pipermail/ /usr/local/cpanel/3rdparty/mailman/archives/public/
and comment them out by adding a # in front:
Code:
#Alias /mailman/archives/ /usr/local/cpanel/3rdparty/mailman/archives/public/
#ScriptAlias /mailman/ /usr/local/cpanel/3rdparty/mailman/cgi-bin/
#Alias /pipermail/ /usr/local/cpanel/3rdparty/mailman/archives/public/
Save the file and restart Apache:
Code:
service httpd restart

Removing the cron entries

While logged in via SSH as root, enter this command:
Code:
crontab -r -i -u mailman
This will delete the mailman's nightly cron tasks.
 

Vatoloco

Well-Known Member
Jun 21, 2004
99
0
166
No luck

I can't seem to keep mailman disabled. cPanel did an automatic update last night and the mailman lines in httpd.conf came back plus all the mailman crontab entries were restored so I started getting those ImportError e-mails again.

Is there any way to stop upcp from restoring all the mailman settings?
 

grayloon

Well-Known Member
Oct 31, 2007
117
4
68
Evansville, IN
cPanel Access Level
Root Administrator
Twitter
My security scanning service, McAfee Secure, is showing Mailman as being vulnerable. Here's their explanation:
Multiple cross-site scripting (XSS) vulnerabilities in Mailman before 2.1.10b1 allow remote attackers to inject arbitrary web script or HTML via unspecified vectors related to (1) editing templates and (2) the list's "info attribute" in the web administrator interface.
The vendor released Mailman 2.1.10b1 to address these issues. Upgrade to the latest version of this software.
I unchecked Mailman in WHM > Server Configuration > Tweak Settings, but it still comes up via the web: http://domain.com/mailman/admin/mailman. How can I turn it off permanently???