Menu

Return-Path and From are different fields and receivers read both
📰

Return-Path and From are different fields and receivers read both

DEV Community: cybersecurity·Volanea·13 days ago
#LWHDCENj
#devtocybersecurity#devto#dev#domain#envelope
Reading 0:00
15s threshold

A message carries two identities: the From header the customer sees, and the envelope sender the receiving server uses for bounces and SPF. Aligning them badly is a common cause of mail landing in spam with no obvious error.

What each field controls

SPF checks the envelope sender, which is the domain after MAIL FROM during the SMTP conversation and shows up as Return-Path in the delivered message. DKIM signs parts of the message and is validated against the d= domain in the signature. DMARC requires that at least one of them aligns with the From header domain.

The common misconfiguration

Sending as From: [email protected] while the envelope is [email protected] . SPF passes for provider.com, DKIM may pass for provider.com, and DMARC fails because neither aligns with example.com. The fix is to sign with your own domain and use a return-path subdomain you control, or to use the provider's domain for both.

Why the bounce address matters operationally

Bounces go to the envelope sender, not to From.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.