SMTP and DNS
Most form failures FormVigilant finds are not in the form at all. They happen after WordPress hands the message on: in the SMTP plugin, at the email provider, or at the receiving server because the sending domain is not authenticated.
How a notification leaves WordPress
- The form plugin calls
wp_mail(). - Without an SMTP plugin, WordPress sends through PHP's
mail()and the host's local mail server. Many hosts restrict or block this, and receiving servers increasingly reject it because it is not authenticated for the domain in the From address. - With an SMTP plugin (WP Mail SMTP, FluentSMTP, Post SMTP and others), the message goes to a provider such as Postmark, SendGrid, Mailgun, Amazon SES, Brevo, Google Workspace or Microsoft 365, which then delivers it.
FormVigilant's L3 confirms step 3 was accepted; L4 confirms the message actually arrived at an independent mailbox.
Use an SMTP plugin with a transactional provider
For agency-managed sites this is the single most effective fix. A transactional provider gives you authenticated sending, a log of every message and bounce events. FormVigilant reads those logs where it can, so a rejected message shows the provider's own error.
SPF
SPF is a TXT record on the sending domain listing which servers may send mail for it. Check:
- There is exactly one SPF record. Two
v=spf1records make SPF fail for everyone. - The provider's include is present, for example
include:spf.mtasv.netfor Postmark orinclude:sendgrid.netfor SendGrid. - The record stays under 10 DNS lookups. Each
include:counts, including nested ones.
DKIM
DKIM signs each message with a key published in DNS, usually as a CNAME or TXT record at a selector such as pm._domainkey or s1._domainkey. It is the record most often lost when a client moves DNS to a new registrar or to Cloudflare, because it was set up once by whoever configured the provider and never documented.
When DKIM is missing, mail may be accepted by the provider (L3 passes) and then quietly rejected or junked by Gmail or Microsoft (L4 fails with CATCH_NOT_RECEIVED).
DMARC
DMARC is a TXT record at _dmarc.<domain> that tells receivers what to do when SPF and DKIM do not align with the From domain. Start with p=none and a reporting address, confirm all legitimate mail passes, then move to p=quarantine. Since 2024 Gmail and Yahoo require a DMARC record for bulk senders, and unauthenticated mail from any sender is treated with more suspicion.
The From address
Send notifications from an address on the domain you authenticated, such as website@clientdomain.com. Putting the visitor's address in From (a common form default) breaks SPF and DMARC alignment. Put the visitor's address in Reply-To instead.
Reading FormVigilant evidence
- L3 failed, WP_MAIL_FALSE: the SMTP plugin is misconfigured or missing. Read the plugin's log.
- L3 failed, SMTP_REJECTED: the provider refused the message. The evidence shows its response code;
535means authentication failed. - L4 failed, CATCH_NOT_RECEIVED: accepted but never arrived. Check the provider's activity log for a bounce or suppression, then SPF, DKIM and DMARC.
- L4 passed: the headers on the run page show the SPF, DKIM and DMARC results our server saw. A pass with
dkim=noneworks today but is at risk.
Before a DNS migration
Send this list to whoever is moving DNS: copy every TXT and CNAME record, especially SPF, any _domainkey records and _dmarc; keep MX records unchanged unless mail is moving too; and lower TTLs a day before the switch. Run a manual FormVigilant test immediately after.