
I am tasked with removing a mailman list using CLI on a cpanel install.
When I run the list_lists command in bin I get this:
# python list_lists Traceback (most recent call last): File "list_lists", line 44, in ? import paths ImportError: No module named paths
How can I get a list of the lists to then proceed to using rmlist?
Thank you, Cameron

Cameron Smith wrote:
See the FAQ at <http://wiki.list.org/x/sYA9>.
Assuming that FAQ is correct about where things are located and cPanel hasn't broken things too badly, try
/usr/local/cpanel/3rdparty/mailman/bin/list_lists
If that is what you ran, then there is no /usr/local/cpanel/3rdparty/mailman/bin/paths.py file. That file needs to be there for any of the /usr/local/cpanel/3rdparty/mailman/bin/ commands to run. If it isn't there, there might be one in /usr/local/cpanel/3rdparty/mailman/cron which you could copy to /usr/local/cpanel/3rdparty/mailman/bin/
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan

Cameron Smith wrote:
See the FAQ at <http://wiki.list.org/x/sYA9>.
Assuming that FAQ is correct about where things are located and cPanel hasn't broken things too badly, try
/usr/local/cpanel/3rdparty/mailman/bin/list_lists
If that is what you ran, then there is no /usr/local/cpanel/3rdparty/mailman/bin/paths.py file. That file needs to be there for any of the /usr/local/cpanel/3rdparty/mailman/bin/ commands to run. If it isn't there, there might be one in /usr/local/cpanel/3rdparty/mailman/cron which you could copy to /usr/local/cpanel/3rdparty/mailman/bin/
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (3)
-
Cameron Smith
-
David Andrews
-
Mark Sapiro