Fast, local email validation for CLI use.
Deliverability here means: valid syntax and the domain has MX records (or A/AAAA records if no MX records exist). This is cheap, fast, and reliable without contacting mail servers.
Optional SMTP mailbox checks are available, but can be slow and may return false negatives because many servers block or greylist probes.
cd /Users/sash/p/email-validator
make buildOr install to your Go bin:
make installSingle address:
./email-validator test@example.comFrom a CSV file:
./email-validator --input users.csv --format csv --column emailFrom Markdown:
./email-validator --input list.md --format mdFrom stdin:
cat emails.txt | ./email-validatorOutput formats:
./email-validator --input users.csv --output jsonSMTP checks (optional):
./email-validator --input users.csv --smtpvalid: syntax-only checkdeliverable: DNS deliverability (or SMTP mailbox check when--smtpis set)reason:mx,a/aaaa,smtp-accepted,smtp-rejected,no-mx-or-a, etc.