Sender ID: Difference between revisions
m Missed an external link to put into reference; fixed |
Replace other IETF external links with references →Principles of operation: Remove unnecessary sentence: "These differences are discussed here." Replace hyphens with en dashes. →Standardization issues: Copyedit wording. Mark sentence needing attribution for a value judgement |
||
| Line 1: | Line 1: | ||
'''Sender ID''' is an historic<ref>{{cite web| url=https://datatracker.ietf.org/doc/status-change-change-sender-id-to-historic/| title=Moving RFC 4405, RFC 4406, RFC 4407 (Sender-ID) to Historic| author=Alexey Melnikov| date=7 February 2020| website=[[Internet Engineering Task Force|IETF]]}}</ref> anti-[[E-mail spoofing|spoofing]] proposal from the former [[MARID]] [[IETF]] working group that tried to join [[Sender Policy Framework]] (SPF) and Caller ID. Sender ID is defined primarily in Experimental <nowiki>RFC 4406</nowiki>,<ref>{{Cite web|last=Wong|first=Meng Weng|last2=Lyon|first2=Jim|title=Sender ID: Authenticating E-Mail|url=https://tools.ietf.org/html/rfc4406.html|access-date=2021-03-11|website=tools.ietf.org|language=en}}</ref> but there are additional parts in <nowiki>RFC 4405</nowiki>,<ref>{{Cite web|last=Katz|first=Harry|last2=Allman|first2=Eric|title=SMTP Service Extension for Indicating the Responsible Submitter of an E-Mail Message|url=https://tools.ietf.org/html/rfc4405.html|access-date=2021-03-11|website=tools.ietf.org|language=en}}</ref> <nowiki>RFC 4407</nowiki><ref>{{Cite web|last=Lyon <jimlyon@microsoft.com>|first=Jim|title=Purported Responsible Address in E-Mail Messages|url=https://tools.ietf.org/html/rfc4407.html|access-date=2021-03-11|website=tools.ietf.org|language=en}}</ref> and <nowiki>RFC 4408</nowiki>.<ref>{{Cite web|last=Schlitt|first=Wayne|last2=Wong|first2=Meng Weng|title=Sender Policy Framework (SPF) for Authorizing Use of Domains in E-Mail, Version 1|url=https://tools.ietf.org/html/rfc4408.html|access-date=2021-03-11|website=tools.ietf.org|language=en}}</ref> | '''Sender ID''' is an historic<ref>{{cite web| url=https://datatracker.ietf.org/doc/status-change-change-sender-id-to-historic/| title=Moving RFC 4405, RFC 4406, RFC 4407 (Sender-ID) to Historic| author=Alexey Melnikov| date=7 February 2020| website=[[Internet Engineering Task Force|IETF]]}}</ref> anti-[[E-mail spoofing|spoofing]] proposal from the former [[MARID]] [[IETF]] working group that tried to join [[Sender Policy Framework]] (SPF) and Caller ID. Sender ID is defined primarily in Experimental <nowiki>RFC 4406</nowiki>,<ref>{{Cite web|last=Wong|first=Meng Weng|last2=Lyon|first2=Jim|title=Sender ID: Authenticating E-Mail|url=https://tools.ietf.org/html/rfc4406.html|access-date=2021-03-11|website=tools.ietf.org|language=en}}</ref> but there are additional parts in <nowiki>RFC 4405</nowiki>,<ref>{{Cite web|last=Katz|first=Harry|last2=Allman|first2=Eric|title=SMTP Service Extension for Indicating the Responsible Submitter of an E-Mail Message|url=https://tools.ietf.org/html/rfc4405.html|access-date=2021-03-11|website=tools.ietf.org|language=en}}</ref> <nowiki>RFC 4407</nowiki><ref name=":0">{{Cite web|last=Lyon <jimlyon@microsoft.com>|first=Jim|title=Purported Responsible Address in E-Mail Messages|url=https://tools.ietf.org/html/rfc4407.html|access-date=2021-03-11|website=tools.ietf.org|language=en}}</ref> and <nowiki>RFC 4408</nowiki>.<ref>{{Cite web|last=Schlitt|first=Wayne|last2=Wong|first2=Meng Weng|title=Sender Policy Framework (SPF) for Authorizing Use of Domains in E-Mail, Version 1|url=https://tools.ietf.org/html/rfc4408.html|access-date=2021-03-11|website=tools.ietf.org|language=en}}</ref> | ||
== Principles of operation == | == Principles of operation == | ||
Sender ID is heavily based on [[Sender Policy Framework|SPF]], with only a few additions | Sender ID is heavily based on [[Sender Policy Framework|SPF]], with only a few additions. | ||
Sender ID tries to improve on SPF: SPF does not verify the [[Email#Message header|header]] addresses (of which there can be more than one) that indicate the claimed sending party. One of these header addresses is typically displayed to the user and may be used to reply to emails. These header addresses can be different from the address that SPF tries to verify; that is, SPF verifies only the "MAIL FROM" address, also called the envelope sender. | Sender ID tries to improve on SPF: SPF does not verify the [[Email#Message header|header]] addresses (of which there can be more than one) that indicate the claimed sending party. One of these header addresses is typically displayed to the user and may be used to reply to emails. These header addresses can be different from the address that SPF tries to verify; that is, SPF verifies only the "MAIL FROM" address, also called the envelope sender. | ||
However, there are many similar email header fields that all contain sending party information; therefore Sender ID defines in RFC 4407 a Purported Responsible Address (PRA) as well as a set of heuristic rules to establish this address from the many typical headers in an email. | However, there are many similar email header fields that all contain sending party information; therefore Sender ID defines in <nowiki>RFC 4407</nowiki><ref name=":0" /> a Purported Responsible Address (PRA) as well as a set of heuristic rules to establish this address from the many typical headers in an email. | ||
Syntactically, Sender ID is almost identical to SPF except that <code>v=spf1</code> is replaced with one of: | Syntactically, Sender ID is almost identical to SPF except that <code>v=spf1</code> is replaced with one of: | ||
* <code>spf2.0/mfrom</code> | * <code>spf2.0/mfrom</code>{{Snd}}meaning to verify the envelope sender address just like SPF. | ||
* <code>spf2.0/mfrom,pra</code> or <code>spf2.0/pra,mfrom</code> | * <code>spf2.0/mfrom,pra</code> or <code>spf2.0/pra,mfrom</code>{{Snd}}meaning to verify both the envelope sender and the PRA. | ||
* <code>spf2.0/pra</code> | * <code>spf2.0/pra</code>{{Snd}}meaning to verify only the PRA. | ||
The only other syntactical difference is that Sender ID offers the feature of ''positional'' modifiers not supported in SPF. In practice, so far no ''positional'' modifier has been specified in any Sender ID implementation. | The only other syntactical difference is that Sender ID offers the feature of ''positional'' modifiers not supported in SPF. In practice, so far no ''positional'' modifier has been specified in any Sender ID implementation. | ||
In practice, the ''pra'' scheme usually only offers protection when the email is legitimate, while offering no real protection in the case of spam or phishing. | In practice, the ''pra'' scheme usually only offers protection when the email is legitimate, while offering no real protection in the case of spam or phishing. The ''pra'' for most legitimate email will be either the familiar From: header field, or, in the case of mailing lists, the Sender: header field. In the case of phishing or spam, however, the ''pra'' may be based on Resent-* header fields that are often not displayed to the user. To be an effective anti-phishing tool, the MUA (Mail User Agent or Mail Client) will need to be modified to display either the ''pra'' for Sender ID, or the Return-Path: header field for SPF. | ||
To be an effective anti-phishing tool, the MUA (Mail User Agent or Mail Client) will need to be modified to display either the ''pra'' for Sender ID, or the Return-Path: header field for SPF. | |||
The ''pra'' tries to counter the problem of ''phishing'', | The ''pra'' tries to counter the problem of ''phishing'', while SPF or ''mfrom'' tries to counter the problem of spam bounces and other auto-replies to forged Return-Paths. Two different problems with two different proposed solutions. However, Sender-ID and SPF yield the same result in approximately 80% of the cases, according to a billion message analysis.<ref name=rfc6686>{{cite IETF |title=Resolution of the Sender Policy Framework (SPF) and Sender ID Experiments |rfc=6686 |author=Murray Kucherawy |year=2012 |publisher=[[Internet Engineering Task Force|IETF]]}}</ref> | ||
while SPF or ''mfrom'' tries to counter the problem of spam | |||
bounces and other auto-replies to forged Return-Paths. Two | |||
different problems with two different proposed solutions. | |||
However, Sender-ID and SPF yield the same result in approximately 80% of the cases, according to a billion message analysis.<ref name=rfc6686>{{cite IETF |title=Resolution of the Sender Policy Framework (SPF) and Sender ID Experiments |rfc=6686 |author=Murray Kucherawy |year=2012 |publisher=[[Internet Engineering Task Force|IETF]]}}</ref> | |||
==Standardization issues== | ==Standardization issues== | ||
The ''pra'' has the disadvantage that forwarders and | The ''pra'' has the disadvantage that forwarders and mailing lists can only support it by modifying the mail header, e.g. by inserting a <code>Sender</code> or <code>Resent-Sender</code>. The latter violates <nowiki>RFC 2822</nowiki><ref>{{Cite web|last=Resnick <presnick@qualcomm.com>|first=Peter W.|title=Internet Message Format|url=https://tools.ietf.org/html/rfc2822.html|access-date=2021-03-11|website=tools.ietf.org|language=en}}</ref> and can be incompatible with <nowiki>RFC 822</nowiki>.<ref>{{Cite web|last=Crocker|first=D.|title=STANDARD FOR THE FORMAT OF ARPA INTERNET TEXT MESSAGES|url=https://tools.ietf.org/html/rfc822.html|access-date=2021-03-11|website=tools.ietf.org|language=en}}</ref> | ||
mailing lists can only support it by modifying the mail header, | |||
e.g. | |||
latter violates RFC 2822 and can be incompatible with RFC 822. | |||
With SPF, mailing lists continue to work as is. | With SPF, mailing lists continue to work as is. Forwarders wishing to support SPF only need to modify SMTP MAIL FROM and RCPT TO, not the mail. This concept is not new: with the original <nowiki>RFC 821</nowiki><ref>{{Cite web|last=Postel|first=J.|title=Simple Mail Transfer Protocol|url=https://tools.ietf.org/html/rfc821.html|access-date=2021-03-11|website=tools.ietf.org|language=en}}</ref> SMTP forwarders always added their host name to the reverse path in the MAIL FROM. | ||
wishing to support SPF only need to modify SMTP MAIL FROM | |||
and RCPT TO, not the mail. | |||
new | |||
added their host name to the reverse path in the MAIL FROM. | |||
The most problematic point in the core Sender ID specification is its recommendation to interpret <code>v=spf1</code> policies like | The most problematic point{{According to whom|date=March 2021}} in the core Sender ID specification is its recommendation to interpret <code>v=spf1</code> policies like <code>spf2.0/mfrom,pra</code> instead of <code>spf2.0/mfrom</code>. This was never intended by all published SPF drafts since 2003, and for an unknown large number of <code>v=spf1</code> policies an evaluation for ''pra'' could cause bogus results for many cases where ''pra'' and ''mfrom'' are different. This problem was the basis of an appeal to the [[Internet Architecture Board|Internet Architecture Board (IAB)]]. In response to another prior appeal the [[IESG]] already noted that Sender ID cannot advance on the [[IETF]] standards track without addressing the incompatibility with a MUST in <nowiki>RFC 2822</nowiki>.<ref>{{Cite web|last=Resnick <presnick@qualcomm.com>|first=Peter W.|title=Internet Message Format|url=https://tools.ietf.org/html/rfc2822.html|access-date=2021-03-11|website=tools.ietf.org|language=en}}</ref> | ||
<code>spf2.0/mfrom,pra</code> instead of <code>spf2.0/mfrom</code>. | |||
Various surveys performed in 2012, when SPF turned from experimental to proposed standard, showed that fewer than 3% of mail domains published specific requests for using the ''pra'', compared to some 40~50% of mail domains using SPF.<ref name=rfc6686/> | Various surveys performed in 2012, when SPF turned from experimental to proposed standard, showed that fewer than 3% of mail domains published specific requests for using the ''pra'', compared to some 40~50% of mail domains using SPF.<ref name=rfc6686/> | ||