Skip to contentSkip to conversation

DMARC on this mailing list

Buildroot Danilo Bargen 3 participants 5 messages Jan 17, 2022

lore
Share & tools
lore
#0 lore raw

Hello folks

I recently enabled report-only DMARC on my e-mail domain. After sending a few e-mails to this ML yesterday, this resulted in multiple DMARC would-be rejection e-mails.

DMARC relies on SPF (correct sender IP) *or* DKIM (correct signature). A nice tool to visualize this is https://www.learndmarc.com/. If either SPF or DKIM passes, the e-mail should be accepted.

In the case of mailing lists, the way I understand it, there are two options:

- Rewrite the "From:" header so that the e-mail appears to be coming from the ML itself. Put the original sender e-mail in the "Reply-To" header instead. If this is not being done, the sender IP (the mailing list) does not match the sender e-mail domain and SPF fails. Note that this *might* impact the buildroot ML reputation for some big mailservers.
- Expect that mail servers with DMARC enabled also have DKIM enabled, and ensure that the e-mail body is not modified (i.e. turn off the automatically inserted footer). Put mailing list unsubscribe links in the headers instead. This way, even though the sender IP does not match, the signature should still be intact.

These approaches are described in the following blog post I found
online: https://begriffs.com/posts/2018-09-18-dmarc-mailing-list.html

I don't know if mailman allows turning off body modifications (i.e. RFC2369 and RFC2919), but it definitely allows "From"-munging:
https://wiki.list.org/DEV/DMARC

I'm still quite new to this mailing list and don't want to put out any demands, but I wanted to bring up this issue, since it will probably be more and more of an issue in the future (DMARC adoption is increasing).

Cheers,
Danilo
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#1 lore raw

Hi Danilo,

Quoted 26 lines · Danilo Bargen

I recently enabled report-only DMARC on my e-mail domain. After sending a few e-mails to this ML yesterday, this resulted in multiple DMARC would-be rejection e-mails.

DMARC relies on SPF (correct sender IP) *or* DKIM (correct signature). A nice tool to visualize this is https://www.learndmarc.com/. If either SPF or DKIM passes, the e-mail should be accepted.

In the case of mailing lists, the way I understand it, there are two options:

- Rewrite the "From:" header so that the e-mail appears to be coming from the ML itself. Put the original sender e-mail in the "Reply-To" header instead. If this is not being done, the sender IP (the mailing list) does not match the sender e-mail domain and SPF fails. Note that this *might* impact the buildroot ML reputation for some big mailservers.
- Expect that mail servers with DMARC enabled also have DKIM enabled, and ensure that the e-mail body is not modified (i.e. turn off the automatically inserted footer). Put mailing list unsubscribe links in the headers instead. This way, even though the sender IP does not match, the signature should still be intact.

These approaches are described in the following blog post I found
online: https://begriffs.com/posts/2018-09-18-dmarc-mailing-list.html

Quoted 7 lines

I don't know if mailman allows turning off body modifications (i.e. RFC2369 and RFC2919), but it definitely allows "From"-munging:
https://wiki.list.org/DEV/DMARC

I'm still quite new to this mailing list and don't want to put out any demands, but I wanted to bring up this issue, since it will probably be more and more of an issue in the future (DMARC adoption is increasing).

I can't comment for the owners of the Buildroot list. But you might find this recent discussion from the linux-arm-kernel list interesting:

https://lore.kernel.org/linux-arm-kernel/202110211313.B5C5C61@keescook/

In this thread David Woodhouse describes the lists.infradead.org setup rationale.

baruch

Signature · 7 lines
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - [email protected] - tel: +972.52.368.4656, http://www.tkos.co.il -
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw
In reply to Danilo Bargen

Danilo, All,

On 2022-01-17 10:50 +0100, Danilo Bargen spake thusly:

Quoted 3 lines

I recently enabled report-only DMARC on my e-mail domain. After sending a few e-mails to this ML yesterday, this resulted in multiple DMARC would-be rejection e-mails.

DMARC has bitten us in the recent past (1.5 year or so...)

Quoted 7 lines

DMARC relies on SPF (correct sender IP) *or* DKIM (correct signature). A nice tool to visualize this is https://www.learndmarc.com/. If either SPF or DKIM passes, the e-mail should be accepted.

In the case of mailing lists, the way I understand it, there are two options:

Quoted 6 lines

- Rewrite the "From:" header so that the e-mail appears to be coming from the ML itself. Put the original sender e-mail in the "Reply-To" header instead. If this is not being done, the sender IP (the mailing list) does not match the sender e-mail domain and SPF fails. Note that this *might* impact the buildroot ML reputation for some big mailservers.

This is exactly what is going on. You can check for example on the archives:

    https://lore.kernel.org/buildroot/[email protected]/
Quoted 6 lines

- Expect that mail servers with DMARC enabled also have DKIM enabled, and ensure that the e-mail body is not modified (i.e. turn off the automatically inserted footer). Put mailing list unsubscribe links in the headers instead. This way, even though the sender IP does not match, the signature should still be intact.

Quoted 6 lines

These approaches are described in the following blog post I found
online: https://begriffs.com/posts/2018-09-18-dmarc-mailing-list.html

I don't know if mailman allows turning off body modifications (i.e. RFC2369 and RFC2919), but it definitely allows "From"-munging:
https://wiki.list.org/DEV/DMARC

Yeah, this is what is being done on this list...

Regards,
Yann E. MORIN.

Quoted 10 lines

I'm still quite new to this mailing list and don't want to put out any demands, but I wanted to bring up this issue, since it will probably be more and more of an issue in the future (DMARC adoption is increasing).

Cheers,
Danilo
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw

Hello Yann

Quoted 10 lines
Quoted 6 lines

- Rewrite the "From:" header so that the e-mail appears to be coming from the ML itself. Put the original sender e-mail in the "Reply-To" header instead. If this is not being done, the sender IP (the mailing list) does not match the sender e-mail domain and SPF fails. Note that this *might* impact the buildroot ML reputation for some big mailservers.

This is exactly what is going on. You can check for example on the archives:

     https://lore.kernel.org/buildroot/[email protected]/

Strange, when I view your e-mail (coming from the ML, containing the "buildroot mailing list" footer) raw data, I still see your address in the "From"-Header, and not [email protected]:

From: "Yann E. MORIN" <[email protected]>

The *sender* is set to Buildroot:

Sender: "buildroot" <[email protected]>

...but DMARC evaluates the From-Header and not the Sender-Header, as far as I know.

Some mailservers that sent me DMARC failure reports after sending e-mails to the buildroot mailing list were:

- silica.com
- uni-bonn.de
- yahoo.com
- aol.com mail.ru

With a reject policy, my e-mail would have been dropped by those servers.

Danilo
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#4 lore raw
Quoted 3 lines

Strange, when I view your e-mail (coming from the ML, containing the "buildroot mailing list" footer) raw data, I still see your address in the "From"-Header, and not [email protected]:

  From: "Yann E. MORIN" <[email protected]>

The lore.kernel.org archive seems to confirm this, "From"-header is not rewritten:

https://lore.kernel.org/buildroot/20220117102450.GC2313964@scaer/

However, for the archive entry you sent, it does look correct, with a rewritten "From"-header:

https://lore.kernel.org/buildroot/[email protected]/

I'm not sure what the reason for the difference between these two e-mails is.

Danilo
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot