Mail Validator – Disposable & Fake Address Blocker
Mail Validator (formerly WP-Mail-Validator) checks the email address of everyone who comments on your site and, if you like, of everyone who registers. A comment with an address that fails a check is moved to spam for moderation; a registration is refused. Checks, in this order: Your blocklist – you
Mail Validator (formerly WP-Mail-Validator) checks the email address of everyone who comments on your site and, if you like, of everyone who registers. A comment with an address that fails a check is moved to spam for moderation; a registration is refused.
Checks, in this order:
- 01Your blocklist – your own list of regular expressions, for example @spam\.example$ .
- 02Disposable email services – more than 10,000 known throw-away domains (mailinator, 10minutemail, …), updated with every plugin release.
- 03Syntax – the address must be well-formed.
- 04Mail server – the domain must have a mail server (MX record) or at least an address record.
- 05Mailbox – asks the mail server whether the mailbox exists. Only an explicit “recipient unknown” counts as spam; servers that accept any address (catch-all), greylist or refuse to answer never cause false positives. Results are cached, and the check is skipped automatically if your host blocks port 25.
Comments of logged-in users are never checked. Pingbacks and trackbacks carry no email address; you can choose to accept them or move them to the trash.
Theme functions
- wp_mail_validator_info_label( $before, $after ) – a “protected by” label with the number of blocked spam attacks
- wp_mail_validator_fended_spam_attack_count() – the number of blocked spam attacks
- wp_mail_validator_version() – the plugin version
External services
To validate an address, the plugin connects to the mail infrastructure of the commenter’s domain:
- DNS – it looks up the MX, A and AAAA records of the domain, using your server’s resolver.
- SMTP (only if “Check the mailbox” is on) – it connects to the domain’s mail server on port 25 and asks whether it accepts email for the address and for a random address at the same domain (to detect servers that accept anything). The mail server receives your site’s host name and the addresses being checked. No email is sent.