How do I troubleshoot DMARC, SPF, and DKIM setup issues in Klaviyo?
Summary
What email marketers say10Marketer opinions
Email marketer from Email on Acid shares common DMARC errors. These include incorrect syntax, SPF failures due to exceeding DNS lookup limits, and DKIM failures due to key rotation issues. The article advises using DMARC monitoring tools to identify and resolve these errors.
Email marketer from Gmass answers question about how subdomains can affect DMARC. For example if you have a DMARC record set up for your main domain, then subdomains with email traffic will inherit that DMARC policy.
Email marketer from Postmark advises troubleshooting SPF failures by checking the syntax and ensuring all sending sources are included. The documentation advises checking the raw email headers to identify the domain used for the SPF check and comparing it to the SPF record for that domain.
Email marketer from Microsoft support explains how to view message headers to check email authentication results. This includes how to see if SPF, DKIM, and DMARC passed or failed for a particular email.
Email marketer from Mailjet explains how to configure SPF records. It provides guidance on creating an SPF record that includes all authorized sending sources (e.g., Mailjet servers, Klaviyo servers, internal servers). It also highlights the 10 DNS lookup limit for SPF and how to avoid common misconfigurations.
Email marketer from StackExchange answers a user question about DKIM appearing not valid. It suggests checking the DNS records have propagated, and that you have the correct DKIM signature.
Email marketer from AuthSMTP describes DNS records for DKIM. In particular if there are multiple selectors, it's important to have different DKIM keys on different DNS records.
Marketer from Email Geeks, Faisal Misle, indicates the DMARC setup is properly aligned and the tool used might not be accurate. He suggests the tool might not know the selector being used.
Email marketer from Reddit explains DMARC policies (none, quarantine, reject). It describes 'none' as a monitoring mode, 'quarantine' as placing failing emails in spam, and 'reject' as blocking emails. The post advises starting with 'none' to monitor results before moving to stricter policies.
Email marketer from Stack Overflow addresses a DMARC failure even when SPF and DKIM pass. It highlights that DMARC requires either SPF or DKIM to pass *and* align. Alignment means that the domain in the 'From' address must match the domain validated by SPF or DKIM. The answer suggests checking the alignment status if SPF and DKIM checks out individually.
What the experts say7Expert opinions
Expert from Spam Resource, Laura Atkins, answers questions about testing SPF records. It's important to test your SPF records to ensure they are valid before sending email. It suggests that many online tools use bad code, and may cause issues. Check if your SPF record returns a neutral result, or check your headers directly.
Expert from Email Geeks, Steve Atkins, confirms that according to his tool, the DMARC setup is working correctly.
Expert from Spam Resource, Laura Atkins, explains the DNS lookup limit with SPF. Using too many includes will cause problems, so it's worth flattening your SPF records if possible.
Expert from Email Geeks explains even if the selector is found, you're not sure if it's actually in use. The only 100% accurate way to confirm that DKIM is working, is to review a received message from that sender.
Expert from Word to the Wise, Steve Atkins, explains that seeing a 'spf Permanent Error: Too many DNS lookups' message when testing a domain's SPF record means that the SPF record is invalid and must be fixed. The error means that the SPF record exceeds the limit of 10 DNS lookups. This is a common problem.
Expert from Email Geeks explains the only way to get a DKIM public key unless you know, or can guess, the selector. A lot of test websites guess at the selector, by trying a long list of possibles. Obviously that fails unless you use a common choice of selector.
Expert from Email Geeks, Al Iverson, confirms the setup looks good and mentions Klaviyo's work on one-click unsubscribe.
What the documentation says4Technical articles
Documentation from RFC explains SPF record syntax. It outlines the different mechanisms and qualifiers that can be used in an SPF record, such as 'a', 'mx', 'ip4', 'ip6', 'include', etc. It also specifies the rules for combining these mechanisms to create a valid SPF record.
Documentation from Klaviyo explains how to set up a sending domain with DMARC, SPF, and DKIM. It details the steps for authenticating a sending domain, including adding DNS records and troubleshooting common issues within the Klaviyo platform.
Documentation from Cloudflare explains DMARC records and implementation. It outlines the different DMARC policies (none, quarantine, reject) and how they affect email delivery. It includes detail around proper record syntax.
Documentation from dmarcian explains checking the DKIM record. It outlines how to use online tools or command-line utilities (like dig or nslookup) to query the DNS record and verify the presence and correctness of the DKIM public key. The importance of validating the selector is also mentioned.