How to fix missing spf on Adobe Commerce (Magento)
Add a DNS TXT record containing a valid SPF policy to your domain so email servers can verify that messages sent from your domain are legitimate.
Steps for Adobe Commerce (Magento)
- Adobe Commerce (cloud or on-premises) does not manage your DNS — edit records at your registrar or DNS provider (Cloudflare, Route 53, etc.).
- Log in to your DNS provider and add a TXT record: Name = @, TTL = 3600, Value = your SPF string.
- Adobe Commerce Cloud uses SendGrid for transactional email by default; add 'include:sendgrid.net' to your SPF record. Confirm the current include tag in Adobe Commerce Cloud's official documentation.
- For on-premises installations using a custom SMTP relay (configured in Admin → Stores → Configuration → Advanced → System → Mail Sending Settings), add the SPF include for whichever SMTP service you are using.
- If you use a third-party email extension (e.g. from Adobe Commerce Marketplace), check that extension's documentation for the correct SPF include directive.
- Verify propagation and record correctness with a free SPF lookup tool.
; DNS TXT record to add at your domain apex (e.g. yourstore.com)
; Replace the include: values with the ones published by YOUR sending services.
@ 3600 IN TXT "v=spf1 include:_spf.google.com include:sendgrid.net include:shops.shopify.com ~all"
; Key parts:
; v=spf1 → SPF version (required, always this value)
; include:… → Delegate to another provider's SPF list (add one per sending service)
; ip4:203.0.113.5 → Authorize a specific server IP directly (use only if needed)
; -all → Hard fail: reject mail from any unlisted sender (most secure)
; ~all → Soft fail: accept but mark unlisted senders (use during rollout)What is missing spf?
SPF (Sender Policy Framework) is a DNS record — a single line of text published at your domain's root — that tells the world's email servers which mail-sending services are officially allowed to send email on behalf of your domain. Without it, there is no published list of authorized senders, so receiving mail servers have no way to confirm whether an email claiming to be "from yourstore.com" actually came from you or from an attacker. It is one of the three foundational email-authentication standards (SPF, DKIM, and DMARC) that major inbox providers now require.
Without an SPF record, cybercriminals can send convincing phishing and spoofing emails that appear to come from your store's domain — targeting your customers, suppliers, and staff. Beyond fraud risk, inbox providers like Google and Microsoft use SPF as a key trust signal: missing or broken SPF causes your legitimate order confirmations, shipping updates, and marketing emails to land in spam or be rejected outright, directly harming customer experience and revenue. Google and Yahoo's 2024 bulk-sender requirements made SPF mandatory for deliverability. Failing to publish one is classified as a Security Misconfiguration (OWASP A05:2021) because it leaves your domain's identity unprotected and exploitable.
See the complete Missing spf guide for every platform and the full background.
Not sure if your Adobe Commerce (Magento) store has this?
Run a free SEOLZ audit — we’ll find missing spf and every other issue across your whole site.
Scan my site free