Mail servers and panels

cPanel and WHM email validation integration

A WHM plugin lets a cPanel server check the outside recipients of the mail your customers send through Exim, while it is being submitted. Out of the box it only logs each result; refusing is yours to turn on, and when a check cannot be made in time the mail goes out unchecked.

Read the full setup guideGet an API key

  • Setup guide
  • Set up from WHM, or over SSH on many servers

ev-exim-1.0.0.zipas root

Terminal
# in the folder that holds the unpacked ev-exim/
sh ev-exim/whm/install.sh

# the key from a file, never on the command line
python3 -I /usr/local/lib/ev-helper/ev_whm.py set-key < server1.key

# the quick rollback: checks off, the key stays
python3 -I /usr/local/lib/ev-helper/ev_whm.py settings --checks off

At a glance.

Status
Setup guide. Not listed on a marketplace yet: you set it up yourself in a few steps, below and in the full guide.
For
Hosting companies and server administrators who run cPanel & WHM and want to see, and if they choose stop, the mail their customers send to addresses that do not exist.
You need
A cPanel & WHM server you are root on, with Python 3, and an API key made for it, with a daily credit cap.
Costs
1 credit = 1 validated address, as with any API request. Free: unknown results, API errors, malformed addresses, test addresses on sandbox.email-validation.org, addresses on reserved domains such as example.com and, in a bulk list, repeats of an address (charged once).
Full guide
Read the full setup guide

Typical uses.

  • Log first

    Each checked recipient gets an Exim log line with its status, reason and domain, so you see which customers mail dead addresses before you change anything.

  • Refuse dead recipients

    Refuse mode turns away a recipient whose result is invalid because it has no mailbox, no DNS or no inbound mail. Your customer sees it at once in their mail program, and the other recipients still get the message.

  • Guard your servers’ reputation

    Mailbox providers count mail to addresses that do not exist against the server that sends it. Refusing it keeps that mail from leaving your IP addresses.

Set it up. 4 steps.

The short version of the full setup guide, which stays the reference when a step does not match what you see.

Read the full setup guide

  1. Download the zip

    There is no cPanel Marketplace listing or package repository yet: download ev-exim-1.0.0.zip from the guide onto the server, and create an API key for that server with Validate addresses and a daily credit cap.

  2. Run the installer

    As root, run sh ev-exim/whm/install.sh. It installs the helper and the WHM page and changes nothing in Exim until a key is saved.

  3. Add the key

    In WHM, Plugins, email-validation.org recipient checks, paste the key and choose Save and test, or on many servers pipe each server’s key into ev_whm.py set-key over SSH.

  4. Watch, then choose

    Checks start in log only mode, and the key test is one free check of a test address. Watch the log lines and the page’s counts, then switch to refuse mode when you are ready.

Good to know.

  • Try it on a test server first: it was built from cPanel’s documentation and tested against a model of a cPanel server, not yet on a real one.

  • It writes only the places cPanel keeps across rebuilds and updates (the Advanced Editor’s section and a custom ACL block), checks every change before Exim restarts and puts everything back if a step fails.

  • A failing check never stops mail: when the API has not answered within a few seconds, or the helper is down, the recipient is unchecked and the mail goes out.

  • Checks off, from WHM or one command, takes the statements out of Exim and keeps the key; the uninstaller takes Exim’s statements out before anything else.

  • It sends only each outside recipient’s address, never the message, and the WHM page shows counts only. The EU host is one setting away.

Connect cPanel and WHM.

Test it on our sandbox addresses for free, then on your own contacts.

Create your accountRead the full setup guide

Updated · Maintained by: Email Validation LLC