P H O T O N

CONSOLE

Loading

Hosting & Server Infrastructure

cPanel & WHM Exim Smart Host Setup
Route Outbound Server Mail Through External SMTP Relay

Bypass residential and cloud port 25 firewalls. Step-by-step WHM Exim Configuration Editor tutorial with authenticated TLS smart hosting.

8 min read • cPanel 110+ Verified • Port 587 STARTTLS
Direct Answer: cPanel Exim Smart Host Setup

Configuring cPanel/WHM to route outbound server emails through an external authenticated SMTP relay bypasses residential or VPS cloud port 25 blocks, ensures 99%+ deliverability for shared hosting tenants, and offloads SPF/DKIM signing. It is accomplished by adding a smart host router and client authentication credentials in the WHM Exim Configuration Manager Advanced Editor.

1. Why Cloud Servers Require an Exim Smart Host

Popular cloud hosting providers like AWS EC2, DigitalOcean, Linode, and Vultr block outbound TCP port 25 by default to prevent spam outbreaks. Even when unblocked, standard VPS IP blocks suffer from dirty reputations due to previous tenants. A smart host routes all outbound traffic over port 587 through Photon Console's clean Anycast MTA infrastructure.

2. Step 1: WHM Exim AUTH Configuration Block

Log in to WHM > Service Configuration > Exim Configuration Manager > Advanced Editor. Scroll to the Section: AUTH text area and enter:

# Section: AUTH in WHM Exim Advanced Editor photon_auth: driver = plaintext public_name = LOGIN client_send = : photon_user_live_998124 : sec_token_abcdef123456

3. Step 2: WHM Exim ROUTERSTART Configuration Block

Scroll down to Section: ROUTERSTART and enter the smart host router definition:

# Section: ROUTERSTART in WHM Exim Advanced Editor photon_smarthost_router: driver = manualroute domains = ! +local_domains transport = photon_smtp_transport route_list = * smtp.photonconsole.com::587

4. Step 3: WHM Exim TRANSPORTSTART Configuration Block

Scroll down to Section: TRANSPORTSTART and configure the transport driver:

# Section: TRANSPORTSTART in WHM Exim Advanced Editor photon_smtp_transport: driver = smtp port = 587 hosts_require_tls = * hosts_require_auth = *

Click Save at the very bottom of WHM. Exim will automatically recompile and restart the MTA daemon.

5. Testing & Verifying via Exim Log

SSH into your cPanel server as root and tail the mail log while dispatching a test email:

# Monitor real-time Exim smart host dispatch tail -f /var/log/exim_mainlog | grep photon # Expected output: 2026-11-16 16:50:12 1s9K2m-0004a-1Z => test@gmail.com R=photon_smarthost_router T=photon_smtp_transport H=smtp.photonconsole.com [54.210.10.15] C="250 2.0.0 OK: queued as msg_991823ab"

6. Frequently Asked Questions

Why should hosting providers use an external SMTP smart host on cPanel?

VPS and dedicated servers on AWS, DigitalOcean, Hetzner, or OVH frequently suffer from blocked outbound port 25 or polluted shared IP ranges. Routing cPanel through an authenticated external relay guarantees 99%+ deliverability, handles SPF/DKIM compliance, and insulates tenants from dirty IP blacklists.

Where in WHM do I enter the smart host configuration?

Navigate to WHM > Service Configuration > Exim Configuration Manager > Advanced Editor. Add your relay credentials in Section: AUTH, and configure the smart host transport under Section: ROUTERSTART and Section: TRANSPORTSTART.

Does configuring an Exim smart host break local webmail or cPanel accounts?

No. Local mail delivery between accounts on the same cPanel server continues to route locally. Only outbound remote emails bound for external domains (like Gmail, Outlook, Yahoo) are forwarded through the authenticated relay.

Upgrade Your cPanel Servers to Sub-Second Delivery

Stop losing client emails to blacklists and port 25 blocks. Deploy Photon Console's enterprise smart host relay across your cPanel servers in under 5 minutes.