A client calls because the website's contact form has gone quiet. The page is not broken: it still shows the green thank-you message. Say a 9-person landscaping company that used to get four or five inquiries a week through the form and now gets none, while the phone still rings. Somebody filled it in on Tuesday, mentioned it on the phone on Thursday, and nothing ever arrived.
The form itself is usually fine. The mail it generates is the problem. The website hands out a message that claims your domain in the From line, sent from a server your domain never authorized, and the receiving side treats it the way it treats anything else that does that. Google's own help page for this exact symptom says it in fewer words: contact form messages are typically authenticated with SPF, SMTP relay or DKIM, and you have to find out which one your form provider uses before you can fix anything.
First question: did it never send, or never arrive?
Those two look identical from the owner's chair, and the fixes have nothing in common. So we split the evidence into three piles before touching DNS.
- It never left the website. The plugin or script failed silently and the page showed success anyway. The form's own mail log, if it keeps one, is the only witness.
- It left and was refused. The receiving server answered with a 5xx code. The bounce went back to whatever the website used as the envelope sender, which is often a mailbox nobody has ever opened, something like
www-data@srv123.examplehost.net. - It arrived and was filed out of sight. Spam, a filter somebody wrote years ago, or a group that forwards nowhere.
When the destination is Google Workspace, Email Log Search settles which pile you are in. It sits under Reporting in the Admin console, it needs the Gmail Settings administrator privilege, and a search needs the recipient address plus the message ID. Delivery status is not available for messages older than 30 days, so submit a fresh test rather than hunting for August's inquiry. If the log has nothing, the message never reached Google and the work is on the website side. If it shows 550 5.7.26, the form's mail is unauthenticated, and Google's contact form page reads that as an SPF record that does not cover every sender for your domain.
Why form mail fails authentication
Three mechanisms, in the order they bite.
SPF checks the envelope, not the From line. SPF authorizes a sending IP for the domain in the SMTP MAIL FROM. A site on shared hosting usually hands the message to the local mail daemon, which sends it from the hosting server's IP under the hosting server's own domain. Your record never mentioned that server, and the reader of your mail never sees that domain, which is why the failure is invisible from the inbox.
DMARC wants the identifiers to line up. Under RFC 7489, a DMARC pass needs an SPF or DKIM pass whose domain is aligned with the domain in the From header. The aspf tag defaults to relaxed, so the two only need the same organizational domain, but relaxed is not generous enough to help here: an SPF pass for your hosting provider's domain does nothing at all for yours.
Every sender needs SPF or DKIM, not just the big ones. Google's email sender guidelines require all senders to the personal Gmail side to set up SPF or DKIM, with the requirements in effect since 1 February 2024, and bulk senders, meaning roughly 5,000 messages or more to Gmail accounts in 24 hours, to have SPF, DKIM and DMARC. A form that sends five messages a day is not a bulk sender. It is still a sender.
Microsoft puts a sharper label on the same message. When the From domain is one of the accepted domains in the tenant and the message fails DMARC against a reject or quarantine policy, Microsoft's composite authentication reason code 010 records it as spoofing of your own organization's domain, with 601 as the implicit authentication equivalent. Your website is, as far as the filter can tell, impersonating you.
The From line mistake almost every form makes
Forms are often configured to put the visitor's address in the From header so that hitting reply answers the person who wrote in. It is a thoughtful idea and it makes the problem worse. Now the message claims a domain you have no control over, usually a large consumer mailbox provider with its own published policy, sent from a server that domain has certainly not authorized.
RFC 5322 is clear about which field owns which job. From names the author of the message. Reply-To names the address the author would like replies sent to, and when it is present replies go there instead. That is exactly the behaviour the form wanted, available without claiming somebody else's domain.
From: Website form <forms@example.com>
Reply-To: Ana Morales <ana@visitordomain.example>
Subject: New inquiry from the contact form
Put a mailbox or an alias on your own domain in From, the visitor in Reply-To, and the visitor's address in the body as well, because some clients drop Reply-To on a forward.
Four ways to send form mail, and what each one authenticates
This is the decision that fixes the problem, so it is worth making it deliberately rather than accepting whatever the plugin defaulted to.
| Route | How it authenticates | What you get | When we use it |
|---|---|---|---|
mail() on shared hosting | Nothing of yours. The hosting server's IP and its own domain | No alignment with your domain, plus a provider cap: Hostinger documents 10 messages a minute and 100 a day for unauthenticated sending | Never, for anything a client needs to receive |
smtp.gmail.com with an app password | A Workspace mailbox and an app password, port 465 for SSL or 587 for TLS | Mail sent as that mailbox and signed by Google, so SPF and DKIM both align | One small site, one form, no server of its own |
smtp-relay.gmail.com | A Workspace sign-in, or a static IP added to the relay setting in the Admin console, on port 25, 465 or 587 | A relay for apps and servers, up to 10,000 recipients per user per day and 100 per transaction | Sites on their own VPS, plus the printer and the CRM that need the same route |
aspmx.l.google.com on port 25 | No authentication at all. The sending IP has to be on the allowlist | Delivery only to Gmail and Workspace recipients | Only when the device or app cannot do SSL |
| A sending provider's API on a subdomain | An API key, plus DKIM records the provider gives you to publish | Your own DKIM signature and a reputation kept separate from staff mail | Forms that also send receipts, quotes or notifications at volume |
The relay setting is managed at the top-level organization only, and app passwords require 2-Step Verification on the account first. Both of those surprise people mid-change, so we check them before promising a timeline.
How we move a form onto an authenticated sender, in order
- Inventory what sends as your domain. The form is rarely alone. The invoicing app, the booking page, the newsletter and the printer usually turn up in the same hour.
- Pick the route from the table above and write down which mailbox or alias the form will send as. A dedicated alias such as
forms@keeps the volume readable later. - Put the credentials in the form's own settings, not in the theme or in a file somebody will overwrite on the next update.
- Fix the headers. Your domain in
From, the visitor inReply-To. - Publish the DNS the route needs. If the provider authenticates by SPF, add its include to the one SPF record on the domain. Google notes that SPF changes can take up to 48 hours to take effect, so do not judge a test five minutes later.
- Send a real submission from outside the company, from a mailbox on a different provider, and read the headers on what arrives.
- Confirm it in the log. Email Log Search for the message ID, delivery status delivered to inbox, not to spam.
example.com. TXT "v=spf1 include:_spf.google.com include:_spf.formprovider.example ~all"
One SPF record per domain, every sender inside it, and the lookup count watched: a form include is a common way to tip a record over the limit, and the symptoms of that are in SPF "too many DNS lookups".
What we check in the month after
- That a test still arrives. One submission a week for the first month, from outside. Plugin updates reset mail settings more often than anyone expects.
- The DMARC reports. If the hosting IP is still showing up as a failing source, something on the site is still sending the old way. The reports are the only place that shows it, and reading them is covered in how to read DMARC aggregate reports.
- The form spam. Once form mail reliably reaches a mailbox, bot submissions reach it too. A captcha or a honeypot on the form keeps the inbox usable and keeps your sending volume honest.
- The reply path. Somebody in the company should reply to a test and confirm it reached the sender, because a broken
Reply-Tolooks exactly like a lead that never answered.
How Guanacos Tech helps
This arrives as a sales problem and turns out to be an authentication problem. We trace one submission from the website to the mailbox, find the pile it lands in, move the form onto a route that signs as your domain, and then check whether the invoicing app and the newsletter have the same defect, which they usually do. The work is a few hours, and the inquiries that were already being sent start landing.
If your form has gone quiet, or you are not sure it was ever working, our email deliverability consulting for small business starts with a 30-minute call to find where your form's mail stops and what it will take to get it into the inbox.
Sources
- Google Workspace Admin Help, Troubleshoot Gmail not getting contact form messages
- Gmail Help, Email sender guidelines
- Google Workspace Admin Help, Send email from a printer, scanner, or app
- Google Workspace Admin Help, Route outgoing SMTP relay messages through Google
- Google Workspace Admin Help, Find messages with Email Log Search
- RFC 7489, Domain-based Message Authentication, Reporting, and Conformance (DMARC)
- RFC 5322, Internet Message Format, section 3.6.2 (From and Reply-To)
- Microsoft Learn, Anti-spam message headers (composite authentication reason codes)
- Hostinger, PHP mail limitation explained: how to improve email delivery with SMTP