How to Improve Email Deliverability: Fix SPF, DKIM and DMARC Issues
Your website sends emails, but customers never receive them—or find them in spam. Discover why website emails fail, how SPF, DKIM and DMARC improve authentication, and how to diagnose and fix delivery problems in WordPress, Joomla and WooCommerce.
Your website sends emails, but customers never receive them—or find them in spam. An order confirmation disappears, a password-reset message never arrives, or a contact form says “sent” even though nobody receives the inquiry.
These failures can cost sales, create support requests and damage trust. They can also be difficult to diagnose: a website reporting that it sent a message does not prove that the recipient's mail server accepted it, much less that it reached the inbox.
This guide shows how to identify where delivery fails, configure SPF, DKIM and DMARC through a DNS control panel, and test WordPress, Joomla and WooCommerce emails—without server command-line tools.
1. Why website emails fail—and why it matters
Imagine a customer places an order on your WooCommerce store. The payment succeeds and the order appears in the dashboard. The customer never receives the confirmation and wonders whether the payment worked. Or a prospective client submits a Joomla contact form, sees a success message and assumes you will respond, while the message never reaches your business inbox.
The consequences go beyond spam folders: missing quotations, lost enquiries, failed password resets, delayed invoices and customers who stop trusting the website. An improperly protected domain can also be impersonated by attackers.
But there is no single cause of “email not received.” Start by distinguishing three stages:
- The application did not successfully hand off the email. Possible causes include a disabled mail feature, incorrect SMTP credentials, connection failures or application errors. SPF and DKIM cannot repair a broken SMTP connection.
- The message was submitted but rejected by a receiving server. Authentication failures, sending reputation, sender policies and invalid recipients can cause rejection. Provider logs and SMTP responses are the best clues.
- The receiving server accepted the message but filtered it. It may land in spam, promotions or another folder. Authentication matters, but content, reputation and recipient preferences also influence placement.
| What you observe | Likely area to investigate | First useful check |
|---|---|---|
| Form says “sent,” but no email arrives | Application or transport | Mail plugin, SMTP logs, recipient address |
| Order confirmations fail, ordinary mailbox email works | Website uses a different sender | WooCommerce mail transport and From address |
| Gmail rejects mail | Authentication or sender-policy requirements | SMTP error and authentication results |
| SPF passes but DMARC fails | Authentication domains do not align | From, Return-Path and DKIM d= domain |
| Messages reach spam | Reputation, content or authentication | Show original, spam complaints, sending history |
| Delivery broke after changing DNS | Incorrect or incomplete DNS setup | SPF, DKIM, DMARC and provider instructions |
Important: SPF, DKIM and DMARC improve authentication and domain protection; they do not guarantee inbox delivery.
2. Know which services send email for your domain
Before editing DNS, list every legitimate sender. A small business may use Google Workspace for employees, a transactional SMTP provider for WordPress, an invoicing platform and a newsletter service.
| Sender | Typical messages | Questions to ask |
|---|---|---|
| Business mailbox | Human replies | Which provider signs these messages? |
| WordPress or Joomla | Contact forms, password resets | Does the site use authenticated SMTP or a mail API? |
| WooCommerce | Order and account emails | Does it use the same mail integration as WordPress? |
| Accounting platform | Invoices | Does it send from your domain or its own? |
| Newsletter service | Marketing campaigns | Which SPF and DKIM records does it require? |
Do not confuse MX records, which route incoming mail, with SPF/DKIM/DMARC, which help authenticate outgoing mail. Changing MX records is generally not part of fixing website sender authentication.
3. SPF: identify authorized sending servers
SPF (Sender Policy Framework) publishes which servers may send email for the domain used in the SMTP envelope. It is a DNS TXT record.
For a domain sending only through Google Workspace, Google's published example is:
Type: TXT
Name: @
Value: v=spf1 include:_spf.google.com ~all
This is not a universal SPF record. Other providers specify different mechanisms and domain names. Use their official instructions.
Add or update SPF in a DNS dashboard
- Open the DNS management panel for the domain's authoritative DNS provider.
- Find existing TXT records containing
v=spf1. - If an SPF record exists, edit it; do not add another SPF record at the same name.
- Include all currently authorized sending services, following their documentation.
- Remove obsolete senders when safe to do so.
- Save and allow for DNS propagation.
- Verify the published result with an online DNS TXT lookup.
Publishing multiple SPF records at the same name can produce an SPF permanent error. SPF also limits DNS-lookup mechanisms; too many nested includes can break evaluation. Avoid copying unrelated sample records.
The ~all qualifier signals soft fail for unlisted senders, whereas -all signals fail. Use the policy appropriate for your verified sending infrastructure.
Limitation: SPF authenticates the envelope sender domain, which may not match the visible From address. That is why DMARC alignment matters.
4. DKIM: add a verifiable signature
DKIM (DomainKeys Identified Mail) adds a cryptographic signature to outgoing messages. The sender signs with a private key, and the receiving server checks a public key published in DNS.
A DKIM DNS name commonly resembles:
google._domainkey.example.com
The value may resemble:
v=DKIM1; k=rsa; p=YOUR_PROVIDER_GENERATED_PUBLIC_KEY
These are illustrations. Never use a placeholder as an actual key.
Example: Google Workspace
- Open the Google Admin console.
- Navigate to Apps → Google Workspace → Gmail → Authenticate email.
- Select the domain and generate a DKIM key using Google's recommended options.
- Copy the exact selector, DNS name and public-key value.
- Create the required DNS TXT record in your DNS dashboard.
- Return to Google Admin and start authentication after the record is available.
- Send a test message and inspect its authentication results.
Other mail services may provide a CNAME rather than a TXT record. Follow the sending provider's instructions exactly. Different sending services can use different DKIM selectors for the same domain.
5. DMARC: connect authentication to your visible From address

DMARC (Domain-based Message Authentication, Reporting and Conformance) checks whether at least one successful SPF or DKIM result is aligned with the domain shown in the visible From address. It also publishes a requested policy for messages that fail.
| DMARC policy | What it requests |
|---|---|
p=none |
Monitoring without requesting quarantine or rejection |
p=quarantine |
Treat failing mail as suspicious |
p=reject |
Reject failing mail |
Start with monitoring while you verify all legitimate senders.
Add a DMARC monitoring record
- Make sure SPF and/or DKIM are working for the relevant sending services.
- Create a mailbox or reporting service for aggregate reports.
- In your DNS panel, create a TXT record with the name
_dmarc. - Enter a monitoring policy, replacing the example domain.
- Save, wait for DNS propagation and verify the record.
Type: TXT
Name: _dmarc
Value: v=DMARC1; p=none; rua=mailto:dmarc@example.com
The complete name is generally _dmarc.example.com. Many DNS panels append the domain automatically, so avoid accidentally entering it twice.
The rua address receives aggregate DMARC reports. These reports help reveal unknown sending sources and authentication failures; they are usually XML and may be easier to analyze with a reporting service. If reporting to an address at a different domain, additional external-report authorization may be required.
6. Why SPF can pass while DMARC fails
Consider this message:
From: orders@example.com
Return-Path: bounce@mailer-provider.net
The mailer may pass SPF for mailer-provider.net. But that domain is different from the visible example.com From domain, so SPF may not satisfy DMARC alignment.
If the same message carries a valid DKIM signature with d=example.com, aligned DKIM can make DMARC pass.
DMARC needs at least one passing and aligned mechanism, not necessarily both. The distinction is essential when diagnosing mail sent through third-party providers.
7. WordPress and WooCommerce: send through an authenticated service
WordPress may use the server's default mail transport. For reliable diagnostics, a supported SMTP or transactional email integration can provide clearer configuration and logs.
- Choose a provider authorized to send using your domain.
- Configure and verify the domain with that provider, including DKIM.
- In WordPress, install a maintained SMTP or provider integration.
- Open the plugin's settings and configure its supported authentication method.
- Set the From address to an address at your verified domain.
- Save and send the plugin's test email.
- Place a test WooCommerce order and check the actual order confirmation.
- Test password-reset and contact-form messages as well.
Do not put the visitor's email address in the From field of a contact-form notification. Use an authenticated website address as From and the visitor's address as Reply-To, when appropriate.
A plugin test email is useful, but a real order confirmation is better evidence that your ecommerce workflow works end to end.
8. Joomla: configure mail through the administration interface
For a Joomla website, the configuration is handled through the administration dashboard, with labels depending on the version:
- Open System → Global Configuration.
- Find the Server section and mail settings.
- Select SMTP when supported and appropriate.
- Enter the mail host, port, encryption and authentication details supplied by your provider.
- Set the From email to an address on your verified domain.
- Save the settings.
- Use a built-in mail test where available.
- Submit a real contact form and inspect the received message.
If mail still fails, examine Joomla's error information and the sending provider's logs. Verify that the SMTP account is permitted to use the chosen From address.
9. Verify delivery without SSH
Use two complementary checks.
Check the DNS records
With your DNS dashboard or an online DNS lookup tool, verify:
- SPF TXT record at the appropriate domain.
- DKIM TXT or CNAME at the selector provided by your sender.
- DMARC TXT at
_dmarc.example.com.
Look for missing values, multiple SPF records, copied placeholders and doubled domain suffixes.
Check a real received message in Gmail
- Send an actual website message to a Gmail account you control.
- Open the message.
- Open the three-dot menu and select Show original.
- Inspect the authentication results and associated domains.
Successful authentication may appear as:
spf=pass
dkim=pass
dmarc=pass
A pass result alone is not enough: inspect the domains used for SPF and DKIM, and verify DMARC alignment. Repeat the test for contact forms, order confirmations and password resets.
If the message is rejected before arrival, use the sender's delivery logs and SMTP rejection response instead. You cannot inspect Gmail headers for a message Gmail never accepted.
10. Common problems and practical fixes
Multiple SPF records

Symptom: SPF returns a permanent error. Fix: combine authorized senders into a single SPF record at the same DNS name, respecting the DNS-lookup limit.
DKIM selector or key is incorrect
Symptom: DKIM fails or no signature appears. Fix: compare the exact selector and record value with the sending provider; ensure the provider has enabled signing.
SPF passes but DMARC fails
Symptom: spf=pass and dmarc=fail. Fix: inspect the visible From domain, envelope sender and DKIM signing domain; configure alignment through the provider.
The contact form uses the visitor as From
Symptom: some contact notifications are rejected or marked suspicious. Fix: send from a verified address at your domain and use Reply-To for the visitor.
Website messages fail but mailbox messages work
Symptom: you can email customers manually, but order notifications disappear. Fix: check which transport the website uses. Your mailbox and website may use different sending infrastructure.
Authentication passes but messages still reach spam
Symptom: SPF, DKIM and DMARC pass, but inbox placement is poor. Fix: review sender reputation, complaint rates, sending consistency, content, recipient engagement and provider feedback. Authentication is necessary for many providers, but it is not an inbox guarantee.
11. Strengthen DMARC after monitoring
Once you have identified every legitimate sender, checked alignment and reviewed reports over a representative period, consider moving from:
v=DMARC1; p=none; rua=mailto:dmarc@example.com
to:
v=DMARC1; p=quarantine; rua=mailto:dmarc@example.com
and, when appropriate:
v=DMARC1; p=reject; rua=mailto:dmarc@example.com
These are alternatives, not records to publish together. Monitor delivery and reports after every policy change. A strict policy introduced before all legitimate services are aligned can block real customer messages.
12. Gmail requirements and ongoing maintenance
Google's sender guidelines require SPF or DKIM for senders delivering to personal Gmail accounts. Bulk senders—those sending more than 5,000 messages per day to personal Gmail accounts—face additional requirements, including SPF, DKIM, DMARC and, for relevant marketing messages, unsubscribe controls. Review Google's current sender guidelines for the complete conditions.
Even a low-volume website benefits from authenticating its transactional messages.
Whenever you add a newsletter platform, accounting system, booking tool or transactional mail provider, revisit your sender inventory and DNS configuration. Remove obsolete authorizations and periodically test important messages.
A short internal document listing each provider, its authentication records and the person responsible for the configuration can prevent future outages.
Conclusion
Email delivery problems are not all the same. First establish whether your website failed to send, a recipient server rejected the message or an accepted message was filtered.
Then authenticate legitimate sending services with SPF and DKIM, configure DMARC monitoring, test real WordPress, Joomla and WooCommerce messages, and strengthen your DMARC policy once you know that your traffic is aligned.
The goal is not merely to make a DNS test turn green. It is to ensure customers can reliably receive the messages they need—and make it harder for others to impersonate your domain.
Frequently asked questions
Do small websites need SPF, DKIM and DMARC? They are recommended even for low-volume sites. Gmail requires SPF or DKIM for all senders.
Can I publish two SPF records? No. Combine authorized senders into one SPF record per DNS name.
Does DMARC replace SPF and DKIM? No. DMARC evaluates aligned SPF or DKIM authentication.
Can I configure everything without SSH? Yes. Use your DNS provider's dashboard and your mail service's administration interface.
Will authentication guarantee inbox delivery? No. Reputation, content and recipient filtering still matter.
Should I immediately use p=reject? Start with monitoring, verify legitimate senders and progress toward enforcement when ready.
Official sources
- Google email sender guidelines: https://support.google.com/mail/answer/81126
- Google Workspace SPF setup: https://knowledge.workspace.google.com/admin/security/set-up-spf
- Google Workspace DMARC setup: https://knowledge.workspace.google.com/admin/security/set-up-dmarc
- Cloudflare Google Workspace DNS setup: https://developers.cloudflare.com/dns/manage-dns-records/how-to/set-up-google-workspace/
- Cloudflare email security records: https://developers.cloudflare.com/dmarc-management/security-records/
- DMARC specification (RFC 7489): https://www.rfc-editor.org/rfc/rfc7489
- SPF specification (RFC 7208): https://www.rfc-editor.org/rfc/rfc7208