Mail servers and panels
Exim and cPanel integration
A small helper daemon and three include files let an Exim server check the outside recipients of the mail your users send, while it is being submitted. Out of the box it only logs each result; tagging and refusing are 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
- One zip: the helper, the Exim includes and a WHM plugin
# plain Exim: check the helper's settings, then Exim's
python3 -I /usr/local/lib/ev-helper/ev_helper.py --check-config
exim -bV
# cPanel and WHM: in the unpacked ev-exim/ folder
sh whm/install.shAt 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 providers and mail administrators who run Exim, on its own or under cPanel and WHM, and want to see, and if they choose stop, the mail their users send to addresses that do not exist.
- You need
- An Exim server you are root on, with Python 3 (standard library only) and systemd for the helper, or a cPanel server with WHM, 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 and test addresses on sandbox.email-validation.org.
- Full guide
- Read the full setup guide
Typical uses.
Log first
Each checked recipient gets an Exim log line with its status and reason, so you see which of your users mail dead addresses before you change anything.
Refuse dead recipients
Reject mode refuses a recipient whose result is invalid with a reason you list. Your user sees it in their mail program at once, and the other recipients still get the message.
Guard your sending reputation
Mailbox providers count mail to addresses that do not exist against a server. Turn on reject mode when keeping that mail from leaving matters more to you than the chance of a wrong refusal.
Set it up. 5 steps.
The short version of the full setup guide, which stays the reference when a step does not match what you see.
Download the zip
There is no package repository or cPanel Marketplace listing yet: download ev-exim-1.0.0.zip from the guide, which unpacks into a folder ev-exim/. Create an API key for the server with Validate addresses and a daily credit cap.
On cPanel, install the plugin
cPanel rebuilds Exim’s configuration, so run
sh whm/install.shas root, open WHM, Plugins, email-validation.org recipient checks, paste the key and choose Save and test.On plain Exim, start the helper
Put the key in
/etc/ev-helper/api-key, readable by root only, copy the helper and its settings file into place, then install its systemd socket and service and enable the socket.Add the three includes
Include
ev-macros.confbeforebegin aclandev-rcpt.aclat the top of the RCPT ACL;ev-data.aclin the DATA ACL is needed only for the optional header.Test, then reload
Run
exim -bV, tryRCPT TO:<no_mailbox@sandbox.email-validation.org>in anexim -bh 127.0.0.1session, then reload Exim. Test addresses cost nothing.
Good to know.
Try it on a test server before you add it to a production mail server.
Only outbound mail is checked. Mail arriving for your own mailboxes, and messages submitted with the sendmail command, are not.
A failing check never stops mail (each recipient waits a few seconds at most): when the API has not answered within a few seconds, or the helper is down, the recipient is unchecked and the mail goes out. A slow check finishes in the background for the next message.
Its own cache, a limit per sender and a daily limit for the whole server bound what it spends, on top of the key’s daily credit cap. An answer from the cache costs nothing.
It sends only each outside recipient’s address, never the message, and its cache holds keyed hashes, not addresses.
region = eusends the checks to our EU host.The optional X-EV-Recipient-Status header reaches every copy of the message, Bcc recipients included, so use it only for your own filters and remove it in every transport.
Connect Exim and cPanel.
Test it on our sandbox addresses for free, then on your own contacts.
Updated · Maintained by: Email Validation LLC