A customer asks for a dedicated IP, and the question used to be easy: SSL needed it. Since SNI became universal, dedicated IPs are mostly about mail deliverability (separate reputation), compliance (audit log says “this IP belongs to this customer”), or upstream firewall rules that match per-customer. The technical move is one API call; the operational fallout is DNS records, AutoSSL re-issuance, and Exim routing that all need to be told the IP changed.
What’s happening
whmapi1 set_account_dedicated_ip user=acme ip=203.0.113.42 reassigns the account from the shared IP pool to that specific IP. The change touches /var/cpanel/users/acme (sets IP=203.0.113.42), updates the Apache vhost config (Apache restart required), updates the DNS A records for the account’s primary domain to the new IP, and changes Exim’s transport for outbound mail from the account’s domains. AutoSSL certs that were issued for the shared IP need to be re-issued because the SAN list includes the IP in some shapes — or the cert needs the cPanel service cert for the hostname.
How to verify
Snapshot the account’s current IP plumbing before changing:
whmapi1 accountsummary user=acme
whmapi1 listips
dig +short A acme.com
dig +short A mail.acme.com
whmapi1 listsslcerts user=acme
grep IP /var/cpanel/users/acme
The accountsummary shows the current IP. The DNS A record should match. After the change, the A record needs to be updated — either through the DNS cluster sync or manually if external DNS hosts the zone.
The fix
- Reserve the IP in WHM if it isn’t already free:
whmapi1 listips | grep -E '<ip>.*(0|free)'. An IP in use by another account is not assignable. - Update DNS first if the zone is external. The A and AAAA records need to point at the new IP before traffic flips, otherwise visitors hit the old IP that no longer serves the site.
- Run the API change:
whmapi1 set_account_dedicated_ip user=acme ip=203.0.113.42. WHM rewrites Apache, restarts the worker, updates the user file, and updates internal DNS zones. - Re-issue AutoSSL to be safe:
whmapi1 start_autossl_check_for_one_user user=acme. The check runs against the new IP and produces a fresh cert with the right SAN list. - For mail, check
/etc/exim.conf.local— if you have custom routers that pin transports per IP, update them. Most installs use the default Exim config which picks transport from the account’s IP automatically.
When dedicated IP allocation is part of a deliverability or compliance package, Stack Harbor’s agency partner practice maps the IP to the account in the customer’s record, sets up the rDNS at the upstream, and tracks the blocklist health of each dedicated IP separately.