Skip to content

CalDAV and CardDAV sync with iOS Mail through cPanel

How to wire CalDAV and CardDAV from a cPanel-hosted account to iOS Mail and Contacts so calendar invites and address books sync without manual export.

A user wants their cPanel-hosted calendar and contacts to sync to iPhone the same way iCloud or Google Workspace does. The CalDAV/CardDAV bits exist on the server — cPanel ships them as part of the Calendar and Contacts feature — but the discovery URLs, the SSL configuration, and the per-user paths trip people up. The clean setup is a 5-minute exercise once you know the URLs and the gotchas; without that knowledge it’s a day of trial-and-error.

What’s happening

cPanel includes a CalDAV/CardDAV server (typically based on Davical or the cPanel-bundled equivalent) that runs alongside Dovecot and exposes per-user calendars and address books over HTTPS. iOS expects to discover the endpoints via the well-known URL pattern (https://mail.example.com/.well-known/caldav and /.well-known/carddav), which should redirect to the actual server path. Without the well-known redirects, iOS asks for a manual URL that users rarely have correct.

How to verify

From the cPanel host, confirm the CalDAV/CardDAV service is running:

ss -lntp | grep -E ':(8008|8443|443).*cpdavd|caldav'
curl -I https://mail.example.com/.well-known/caldav

The first command should show the daemon listening; the second should return a 301/302 to the actual server path. From an iOS device, the Calendar settings under Add Account > Other > CalDAV should accept just the server hostname and the account credentials if discovery works.

The fix

  1. Confirm the calendar service is enabled in WHM > Service Manager. cPanel calls this cpdavd or Calendar and Contacts Server depending on version. Enable it if it’s off, and confirm it’s running with systemctl status cpdavd or the cPanel equivalent.
  2. Set up the well-known redirects in the domain’s web root. For mail.example.com, add /.well-known/caldav and /.well-known/carddav redirects to the actual server paths. cPanel ships defaults for the main hostname but not always for vanity hostnames.
  3. Confirm TLS works without errors. iOS refuses self-signed certs without manual approval. Use the AutoSSL-issued Let’s Encrypt cert and confirm with openssl s_client -connect mail.example.com:443 -showcerts.
  4. Add the account on iOS. Settings > Calendar > Accounts > Add Account > Other > Add CalDAV Account. Server: mail.example.com. Username: full email address. Password: mailbox password.
  5. For CardDAV, same flow under Settings > Contacts > Accounts > Add Account > Other > Add CardDAV Account.
  6. If discovery fails, fall back to the explicit URL. The user can enter https://mail.example.com:2080/principals/users/<user>/ or the path your cPanel exposes; check the server’s web admin for the exact pattern.

For environments where calendar and contacts sync are part of the support contract, Stack Harbor wires CalDAV/CardDAV discovery and the iOS profiles into cPanel/WHM management.