Mailman is a popular mailing list software. It is available with cPanel. It some point, you may encounter the following error while restarting Mailman service using /scripts/restartsrv_mailman command or restarting it directly form WHM:
Service Error
(XID hwshb5) The “mailman” service failed to start.
Startup Log
Oct 02 10:35:34 server.domain.com systemd[1]: Starting mailman services...
Oct 02 10:35:35 server.domain.com restartsrv_mailman[16190]: Site list is missing: mailman
Oct 02 10:35:35 server.domain.com systemd[1]: mailman.service: control process exited, code=exited status=1
Oct 02 10:35:35 server.domain.com systemd[1]: Failed to start mailman services.You are receiving this error because base mailman list is missing on the server. Due to the missing mailman list, it fails to start mailman service.
Workaround to fix mailman service startup error
You can quickly fix this by recreating the missing base mailman list. Following are the steps to recreate a base mailman list:
[root@server]# /usr/local/cpanel/3rdparty/mailman/bin/newlist
Enter the name of the list: mailman
Enter the email of the person running the list: [email protected]
Initial mailman password:Here list name should be mailman and you can enter server admin’s email account for the person running this list. It is recommended to set strong password for this.
Once the default list is created, you can restart mailman service using the following command:
/scripts/restartsrv_mailman
If you have any other issue related to cPanel or web hosting, you can explore our web hosting community forum.