Skip to content

Disabling unused webmail applications on cPanel

Why leaving every cPanel webmail application enabled increases attack surface, how to disable the ones you do not support, and how to set the default for the ones that remain.

cPanel ships with multiple webmail applications. Most operators support one — typically Roundcube — but leave the others enabled because turning them off requires opening WHM and reading the documentation. The extras sit there, getting indexed by login-scanning bots, occasionally being targeted by CVEs, and confusing users who picked the wrong one on first setup. The cleanup is a one-time exercise: pick the one you support, disable the rest, set defaults, and stop fielding “why does my webmail look different on this device” tickets.

What’s happening

cPanel’s WHM > Service Configuration > cPanel Web Disk and related areas expose toggles for each webmail application. When all are enabled, the user lands on a chooser at first login. If you support Roundcube only but Horde is also enabled, a user might pick Horde, build up settings there, and then be confused when the documentation references Roundcube. Each enabled app is also a potential CVE target — fewer running services means a smaller attack surface.

How to verify

List the enabled webmail applications:

ls /var/cpanel/webmail/
whmapi1 list_webmail_apps

Then check the default per user:

cat /home/<user>/.cpanel/webmaildefault 2>/dev/null

The fix

  1. Decide which webmail app you support. For modern cPanel deployments, Roundcube is the practical default — it’s actively developed, has a usable mobile interface, and integrates with cPanel features like spam folder routing.
  2. Disable the others in WHM > Tweak Settings > Webmail Applications, or via whmapi1. Disabling removes the option from the user’s first-login chooser and stops the underlying service if it has one.
  3. Set the default webmail app so users who don’t have an existing preference go straight to Roundcube. WHM > Tweak Settings, or as a per-user override.
  4. Communicate the change to users who picked a disabled app. For each user whose webmaildefault was Horde or another retired app, send a notice with instructions for moving to Roundcube (see the Horde-retired KB for migration paths).
  5. Audit weekly for re-enabled services. A cPanel update or a WHM operator with a different opinion can re-enable an application. A simple cron that checks the enabled list and alerts on changes catches this.
  6. Set the favicon and branding for the remaining webmail so users who came expecting one interface get a consistent experience.

For environments where webmail consistency is part of the support promise, Stack Harbor sets up the configuration and the change-detection alerting as part of cPanel/WHM management.