跳到内容

Mail Validator – Disposable & Fake Address Blocker

v0.8.0

kimpenhaus · 2006年2月13日 上架

Stops spam from disposable and fake email addresses in comments, registrations and contact forms: checks syntax, mail server, mailbox and blocklist.

正在使用
10+
评分
暂无
累计下载
3,888
最近更新
2026年11月19日
需要 WordPress 6.0+已测试到 7.1.5PHP 7.4+

贡献者

截图

The settings: which checks run, the mailbox check in the background, your own blocklist, registrations and contact forms.
The settings: which checks run, the mailbox check in the background, your own blocklist, registrations and contact forms.
A Contact Form 7 form refuses a disposable email address.
A Contact Form 7 form refuses a disposable email address.
A registration with a disposable email address is refused.
A registration with a disposable email address is refused.

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 or sends a Contact Form 7 form. A comment with an address that fails a check is moved to spam for moderation; a registration is refused, and a form asks for a different address.

Checks, in this order:

  1. Your blocklist – your own list of regular expressions, for example @spam\.example$.
  2. Disposable email services – more than 10,000 known throw-away domains (mailinator, 10minutemail, …), updated with every plugin release.
  3. Syntax – the address must be well-formed.
  4. Mail server – the domain must have a mail server (MX record) or at least an address record.
  5. Mailbox – 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. By default it runs in the background, so commenters never wait for a slow mail server.

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.

Works with

  • WooCommerce – customer accounts created on the “My account” page or during checkout (with Check registrations)
  • Multisite – sign-ups on the network (with Check registrations)
  • Contact Form 7 – the email fields of all forms (with Check Contact Form 7)
  • Your own forms – see wp_mail_validator_is_valid_email() below

Functions for themes and plugins

  • wp_mail_validator_is_valid_email( $email ) – whether the address passes the checks, with your settings. Rejected addresses are counted. Also available as a filter that is safe to use when the plugin is not active: apply_filters( 'wp_mail_validator_is_valid_email', true, $email )
  • 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 – of a commenter, a new user or the sender of a contact form – the plugin connects to the mail infrastructure of the address’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.
  • Port test (only if “Check the mailbox” is on) – at most once a day it opens a connection to the mail server of gmail.com on port 25 and closes it right after the greeting, to find out whether your host allows outgoing SMTP connections. No data is transmitted.

No data is sent to the plugin author or any other third party.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums