At a glance, the From and Sender header appears identical in an email. However, there is a subtle difference that can play an essential role in some instances. This article explores their differences and discusses the instances when they should differ.
According to the RFC, the From header specifies the author's name and address. On the other hand, the Sender specifies the agent's mailbox responsible for the actual transmission. A sender header is not required, and therefore, is often missing. This is because in most cases they are identical and there is no need for it.
Consider the following scenario as an example:
jane.doe@yourcompany.com
), wants to forward incoming emails to her jane.doe@gmail.com
addressFrom: "John Doe" <john.doe@hotmail.com> To: "Jane Doe" <jane.doe@yourcompany.com> Subject: Meeting agenda
hotmail.com
account. @gmail.com
) because your email server is not authorized to originate an email from @hotmail.com
.
From: "John Doe" <john.doe@hotmail.com> Sender: jane.doe@yourcompany.com To: "Jane Doe" <jane.doe@yourcompany.com> Subject: Meeting agenda
C --> HELO mail.yourcompany.com
S <-- 250 OK
C --> MAIL FROM: <jane.doe@yourcompany.com>
S <-- 250 OK
C --> RCPT TO: <john.doe@hotmail.com>
S <-- 250 OK
C --> DATA
S <-- 354 OK
A modified value in the Sender
header will modify the MAIL FROM
value in the SMTP envelope. This will
cause the receiving server to perform an SPF lookup against yourcompany.com
instead of hotmail.com
, solving
the forgery problem.
Xeams automatically adds the Sender header into any incoming email when expanding a distribution list. A distribution list in Xeams can either be expanded to a single address, similar to the Jane Doe's example above or to multiple recipients. Consider the following scenario as an example:
football-team@yourcompany.com
expands to jack@yourcompany.com, bill@yahoo.com, bob@somewhere.com
manager@fb-league.com
. This message needs to be forwarded to yahoo.com
and
somewhere.com
in a way that it should not be considered a forgery. Therefore, Xeams will add automatically
add a Sender header to fix the problem, which will also modify the MAIL FROM
in the envelope.