cPanel / WHM Plugin
Sends your server’s outgoing email through SMTP.com’s transactional relay over an encrypted connection. It also registers every domain on the server with SMTP.com and sets up its SPF and DKIM records.
How It Works
1
From
Exim checks the sender’s domain on each outgoing message. Mail between local mailboxes on the server is never relayed.
2
Through
If the sender’s domain is enabled, the message goes to send.smtp.com instead of being delivered directly.
3
Switch
Turn on Relay control on the Dashboard. The plugin writes the Exim settings, rebuilds and restarts Exim.
Connect SMTP.com, choose domains, watch delivery
Read-only page at Email › SMTP.com Email Delivery
Command-line tool, run as root from any directory
Features
Exim sends mail from enabled domains to SMTP.com, logging in with the channel’s SMTP username and password. Messages up to 50 MB go through.
Port 465 with SSL/TLS by default. Ports 587, 2525 and 25 use required STARTTLS. SMTP.com’s certificate is verified by default.
Adds clearly marked blocks to /etc/exim.conf.local, backs up first and keeps the 10 most recent backups. If Exim rejects the config, the backup is restored.
If SMTP.com can’t be reached, Exim defers the message and retries on its normal schedule.
Reads every domain from WHM, including addon domains and optionally parked domains and subdomains, and registers each with SMTP.com.
Each domain gets its own 2048-bit RSA DKIM key, generated on the server and published as a TXT record. The selector defaults to smtpcom.
Adds include:_spf.smtp.com to the existing SPF record, keeping other entries. Optionally creates a DMARC record if none exists.
Relay selected domains only, or every sender on the server. Turning a domain on or off takes effect at once, with no Exim restart.
An hourly sync, plus hooks that start a sync when an account, addon domain, parked domain or subdomain is created or removed.
Relay test through Exim, API test, port test for 465, 587, 2525 and 25, SMTP.com message activity and plugin logs.
After every sync, the plugin checks live SPF, DKIM and DMARC records in public DNS and marks each domain healthy or DNS incomplete.
Each customer sees only their own domains in cPanel, read-only, with copy-ready SPF, DKIM and DMARC records. Show or hide it per package in Feature Manager.
Screenshots
For domains with DNS hosted elsewhere, copy the SPF, DKIM and DMARC records to the DNS provider.
Each hosting customer sees their own domains, delivery status and DNS records.
Requirements
cPanel & WHM 102 or later. The cPanel page uses the Jupiter theme.
Root SSH access to the server.
cPanel’s own PHP 7.4 or newer with the openssl extension. The installer checks both.
Exim, as installed by cPanel.
api.smtp.com on port 443, and send.smtp.com on 465, 587 or 2525.
An active SMTP.com account with an API key and a channel (also called a sender).
SMTP.com dashboard › Account › API Access
Needs an SMTP username and password. The plugin can create one for you.
Added automatically if the server hosts the zone. Otherwise add records at the external DNS provider.
Many cloud providers block outbound port 25 and sometimes 587. Use 465 or 2525.
Installation
Installation takes about one minute and does not change how mail is sent. Exim keeps delivering directly until you switch the relay on.
1
Upload the plugin zip to the server, for example into /root, using SCP, SFTP or WHM’s File Manager
2
Log in over SSH as root and run the commands
3
Wait for “Installation complete”. Each step prints a green tick.
4
Open WHM and go to Plugins › SMTP.com Relay. If the menu entry is missing, reload WHM.
cd /root
unzip g44-smtpcom-whm-1.1.1.zip
cd g44-smtpcom-whm
bash install.sh
# check the install
g44-smtpcom version
g44-smtpcom status
$10.00 per month. Questions about the plugin? Contact our team. SMTP.com is a trademark of its owner. This plugin is not affiliated with or endorsed by SMTP.com.