Mail servers and panels
Haraka integration
A plugin lets a Haraka server check the outside recipients of the mail your users send, at RCPT TO. Until you turn on refusing it only logs each result, and when a check cannot be made in time Haraka carries on and the mail goes out as usual.
Read the full setup guideGet an API key
- Setup guide
- One zip: the npm package haraka-plugin-email-validation and its settings file
# one line, anywhere: its hooks run before the other plugins by priority
email-validationAt 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
- Mail administrators and developers who run Haraka as the server their users or applications send through, and want to see, and if they choose refuse, the mail addressed to mailboxes that do not exist.
- You need
- A Haraka 3 server on Node.js 22 or 24 that you can install npm packages into, an auth plugin for your users (or the relay plugin's ACL for your own servers), 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 and, in a bulk list, repeats of an address (charged once).
- Full guide
- Read the full setup guide
Typical uses.
See who mails dead addresses
The default log mode writes one line per checked recipient with its status and reason, so you learn which senders reach addresses that do not exist before you change anything.
Refuse what you choose
With
mode = reject, a recipient whose status you list (invalid and disposable by default) is refused at RCPT TO with a 550. The sender sees it at once instead of a bounce later, and the other recipients still get the message.Let other plugins decide
Each checked recipient gets a result in
transaction.results(pass, fail or skip, with the status or reason and never an address), so your own plugins can act on it.
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 and make a key
The package is not on npm yet: download haraka-plugin-email-validation-1.0.0.zip from the guide. Create an API key for the server with Validate addresses and a daily credit cap.
Install the package
Unzip it, run
npm packin its folder andnpm install --ignore-scriptsthe tarball in your Haraka folder, then copyconfig/email-validation.iniinto Haraka'sconfig/.Add the key
Put the key on the
api_keyline and make the file readable by Haraka's group only (chmod 640), or setEV_API_KEYfor the Haraka process.Turn it on
Add
email-validationtoconfig/pluginsand restart Haraka. The log sayssettings loaded.Try it
Try
no_mailbox@sandbox.email-validation.orgas the recipient in a session that logs in and ends afterRCPT TO(swaks --auth … --quit-after RCPT), so nothing is sent, and read the log line. Never send a whole message to a test address: log mode lets it out and the bounce hurts your sender.
Good to know.
Only outbound mail is checked: a client that logged in, or one the relay plugin lets relay. Recipients at the domains in host_list, host_list_regex and local_domains are not.
It never makes Haraka wait long: each recipient waits at most 3 seconds, kept under Haraka’s hook timeout, and a slower check finishes in the background for the next message.
The cache, a limit per sender, a daily limit for all senders together and the key’s daily credit cap bound what it spends. An answer from the cache costs nothing.
The plugin sends only each outside recipient’s address, in the body of a request, never in a URL. Its log lines hold short hashes, never an address or the key.
region = eusends the checks to our EU host.To switch it off, remove
email-validationfromconfig/pluginsand restart Haraka: mail flows as before.
Connect Haraka.
Test it on our sandbox addresses for free, then on your own contacts.
Updated · Maintained by: Email Validation LLC