Prosphere

NotesGuides

Contact Form Email Not Arriving? SPF, DKIM and DMARC Explained

Contact form messages that never reach your inbox are often an email authentication problem. What SPF, DKIM and DMARC are and how to check each one.

In this post

When a contact form says "message sent" but the inbox stays empty, the form usually did its job. The browser sent the data to the form's action URL, and the server behind that URL accepted it. The message can still be rejected or filtered by the receiving mail provider. Three DNS-based checks decide whether that provider trusts mail that claims to come from your domain: SPF, DKIM and DMARC. This post explains each one, shows where they fit between submit and inbox, and gives a checklist for finding the step where the message stopped.

Why a contact form email can vanish

A success message on the page tells you about the web request, not about the email. The form tool accepted the submission. Whether an email was generated, sent, accepted by the recipient's mail server and delivered to the right folder are four separate steps, and the page only confirms the first.

That is why the symptom looks the same for very different causes. A wrong recipient address, a sending server that is not allowed to send for your domain, a missing signature and a strict policy that rejects mismatched senders all end with an empty inbox. The useful question is which step failed, and the three authentication checks cover the most common failures at the receiving end.

What happens between submit and inbox

A typical path has several hops. The visitor's browser posts the form to a handler. That handler, or a form service behind it, creates an email and hands it to a sending server. The sending server connects to the recipient's mail server and delivers the message. The receiving provider then checks who sent it and decides between the inbox, the spam folder or a rejection.

SPF, DKIM and DMARC all concern the last part of that path. They let the sender prove a link to a domain, and they let the receiver check that claim against the From address the visitor sees, which in a form notification is usually your own domain. If the proof is missing or does not match, the receiver can drop the message without telling you.

SPF: which servers may send for your domain

SPF is the first check, and it is about which servers are allowed to send mail for your domain. Google's sender guidelines state the baseline in plain terms: "Set up SPF or DKIM email authentication for your sending domains." Every sender needs at least one of the two.

Google also says that the SPF record "should include all email senders for your domain," and that third-party senders missing from it are more likely to be marked as spam. This is the point where a form tool often causes trouble. If the form service sends mail on your behalf, its servers must be listed in your SPF record, or the check fails for those messages.

Check whether the sending server for your notifications is one you have listed. If you do not know which server sends the form email, the form tool's documentation or the message headers will say.

DKIM: a signature on the message

DKIM attaches a cryptographic signature to each message, and the public key that verifies it is published in DNS. The receiver fetches the key for the signing domain and checks the signature against the message content. A changed message fails the check.

Google's guidelines set a key length. "Sending to personal Gmail accounts requires a DKIM key of 1024 bits or longer." The page also recommends a 2048-bit key "if your domain provider supports this." If your form service offers DKIM for your own domain, a 1024-bit key is the minimum for Gmail recipients and 2048 is the recommendation.

A missing DKIM record for the sending domain is one of the simplest reasons for a silent failure. The form tool will often explain which DNS records to add for DKIM, and the record name and value are specific to that service.

DMARC and alignment with the From domain

DMARC ties SPF and DKIM to the visible From address. Google's page puts the requirement this way: "For direct email, the domain in the sender's From: header must be aligned with either the SPF domain or the DKIM domain." Alignment means the domain that passed SPF or DKIM matches the domain the reader sees in From.

This is where many form setups break. A message can pass SPF for the form tool's domain and still fail DMARC, because the From address shows your domain. The authentication passed, but for a different domain than the one the reader sees.

DMARC also has a policy. Google notes that for bulk senders, a DMARC policy "can be set to none." Check your own DMARC record to see which policy your domain publishes.

Sending as your own domain versus from the form tool's domain

There are two common patterns. In the first, the form tool sends from its own domain, and your notification arrives with its From address. Authentication then depends on that tool's domain, which you do not control. In the second, the tool sends with your domain in the From address, and you publish records that allow it. The second pattern gives you control over the records, but only if you set them up correctly.

Neither pattern is automatically better. The first is simpler to start with and the failures are harder to fix yourself. The second needs DNS access and the records to match the tool's documentation. What matters for diagnosis is knowing which pattern you have, because the checks are different.

Google's bulk sender rules apply above 5,000 messages a day to Gmail. A typical contact form sends far fewer messages, so the bulk requirements matter less than the basic SPF and DKIM setup and the alignment rule. The threshold is worth knowing, but it is not the first thing to check for a small site.

A checklist to find where the message stopped

Work through the chain in order and note what you find at each step.

  • Confirm the recipient address in the form tool's settings. A typo or an old address explains an empty inbox with no authentication problem at all.
  • Check the spam and promotions folders, and search for the sender name. The message may be there.
  • Find the form tool's sending domain and check whether it has a published SPF record and DKIM record.
  • Look at the headers of a test message. The Authentication-Results line shows the SPF, DKIM and DMARC outcomes as the receiving server recorded them.
  • Compare the domain in the From header with the domain that passed SPF or DKIM. If they differ and no alignment exists, DMARC will fail.
  • Check the DMARC record of your From domain and its policy. Note which policy it publishes.
  • If the message never appears in the headers at all, the problem is earlier in the chain, at the form tool or its outgoing mail setup.

Each step either confirms the message reached a mailbox or names the place where it did not. For the setup side of a form backend, see how a form sends its data, and for the mail destination, see how the form reaches your inbox. If you want a direct answer for your own domain, contact the form provider or your DNS administrator with the header output, and contact us about the form.

Sources

Join the waitlist

Join the Prosphere waitlist for a form backend and shared inbox for many websites, or write to info@prosphere.app. One message when it opens.

Waitlist