SPF not correctly checked on multiple from addresses

Bug #1565684 reported by Tim Schneider
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
postfix-policyd-spf-perl
Invalid
Undecided
Unassigned

Bug Description

I recently received SPAM a mail that claimed to be from one of my own domains. Since I have SPF activated I believed this to not be possible. After analyzing the e-mail, I found out, that the sender used a trick to circumvent the SPF protection:

He simply put multiple from addresses in the e-mail like so:
From: <email address hidden>, <email address hidden>, =?UTF-8?Q?f=C3=BCr=20?=<email address hidden>, <email address hidden>, -=?UTF-8?Q?=E2=82=AC?=! <email address hidden>

After looking in the RFC (https://tools.ietf.org/html/rfc2822#section-3.6.2) I found out, that it is actually allowed to put multiple "From" addresses in one e-mail.
It seems like the SPF was only checked for the last email with the mail address in '<>' and for none of the previous e-mail addresses.
I would think, that the SPF would need to be checked for all From addresses, as it is otherwise easy to circumvent SPF partially by simply adding another email address at the end of the list.

Revision history for this message
Scott Kitterman (kitterman) wrote :

SPF does not check the From identity in the body of the message. It checks the Mail From in the envelope of the message (and there can be only one of those). See the introduction to RFC 7208 [1].

[1] https://tools.ietf.org/html/rfc7208#page-5

Changed in postfix-policyd-spf-perl:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.