Symptoms
CPanel is accessed to work with existing mailing lists but they do not display in the cPanel user interface.
Description
There are a few reasons why mailman lists may not be showing in cPanel and one of them is due to one of the lists being corrupted. This is able to be seen by executing
/usr/local/cpanel/3rdparty/mailman/bin/list_lists
and provides an error output
# /usr/local/cpanel/3rdparty/mailman/bin/list_lists
Traceback (most recent call last):
File "/usr/local/cpanel/3rdparty/mailman/bin/list_lists", line 136, in <module>
main()
File "/usr/local/cpanel/3rdparty/mailman/bin/list_lists", line 102, in main
mlist = MailList.MailList(n, lock=0)
File "/usr/local/cpanel/3rdparty/mailman/Mailman/MailList.py", line 133, in __init__
self.Load()
File "/usr/local/cpanel/3rdparty/mailman/Mailman/MailList.py", line 722, in Load
raise Errors.MMCorruptListDatabaseError, e
Mailman.Errors.MMCorruptListDatabaseError: [Errno 2] No such file or directory: '/usr/local/cpanel/3rdparty/mailman/lists/listname_somedomain.com/config.db.last'
#
Workaround
In this case, the list listname_somedomain.com is corrupt and needs to be moved. Move the list shown in the error output.
mkdir /root/cpanelzone/
mv /usr/local/cpanel/3rdparty/mailman/lists/listname_somedomain.com/ /root/cpanelzone/
Then execute /usr/local/cpanel/3rdparty/mailman/bin/list_lists to make sure there aren't any others.