Mail servers and panels
rspamd integration
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 guideGet an API key
- Setup guide
- One zip: the plugin, its settings and two helper lines
# 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 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.
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_INVALIDorEV_RCPT_DISPOSABLEa 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, which stays the reference when a step does not match what you see.
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.
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.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.Add the plugin
Copy
email_validation.luato/etc/rspamd/plugins.d/, append its settings section to/etc/rspamd/rspamd.conf.local, runrspamadm configtestand reload rspamd.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 listsEV_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 = euin the helper sends the checks to our EU host.The plugin has not yet run under rspamd itself; the helper it asks is tested. Try it on a test server first.
Connect rspamd.
Test it on our sandbox addresses for free, then on your own contacts.
Updated · Maintained by: Email Validation LLC