microlinkhq /free-email-domains
+30,000 free and disposable email domains in a single list, validated against DNS every day.
★ 299⑂ 48👁 5⑃ 73● 14▤ 291
299
stars
48
forks
5
watchers
73
prs
14
issues
291
releases
README
free-email-domains
Free and disposable email domains in a single list, validated against DNS every day.
Highlights
- 30,000+ domains. Free providers (Gmail, Yahoo, Outlook and thousands of regional ones) and disposable providers (Mailinator, Temp Mail and the like) together.
- Six sources plus a curated list. Merged, deduplicated and lowercased.
- Validated against DNS. A domain is removed when its DNS records say it cannot receive email.
- Updated every day. A new version is published whenever the list changes.
- Zero dependencies. It is a JSON array of strings, with TypeScript types.
Why use it
- Block temporary or throwaway inboxes during signup.
- Tell personal emails from work emails to qualify leads.
- Reduce fake form submissions.
- Keep CRM and email workflows cleaner.
Install
bash
$ npm install free-email-domains --save
Usage
The module exports an array of lowercase domains:
js
const freeEmailDomains = require('free-email-domains')
freeEmailDomains.includes('gmail.com') // = true
freeEmailDomains.includes('mailinator.com') // = true
freeEmailDomains.includes('your-company.com') // = false
It works the same with ES modules:
js
import freeEmailDomains from 'free-email-domains'
Checking an email address
Create a Set once to get constant time lookups, then compare the part after the last @ in lowercase:
js
const freeEmailDomains = new Set(require('free-email-domains'))
const isFreeEmail = email = {
const domain = email.slice(email.lastIndexOf('@') + 1).toLowerCase()
return freeEmailDomains.has(domain)
}
isFreeEmail('[email protected]') // = true
isFreeEmail('[email protected]') // = true
isFreeEmail('[email protected]') // = false
Domains are matched exactly: gmail.com is listed, mail.gmail.com is not.
Without Node.js
The list is a plain JSON file, so any language can use it:
bash
$ curl -sL https://cdn.jsdelivr.net/npm/free-email-domains/domains.json
How the list is built
The list is rebuilt every day from these sources:
- HubSpot free domains – free email providers.
- castle/disposable-email-domains – disposable providers.
- disposable-email-domains/disposable-email-domains – disposable providers.
- groundcat/disposable-email-domain-list – disposable providers, MX validated.
- 7c/fakefilter – disposable providers observed in the wild.
- unkn0w/disposable-email-domain-list – disposable providers.
- A curated list of providers missing from the sources above, at scripts/sources.mjs.
Then every domain coming from a source is checked against DNS, asking two public resolvers (Cloudflare and Google):
| DNS answer | Result |
| --- | --- |
| It has MX records | kept |
| It has no MX records but it has an A or AAAA record (implicit MX) | kept |
| It publishes a null MX | removed |
| It does not exist, or it has no MX, A or AAAA record | removed |
| Timeout or server failure | unchanged from the previous scan |
A domain is only removed when both resolvers agree it cannot receive email. Removed domTop issues
Latest release
v1.16.17 v1.16.17 2026-11-27Full Changelog: https://github.com/microlinkhq/free-email-domains/compare/v1.16.16...v1.16.17