DEV Community

Cover image for Email authentication - Understanding headers
Pierre-Yves Dubreucq for Sweego

Posted on

1

Email authentication - Understanding headers

Email authentication is crucial to ensure your emails reach recipients’ inboxes, especially for transactional emails where errors are unacceptable. The main methods of authentication include SPF (Sender Policy Framework), DKIM (DomainKeys Identified Mail), and DMARC (Domain-based Message Authentication, Reporting & Conformance).

To verify these configurations, examine the email headers for specific elements. Understanding these details will help you improve your email deliverability and security.

1. SPF Header

Received-SPF header indicates the result of the SPF check performed by the receiving server, and the Authentication-Results header indicates the result of the SPF check.

2. DKIM Header

The DKIM-Signature header contains the email’s DKIM signature, and the Authentication-Results header indicates the result of the DKIM verification.

3. DMARC Header

The Authentication-Results header indicates the result of the DMARC verification.

4. Authentication-Results Header

In addition to the SPF and DKIM specific headers, the Authentication-Results header provides an overview of the email authentication results.

Authentication-Results: mx.google.com;
 spf=pass (google.com: domain of sender@example.com designates 192.0.2.1 as permitted sender) smtp.mailfrom=sender@example.com;
 dkim=pass header.i=@example.com header.s=selector1 header.b=Gw+yUxcC;
 dmarc=pass (p=NONE) header.from=example.com
Enter fullscreen mode Exit fullscreen mode

If you want to know more, read our article about Email Authentication header

Sentry blog image

How to reduce TTFB

In the past few years in the web dev world, we’ve seen a significant push towards rendering our websites on the server. Doing so is better for SEO and performs better on low-powered devices, but one thing we had to sacrifice is TTFB.

In this article, we’ll see how we can identify what makes our TTFB high so we can fix it.

Read more

Top comments (0)

Cloudinary image

Zoom pan, gen fill, restore, overlay, upscale, crop, resize...

Chain advanced transformations through a set of image and video APIs while optimizing assets by 90%.

Explore

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay