Skip to content

cPanel webmail will not load or shows Service Unavailable

Webmail at /webmail or port 2096 fails to load or returns Service Unavailable on a cPanel server. The cause is usually cpsrvd, a blocked port, or a webmail app problem — here is the fix.

When users cannot reach webmail — the page times out, the browser cannot connect to port 2096, or they get a “Service Unavailable” error — the mailbox itself is usually fine. Webmail is served by cPanel’s own daemon, cpsrvd, completely separately from how mail is received and delivered. So a broken webmail page tells you something is wrong with cpsrvd, the webmail application (Roundcube), or the network path to the webmail port — not with Exim or Dovecot. The mail keeps arriving; people just cannot read it through the browser until the web layer is restored.

What’s happening

Webmail is reached either through a proxy URL like https://example.com/webmail (which Apache/the proxy hands to cpsrvd) or directly on port 2096 (SSL) / 2095 (non-SSL). cpsrvd authenticates the user against the mailbox and then loads the webmail application — on current cPanel that is Roundcube (Horde was removed in recent versions). If cpsrvd is stopped or wedged, every webmail and cPanel/WHM login fails with a connection error or “Service Unavailable.” If cpsrvd is up but Roundcube’s database or PHP is broken, the login page loads but the app errors after authentication.

The proxy path adds another failure mode: if the proxy subdomain (webmail.example.com) has no DNS record or no valid certificate, the /webmail redirect or the webmail. hostname fails even though port 2096 works directly. And because cpsrvd shares the 2083/2087/2096 family of ports, a firewall that blocks them — or fail2ban/cPHulk blocking the user’s IP after failed logins — makes webmail unreachable from that location only. The triage is to determine whether cpsrvd is running, whether the port is reachable, and whether the webmail app loads once you are past the daemon.

How to verify

Check whether cpsrvd is running at all — this gates everything.

# Is cpsrvd up?
/scripts/restartsrv_cpsrvd --status
whmapi1 servicestatus | grep -iA2 cpsrvd

# Recent cpsrvd errors
tail -50 /usr/local/cpanel/logs/error_log

Confirm the webmail port is reachable and presenting a certificate:

# Direct webmail port (SSL)
openssl s_client -connect example.com:2096 -servername example.com </dev/null 2>/dev/null | head -5

# From the user's side, is the port even open to them?
nc -vz example.com 2096

If the daemon is up and the port is open but Roundcube errors after login, check the webmail app and its database:

# Roundcube error log (per server)
tail -50 /var/cpanel/roundcube/log/errors* 2>/dev/null
ls -la /var/cpanel/roundcube/

# Roundcube uses a local DB; confirm the service backing it is up
whmapi1 servicestatus | grep -iA1 'mysql\|mariadb\|sqlite'

Rule out a proxy-subdomain or IP-block problem:

# Does the proxy hostname resolve and have a cert?
dig +short webmail.example.com
# Is the user's IP blocked by cPHulk for the service?
whmapi1 read_cphulk_records list=brutes | grep -i 2096

The fix

  1. Restart cpsrvd if it is down or wedged — the most common fix. If --status shows it stopped or it is not answering, restart it: /scripts/restartsrv_cpsrvd. This also restores cPanel and WHM logins, which fail the same way. Watch /usr/local/cpanel/logs/error_log for the cause so it does not recur (often memory pressure).

  2. Open the webmail ports at the firewall — if nc cannot reach 2096/2095, the host firewall is blocking them. On a CSF host, ensure 2096 and 2095 are in TCP_IN (csf -g 2096) and reload CSF. Without these, only the /webmail proxy path works, and only if the proxy is healthy.

  3. Repair the proxy subdomain and its certificate — if direct 2096 works but https://example.com/webmail or webmail.example.com fails, the service (proxy) subdomain is missing or uncertified. Confirm the webmail. proxy DNS entry exists (cPanel creates these automatically; recreate via WHM » DNS Zone Manager if missing) and run AutoSSL so the proxy hostname has a valid certificate.

  4. Rebuild or reset Roundcube when the app errors after login — if cpsrvd is up and the user authenticates but Roundcube throws an error, the webmail database may be corrupt. cPanel ships maintenance for this; reset Roundcube’s data store via the documented /usr/local/cpanel/bin/update-roundcube rebuild path or clear the corrupt per-user settings, then have the user log in again.

  5. Clear a cPHulk/firewall block on the user’s IP — if webmail works from one network but not the user’s, their IP is likely blocked. Remove it in WHM » cPHulk Brute Force Protection » History Reports (or the firewall’s deny list) and allowlist a trusted office IP if appropriate.

  6. Free memory or disk if cpsrvd keeps dying — a server out of RAM or with a full / disk will see cpsrvd restart-loop, producing intermittent “Service Unavailable.” Check df -h / and free memory; clear space or address the memory pressure so the daemon stays up.

  7. Point users at the direct port as a stopgap — while you repair the proxy or certificate, users can reach webmail at https://example.com:2096 directly (accepting a cert warning only if the cert is the issue), so they are not cut off from their mail during the fix.

After restarting cpsrvd or repairing the path, load https://example.com:2096, log in, and confirm the mailbox renders — that proves the web layer is back, independent of mail flow, which never stopped. Stack Harbor keeps cPanel services and webmail available under cPanel server management — start a conversation.