EmailFilter vs AfterShip
A Go library for email verification, compared with EmailFilter on size, memory, speed, accuracy and features.
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.
| AfterShip email-verifier | ||
|---|---|---|
| Image | 4.9 MB download, 13.2 MB unpacked | No official image; 9.2 MB binary |
| Memory at idle | 11.5 MB | 16.5 MB |
| Memory under load | 25 MB | 33 MB |
| Repeat checks, 10 at a time | 19,952 req/s, p99 1.6 ms | 1,436 req/s, p99 11.5 ms |
| First check, all addresses, median | 494 ms | 7 ms |
| Labelled addresses judged right | 40 of 40 | 38 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.
| AfterShip email-verifier | ||
|---|---|---|
| Disposable domains | Yes, 109k, subdomains included | Yes, built in |
| MX records | Yes | Yes |
| Null MX (domains that take no mail) | Rejected | Accepted |
| SMTP mailbox check | On | In the library, off in the API server |
| Catch-all detection | On | In the library, off in the API server |
| Domain age (RDAP and WHOIS) | Yes | No |
| Typo suggestions | No | Optional |
| Free provider and role account flags | No | Yes |
| Your own whitelist and blacklist | Yes | No |
| A score from 0 to 100 and a verdict | Yes | Fields only |
| Postfix policy service | Yes | No |
| Official container image | Yes | No |
How they are built
| AfterShip email-verifier | ||
|---|---|---|
| Written in | Go | Go |
| Runs as | One container | A library; an example API server you build |
| Database | None | None |
| Caches answers | Yes: MX, SMTP and domain age | No |
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.
- Start EmailFilter next to it with
docker compose up -d. Installation - Send the same addresses to
POST /filter-emailwith{"email": "…"}instead ofGET /v1/{email}/verification. - Read
verdict, or the fields you used before:disposable,mx_existsandsmtp_validcarry the same meaning. - 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.