# rspamd Integration: Email Validation

URL: https://email-validation.org/integrations/rspamd/
Updated: 2026-11-29

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

A short rspamd plugin checks the recipients of the mail your users send out and adds a symbol for each result. Until you give the symbols a score or turn on refusing it only logs, and when a check cannot be made in time the message goes on as usual.

[Read the full setup guide](https://email-validation.org/docs/guides/rspamd/) [Get an API key](https://email-validation.org/signin/)

- Status: Setup guide
- One zip: the plugin, its settings and two helper lines

**rspamd.conf.local** rspamd 4.3

/etc/rspamd/rspamd.conf.local

```text
# the plugin is in /etc/rspamd/plugins.d/email_validation.lua
email_validation {
  helper_host = "127.0.0.1";
  helper_port = 11339;
  reject = false;
}
```

## 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 who scan their users’ outgoing mail with rspamd and want to see, score or refuse the messages addressed to mailboxes that do not exist.
- **You need**: An rspamd server you are root on, with Python 3 (standard library only, no packages) and systemd for ev-helper, the small daemon of the Exim guide that the plugin asks, 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/rspamd/)

## Typical uses.

- **See who mails dead addresses**: With every score at 0, each checked recipient adds a symbol with its status and reason to rspamd’s history and log, so you learn which messages go to addresses that do not exist before you change anything.
- **Score it like any symbol**: Give `EV_RCPT_INVALID` or `EV_RCPT_DISPOSABLE` a score and your own actions apply, from adding a header to rejecting, together with everything else rspamd knows about the message.
- **Refuse when you choose**: With refusing on, a message with a recipient whose status you list (by default invalid) is refused at the end of DATA. rspamd judges whole messages, so the whole message is refused, for every recipient.

## Set it up. 5 steps.

The short version of the [full setup guide](https://email-validation.org/docs/guides/rspamd/), which stays the reference when a step does not match what you see.

1. **Download the zip and make a key**: There is no package repository yet: download ev-rspamd-1.0.0.zip from the guide, which unpacks into a folder ev-rspamd/. Create an API key for the server with Validate addresses and a daily credit cap.
2. **Set up ev-helper**: Install the helper as the Exim guide says, with no Exim changes, and add its two TCP lines from the zip to `/etc/ev-helper/ev-helper.conf`. It listens on 127.0.0.1 or ::1 only, where every local account can reach it: use it only on a server whose accounts you all trust, never on shared hosting.
3. **Start the helper from boot**: On a server without Exim, add the socket drop-in from the zip. Then run `systemctl enable --now ev-helper.socket ev-helper.service`.
4. **Add the plugin**: Copy `email_validation.lua` to `/etc/rspamd/plugins.d/`, append its settings section to `/etc/rspamd/rspamd.conf.local`, run `rspamadm configtest` and reload rspamd.
5. **Try it without sending**: Scan a saved message with `rspamc --user alice --rcpt no_mailbox@sandbox.email-validation.org`: nothing is delivered, and the result lists `EV_RCPT_INVALID`. Never send a whole message to a test address: it goes out, and the bounce hurts your sender.

## Good to know.

- rspamd scans a whole message after DATA, so this is not a refusal at RCPT TO: for refusing one recipient while the others still get the message, use the Exim or Postfix guide.
- Only mail from a client that logged in is checked, up to 20 recipients a message. Mail arriving for your users is not, unless you change that setting.
- A timeout, an error, a stopped helper, an unknown or an unchecked result never refuses a message: the recipient is marked unchecked and the message goes on.
- The plugin holds no key and asks only the helper on this machine. Its symbol options and log lines hold short hashes, never an address. `region = eu` in the helper sends the checks to our [EU host](https://email-validation.org/docs/eu-data-residency/).
- The plugin has not yet run under rspamd itself; the helper it asks is tested. Try it on a test server first.

## Related

- [The full rspamd setup guide](https://email-validation.org/docs/guides/rspamd/)
- [What gets checked, and what does not](https://email-validation.org/docs/guides/rspamd/#scope)
- [Symbols, scores and refusing](https://email-validation.org/docs/guides/rspamd/#modes)
- [What happens when a check fails](https://email-validation.org/docs/guides/rspamd/#failures)
- [DirectAdmin integration](https://email-validation.org/integrations/directadmin/)
- [Exim and cPanel integration](https://email-validation.org/integrations/exim/)
- [Plesk integration](https://email-validation.org/integrations/plesk/)
- [Postfix integration](https://email-validation.org/integrations/postfix/)
- [All integrations](https://email-validation.org/integrations/)
