360 Secure SkillHub
360 安全技能中心

Email Validator

通过 Python 脚本对邮箱地址做多层校验:RFC 5322 语法检查、DNS MX 记录查询、80 余种一次性邮箱识别和常见域名拼写纠错;支持命令行传入单个或多个地址、从文本文件批量读取,并可输出 JSON,无需 API 密钥。

分类:效率
johnnywang2001
johnnywang2001
热度 33.50
最近更新 2026-05-11 17:34:47

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add johnnywang2001/jrv-email-validator
兼容性
通用兼容
联网要求
需要联网
数据出网
可选出网
Metadata
name
email-validator
description
Validate email addresses with syntax checks (RFC 5322), MX record verification, disposable/temporary email detection, and common typo suggestions. Use when validating user signups, cleaning email lists, checking deliverability, or detecting throwaway addresses. Supports batch validation from file. No API keys required.

Email Validator

Multi-layer email validation: syntax, DNS, disposable detection, typo correction.

Quick Start

# Validate a single email
python3 scripts/email_validate.py user@example.com

# Validate multiple emails
python3 scripts/email_validate.py user@gmail.com admin@company.org test@mailinator.com

# JSON output
python3 scripts/email_validate.py user@example.com --json

# Batch validate from file
python3 scripts/email_validate.py --file emails.txt

# Skip DNS checks (syntax + disposable only)
python3 scripts/email_validate.py user@example.com --no-dns

Validation Checks

  1. Syntax — RFC 5322 compliance (local part, domain, length limits)
  2. MX Records — DNS lookup to verify the domain accepts email
  3. Disposable Detection — Flags 80+ known throwaway email providers
  4. Typo Suggestion — Catches common misspellings (gmial.com → gmail.com)

Flags

  • --json — Machine-readable JSON output
  • --file, -f <path> — Read emails from file (one per line)
  • --no-dns — Skip MX record checks
  • --no-disposable — Skip disposable email check

Exit Codes

  • 0 — All emails valid
  • 1 — One or more emails invalid