A cPanel server with a fresh IP block sends technically valid mail and Gmail still drops it into spam. Six weeks of warm-up haven’t budged the score. At that point, sending directly from the cPanel host is the wrong tool — the IP has no reputation history and is unlikely to acquire one fast. The pragmatic move is to relay outbound through a smarthost (SendGrid, Postmark, Amazon SES, Mailgun, or a dedicated relay you operate) whose IPs already have established reputation.
What’s happening
Exim on cPanel speaks SMTP directly to recipient MX hosts by default. Switching it to a smarthost means every outbound message goes to a single SMTP gateway that re-sends from its own pool of well-warmed IPs. The gateway handles reputation, queue management, retry strategy, and bounce processing. You give up some control but gain inbox placement immediately.
How to verify
Confirm the current outbound path before changing anything:
exim -bV
grep "smtp_smarthost" /etc/exim.conf.localopts 2>/dev/null
exim -bp | head
Send a test message through the apex and inspect the Received: chain on the receiving side. If you see the cPanel host’s IP as the last Received: before the destination, you are sending direct.
The fix
- Pick a smarthost. SendGrid, Postmark, Amazon SES, and Mailgun all offer SMTP relay endpoints. Stack Harbor’s own relay is another option if you need Canadian routing.
- Create a sending identity on the smarthost for each domain that will send through it. This typically means publishing a CNAME for DKIM and updating SPF to authorize the smarthost.
- In WHM > Exim Configuration Manager > Basic Editor, configure the smarthost. The two fields are the smarthost hostname and the auth credentials. Use TLS (port 587 with STARTTLS, or 465 with implicit TLS).
- Confirm Exim is routing through the smarthost with a test message — check the recipient’s
Received:chain for the smarthost’s IP block, not the cPanel host’s. - Plan for fallback. A smarthost outage means no outbound mail. Configure a secondary smarthost in
/etc/exim.conf.localor keep direct delivery as a fallback router with a lower preference.
For organizations that need outbound mail to land cleanly while the cPanel infrastructure handles other workloads, Stack Harbor wires the smarthost integration as part of deployment management.