Gerald Vogt writes:
On 24.11.26 18:14, Stephen J. Turnbull wrote:
An exclude list is a potential vulnerability unless you're carefully configured. Suppose somebody spoofs your domain in From. If this gets to Mailman, it will go back out and bounce all over the Internet when the DKIM validation fails, and it's April 2014 all over again for you.
I don't quite understand the issue here.
The issue is a *potential* DOS attack on your members.
If you have few such posters, you won't see a problem. In April 2014, Yahoo! and AOL (then a huge player) switched on p=reject to deal with "recommendation from a friend" spam (between them they leaked billions of contact lists to spammers). This cause mailing lists to disable and unsubscribe hundreds of thousands, maybe millions or tens of millions, of members.
The pace of emails that trigger DMARC rejects is something that is under control of the attacker. We have to worry about such vulnerabilities even if you don't.
If a list with no dmarc mitigation would be such a great risk shouldn't dmarc mitigation be the default then?
I'm sympathetic, but changing defaults requires some thought. We don't get any complaints that I recall so *shrug*. We also have an upcoming DKIMv2 draft RFC which is going to require a lot of changes to domain authentication handling (specifically, changes that currently invalidate signatures won't invalidate DKIMv2 signatures), so ....
Isn't that what we have to do anyway with DMARC mitigation?
Mailman's DMARC mitigation has only one function: preventing a bounce by ensuring a From-aligned valid DKIM signature outgoing, and that has to be the Mailman installation's domain. Of the safety policies I suggested, 1 and 3 you should be doing regardless of mitigation unless you're an extreme libertarian about email. 2 may or may not be useful. See below.
Or does mitigation remove DKIM signatures? We cannot keep the original DKIM signature because we change the From address with mitigation.
Well, that's one of the problems. An invalid DKIM signature simply doesn't exist (except as a million CPU cycles to prove invalid) to a conformant implementation. Unfortunately, there are lots of nonconforming implementations. At one time we heard reports of posts being rejected because of failing DKIM signatures. Haven't heard about that in a while, so maybe that bug is mostly fixed. But we know very little about multiple signatures from the same authority.
What are those "Regexp" in the list? Do they support negative lookbehinds?
Python 3 re module from the stdlib. Don't remember about negative lookbehind, they do support lookahead assertions.
Steve
-- GNU Mailman consultant (installation, migration, customization) Sirius Open Source https://www.siriusopensource.com/ Software systems consulting in Europe, North America, and Japan