Mailman is a mailing list manager included in cPanel. If you do not use mailing lists and want to disable Mailman to free up server resources or prevent unwanted list creation, you can do so by restricting its execute permissions.

Step 1: Disable Mailman

Run the following command as root via SSH to disable Mailman:

chmod -x /usr/local/cpanel/3rdparty/mailman/mail/wrapper

This removes the execute permission from the Mailman wrapper, preventing it from running.

Step 2: Verify Mailman Is Disabled

To check if Mailman is disabled, try running a Mailman-related command. If it’s disabled, you should see a permission error.

Step 3: Re-enable Mailman (If Needed)

If you need to restore Mailman functionality, re-enable it with:

chmod +x /usr/local/cpanel/3rdparty/mailman/mail/wrapper

Alternative: Completely Remove Mailman

If you want to completely remove Mailman from your cPanel server, use:

yum remove mailman

Need Assistance?

If you need help managing Mailman or other cPanel services, UnderHost’s expert support team is available 24/7. Contact us via @CustomerPanel for professional assistance.