Mail servers and panels
Sendmail integration
A mail filter lets a Sendmail 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 Sendmail carries on and the mail goes out as usual.
Read the full setup guideGet an API key
- Setup guide
- One zip: the ev-milter filter, the ev-helper daemon and one sendmail.mc line
dnl below your other INPUT_MAIL_FILTER lines; no F= flag, so a filter that is down is skipped
INPUT_MAIL_FILTER(`ev-milter', `S=local:/run/ev-milter/ev-milter.sock, T=C:5s;S:5s;R:10s;E:30s')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 hosting providers who run Sendmail as the server their users send through, and want to see, and if they choose refuse, the mail addressed to mailboxes that do not exist.
- You need
- A Sendmail 8.14 or later server with milter support that you are root on, with Python 3 (standard library only: no libmilter or pymilter) and systemd 247 or later, 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 and Sendmail’s queue id, so you learn which senders reach addresses that do not exist before you change anything.
Refuse what you choose
With
mode = reject, an invalid recipient whose reason you list is refused at RCPT TO with a 550, and disposable ones too if you ask. The sender sees it at once instead of a bounce later, and the other recipients still get the message.Protect the server’s name
Mail to addresses that do not exist is what mailbox providers count against a sending server. Reject mode keeps that mail from leaving, for when your reputation matters more 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 and make a key
There is no package repository yet: download ev-sendmail-1.0.0.zip from the guide, which unpacks into a folder ev-sendmail/. Create an API key for the server with Validate addresses and a daily credit cap.
Start the helper
Put the key in
/etc/ev-helper/api-keyat a hidden prompt, copyev_helper.pyand its settings into place, create the groupev-helper-clientswithsystemd-sysusers, and enableev-helper.socketwith the drop-in that gives its socket to that group.Start the filter
Copy
ev_milter.pyandev-milter.confinto place, add your relay hosts, run it with--check-config, then enableev-milter.socket.--test no_mailboxasks about a free test address and sends no mail.Add the line to sendmail.mc
Add the
INPUT_MAIL_FILTERline below any others, rebuildsendmail.cfand restart Sendmail.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, this machine, or one of the relay hosts you list. Recipients Sendmail delivers itself and the domains you skip are not.
It never makes Sendmail wait long: the filter waits at most 4 seconds for an answer, and when it is stopped or slow Sendmail skips it, because its line has no F= flag.
The helper’s 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 helper sends only each outside recipient’s address, in the body of a request, never in a URL. The filter has no network and never sees the key; both logs hold short hashes, never an address or the key.
region = eusends the checks to our EU host.To switch it all off at once, run
systemctl stop ev-milter.socket ev-milter.service: Sendmail goes on delivering as before.
Connect Sendmail.
Test it on our sandbox addresses for free, then on your own contacts.
Updated · Maintained by: Email Validation LLC