EmailFilter

EmailFilter vs AfterShip

A Go library for email verification, compared with EmailFilter on size, memory, speed, accuracy and features.

5 MBofficial image, signed
1.4×less memory at idle
+3checks on by default: SMTP, catch-all, domain age
40 / 40addresses judged right, AfterShip 38

Choose EmailFilter if

  • You want a service, not a library. Signed images for amd64 and arm64, an API key, rate limits and documentation.
  • You want the mailbox checked. SMTP and catch-all detection are on by default; AfterShip's API server does not turn them on.
  • New domains matter. EmailFilter reads the registration date from RDAP and WHOIS and scores new domains down.
  • You filter mail too. The built-in Postfix policy service rejects bad senders in Postfix and Proxmox Mail Gateway.

Choose AfterShip email-verifier if

  • Your app is written in Go and you want the checks in process, as a library.
  • You need typo suggestions such as gmial.com to gmail.com, free-provider and role-account flags, which the library offers.
  • Speed of the first check is all that matters and you do not need the mailbox or domain age checked.

Measured side by side

EmailFilter 2.0.1 and AfterShip email-verifier 1.5.0's API server, built from source, checking the same 40 addresses on the same server. Bars are drawn to scale.

Memory at idle smaller is better
  • EmailFilter11.5 MB
  • AfterShip16.5 MB
Repeat checks per second bigger is better
  • EmailFilter19,952
  • AfterShip1,436
Addresses judged right bigger is better
  • EmailFilter40 of 40
  • AfterShip38 of 40
EmailFilterAfterShip email-verifier
Image4.9 MB download, 13.2 MB unpackedNo official image; 9.2 MB binary
Memory at idle11.5 MB16.5 MB
Memory under load25 MB33 MB
Repeat checks, 10 at a time19,952 req/s, p99 1.6 ms1,436 req/s, p99 11.5 ms
First check, all addresses, median494 ms7 ms
Labelled addresses judged right40 of 4038 of 40

AfterShip accepted example.com and example.org, which take no mail. Its API server answers invalid syntax with a plain-text message and a domain that does not exist with HTTP 500; both count as rejected here. Its first check is the fastest because it skips SMTP and domain age. Measured on 30 November 2026 on a shared 8-core server, each tool with its default settings. Method, addresses and raw answers. AfterShip is a trademark of its owners; this page is not affiliated with AfterShip.

Features

What each one does out of the box, with its default settings.

EmailFilterAfterShip email-verifier
Disposable domainsYes, 109k, subdomains includedYes, built in
MX recordsYesYes
Null MX (domains that take no mail)RejectedAccepted
SMTP mailbox checkOnIn the library, off in the API server
Catch-all detectionOnIn the library, off in the API server
Domain age (RDAP and WHOIS)YesNo
Typo suggestionsNoOptional
Free provider and role account flagsNoYes
Your own whitelist and blacklistYesNo
A score from 0 to 100 and a verdictYesFields only
Postfix policy serviceYesNo
Official container imageYesNo

How they are built

EmailFilterAfterShip email-verifier
Written inGoGo
Runs asOne containerA library; an example API server you build
DatabaseNoneNone
Caches answersYes: MX, SMTP and domain ageNo

Switching from AfterShip email-verifier

Both answer over HTTP with JSON, so switching means changing one request and one field in your code. You can run both side by side while you compare.

  1. Start EmailFilter next to it with docker compose up -d. Installation
  2. Send the same addresses to POST /filter-email with {"email": "…"} instead of GET /v1/{email}/verification.
  3. Read verdict, or the fields you used before: disposable, mx_exists and smtp_valid carry the same meaning.
  4. Keep the library for typo suggestions if you use them; the two work fine together.

Questions

Is EmailFilter a replacement for the AfterShip library?

For a service your apps call over HTTP, yes. If you embed the library in a Go program and want no network hop, keep the library.

Why is AfterShip's first check so much faster?

Its API server does not check the mailbox over SMTP or look up the domain age, which are the slow parts. With those off, EmailFilter answers lists-only checks just as fast.

Does EmailFilter suggest corrections for typos?

Not yet. It rejects domains without mail servers, which catches most typos such as gmial.com.

Keep fake addresses out before they sign up.

Free and open source. No sign-up, no API key, no address leaves your server.

10test@mailinator.comrejectedDisposable email domain 30xkcdqwrt@nonexistent.examplerejectedNo mail servers 90john.smith@gmail.comacceptedMailbox exists, established domain