How to fix missing spf on Adobe Commerce (Magento)
Add a DNS TXT record containing a valid SPF policy to your domain so that email receivers can verify which servers are authorised to send mail on your behalf.
Steps for Adobe Commerce (Magento)
- Adobe Commerce / Magento does not manage DNS — you must update the record at your domain registrar or DNS host (Cloudflare, Route 53, GoDaddy, etc.).
- Magento's default installation sends email via the server's local sendmail/PHP mail; for reliable SPF pass, configure an SMTP extension: Admin → Stores → Configuration → Advanced → System → Mail Sending Settings → set 'Use SMTP' or install an extension such as 'Magento 2 SMTP' from the Marketplace.
- Log in to your DNS provider and add a TXT record: Name = '@', Value = v=spf1 include:[your-smtp-provider] a:your-mail-server-ip -all — replacing placeholders with your actual provider's include string.
- If using Adobe Commerce Cloud (cloud.adobe.com), consult Adobe's documentation for the SendGrid include string they provision (typically include:u[number].wl.sendgrid.net).
- Save, propagate, and verify with MXToolbox SPF Lookup.
- Send a test order confirmation and inspect the email headers to confirm 'spf=pass'.
What is missing spf?
SPF (Sender Policy Framework) is a DNS record — a single line of text you publish at your domain — that lists every mail server and service allowed to send email from your domain address. When someone receives an email claiming to be from you, their mail server looks up this record and checks whether the sending server is on your approved list. If there is no SPF record at all, there is nothing to check against, and your domain is completely open to impersonation. Think of it as a guest list for who is allowed to send email in your name.
Without an SPF record, criminals can forge your domain in the "From" address of phishing or spam emails — a technique called email spoofing — and your customers, suppliers, or partners may receive fraudulent messages that appear to come from your business. This directly harms customer trust and can expose you to legal liability. Beyond fraud risk, major email providers (Google, Microsoft, Yahoo) now treat domains without SPF as suspicious and are more likely to send your legitimate transactional emails — order confirmations, shipping notices, password resets — straight to spam, costing you sales and customer satisfaction. A missing SPF record also contributes to OWASP A05:2021 Security Misconfiguration findings, which can affect security audits and partner due-diligence reviews.
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 scan — we’ll find missing spf and every other issue across your whole site.
Scan my site free