# Haraka Integration: Email Validation

URL: https://email-validation.org/integrations/haraka/
Updated: 2026-11-30

> Documentation index: https://email-validation.org/llms.txt

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 guide](https://email-validation.org/docs/guides/haraka/) [Get an API key](https://email-validation.org/signin/)

- Status: Setup guide
- One zip: the npm package haraka-plugin-email-validation and its settings file

**config/plugins** Haraka 3 on Node.js 22 or 24

/etc/haraka/config/plugins

```text
# one line, anywhere: its hooks run before the other plugins by priority
email-validation
```

## 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**: 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](https://email-validation.org/app/api-keys/) made for it, with a [daily credit cap](https://email-validation.org/docs/authentication/#limits).
- **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](https://email-validation.org/docs/guides/haraka/)

## 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](https://email-validation.org/docs/guides/haraka/), which stays the reference when a step does not match what you see.

1. **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.
2. **Install the package**: Unzip it, run `npm pack` in its folder and `npm install --ignore-scripts` the tarball in your Haraka folder, then copy `config/email-validation.ini` into Haraka's `config/`.
3. **Add the key**: Put the key on the `api_key` line and make the file readable by Haraka's group only (`chmod 640`), or set `EV_API_KEY` for the Haraka process.
4. **Turn it on**: Add `email-validation` to `config/plugins` and restart Haraka. The log says `settings loaded`.
5. **Try it**: Try `no_mailbox@sandbox.email-validation.org` as the recipient in a session that logs in and ends after `RCPT 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 = eu` sends the checks to our [EU host](https://email-validation.org/docs/eu-data-residency/).
- To switch it off, remove `email-validation` from `config/plugins` and restart Haraka: mail flows as before.

## Related

- [The full Haraka setup guide](https://email-validation.org/docs/guides/haraka/)
- [What gets checked, and what does not](https://email-validation.org/docs/guides/haraka/#scope)
- [Log and reject modes](https://email-validation.org/docs/guides/haraka/#modes)
- [What happens when a check fails](https://email-validation.org/docs/guides/haraka/#failures)
- [Plesk integration](https://email-validation.org/integrations/plesk/)
- [Postfix integration](https://email-validation.org/integrations/postfix/)
- [rspamd integration](https://email-validation.org/integrations/rspamd/)
- [Sendmail integration](https://email-validation.org/integrations/sendmail/)
- [All integrations](https://email-validation.org/integrations/)
