Check DKIM Authentication-Results (#3583)

Fix #3507

Note that this is not intended for a release at this point! We first have to test whether it runs stable enough. If we want to make a release while we are not confident enough in authres-checking, then we have to disable it.

BTW, most of the 3000 new lines are in `test_data/messages/dkimchecks...`, not the actual code

da3a4b94 adds the results to the Message info. It currently does this by adding them to `hop_info`. Maybe we should rename `hop_info` to `extra_info` or something; this has the disadvantage that we can't rename the sql column name though.

Follow-ups for this could be:
- In `update_authservid_candidates()`: Implement the rest of the algorithm @hpk42 and me thought about. What's missing is remembering how sure we are that these are the right authserv-ids. Esp., when receiving a message sent from another account at the same domain, we can be quite sure that the authserv-ids in there are the ones of our email server. This will make authres-checking work with buzon.uy, disroot.org, yandex.ru, mailo.com, and riseup.net.
- Think about how we present this to the user - e.g. currently the only change is that we don't accept key changes, which will mean that the small lock on the message is not shown.
- And it will mean that we can fully enable AEAP, after revisiting the security implications of this, and assuming everyone (esp. @link2xt who pointed out the problems in the first place) feels comfortable with it.
This commit is contained in:
Hocuri
2022-10-28 12:15:37 +02:00
committed by GitHub
parent d8bc3769a5
commit b1c6c40fa7
326 changed files with 3304 additions and 42 deletions

View File

@@ -0,0 +1,7 @@
Authentication-Results: mx.infomaniak.com; dmarc=pass (p=reject dis=none) header.from=aol.com
Authentication-Results: mx.infomaniak.com;
dkim=pass (2048-bit key; unprotected) header.d=aol.com header.i=@aol.com header.b="Txpx5K4S";
dkim-atps=neutral
From: <alice@aol.com>
To: <alice@ik.me>
Authentication-Results: mx.infomaniak.com; spf=pass smtp.mailfrom=aol.com

View File

@@ -0,0 +1,7 @@
Authentication-Results: mx.infomaniak.com; dmarc=pass (p=reject dis=none) header.from=buzon.uy
Authentication-Results: mx.infomaniak.com;
dkim=pass (2048-bit key; unprotected) header.d=buzon.uy header.i=@buzon.uy header.b="myjYUi37";
dkim-atps=neutral
From: <alice@buzon.uy>
To: <alice@ik.me>
Authentication-Results: mx.infomaniak.com; spf=pass smtp.mailfrom=buzon.uy

View File

@@ -0,0 +1,5 @@
Authentication-Results: mx.infomaniak.com; dmarc=none (p=none dis=none) header.from=delta.blinzeln.de
From: <alice@delta.blinzeln.de>
To: <alice@ik.me>
Authentication-Results: secure-mailgate.com; auth=pass smtp.auth=91.203.111.88@webbox222.server-home.org
Authentication-Results: mx.infomaniak.com; spf=none smtp.mailfrom=delta.blinzeln.de

View File

@@ -0,0 +1,7 @@
Authentication-Results: mx.infomaniak.com; dmarc=pass (p=quarantine dis=none) header.from=disroot.org
Authentication-Results: mx.infomaniak.com;
dkim=pass (2048-bit key; secure) header.d=disroot.org header.i=@disroot.org header.b="HlBDJq/t";
dkim-atps=neutral
From: <alice@disroot.org>
To: <alice@ik.me>
Authentication-Results: mx.infomaniak.com; spf=pass smtp.mailfrom=disroot.org

View File

@@ -0,0 +1,8 @@
Authentication-Results: mx.infomaniak.com; dmarc=pass (p=none dis=none) header.from=fastmail.com
Authentication-Results: mx.infomaniak.com;
dkim=pass (2048-bit key; unprotected) header.d=fastmail.com header.i=@fastmail.com header.b="KMpU4FxP";
dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.b="AQlzEcHV";
dkim-atps=neutral
From: <alice@fastmail.com>
To: <alice@ik.me>
Authentication-Results: mx.infomaniak.com; spf=pass smtp.mailfrom=fastmail.com

View File

@@ -0,0 +1,7 @@
Authentication-Results: mx.infomaniak.com; dmarc=pass (p=none dis=none) header.from=gmail.com
Authentication-Results: mx.infomaniak.com;
dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="HII5WJV8";
dkim-atps=neutral
From: <alice@gmail.com>
To: <alice@ik.me>
Authentication-Results: mx.infomaniak.com; spf=pass smtp.mailfrom=gmail.com

View File

@@ -0,0 +1,9 @@
Authentication-Results: mx.infomaniak.com; dmarc=pass (p=none dis=none) header.from=hotmail.com
Authentication-Results: mx.infomaniak.com;
dkim=pass (2048-bit key; unprotected) header.d=hotmail.com header.i=@hotmail.com header.b="Dbq+lYiV";
dkim-atps=neutral
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none;
dkim=none; arc=none
From: <alice@hotmail.com>
To: <alice@ik.me>
Authentication-Results: mx.infomaniak.com; spf=pass smtp.mailfrom=hotmail.com

View File

@@ -0,0 +1,7 @@
Authentication-Results: mx.infomaniak.com; dmarc=pass (p=quarantine dis=none) header.from=icloud.com
Authentication-Results: mx.infomaniak.com;
dkim=pass (2048-bit key; unprotected) header.d=icloud.com header.i=@icloud.com header.b="RYsH+EvP";
dkim-atps=neutral
From: <alice@icloud.com>
To: <alice@ik.me>
Authentication-Results: mx.infomaniak.com; spf=pass smtp.mailfrom=icloud.com

View File

@@ -0,0 +1,7 @@
Authentication-Results: mx.infomaniak.com; dmarc=pass (p=none dis=none) header.from=mail.de
Authentication-Results: mx.infomaniak.com;
dkim=pass (2048-bit key; secure) header.d=mail.de header.i=@mail.de header.b="tBa3jrls";
dkim-atps=neutral
From: <alice@mail.de>
To: <alice@ik.me>
Authentication-Results: mx.infomaniak.com; spf=pass smtp.mailfrom=mail.de

View File

@@ -0,0 +1,7 @@
Authentication-Results: mx.infomaniak.com; dmarc=pass (p=none dis=none) header.from=mailo.com
Authentication-Results: mx.infomaniak.com;
dkim=pass (1024-bit key; unprotected) header.d=mailo.com header.i=@mailo.com header.b="W4AVjC6K";
dkim-atps=neutral
From: <alice@mailo.com>
To: <alice@ik.me>
Authentication-Results: mx.infomaniak.com; spf=pass smtp.mailfrom=mailo.com

View File

@@ -0,0 +1,9 @@
Authentication-Results: mx.infomaniak.com; dmarc=pass (p=none dis=none) header.from=outlook.com
Authentication-Results: mx.infomaniak.com;
dkim=pass (2048-bit key; unprotected) header.d=outlook.com header.i=@outlook.com header.b="fGclt/Vk";
dkim-atps=neutral
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none;
dkim=none; arc=none
From: <alice@outlook.com>
To: <alice@ik.me>
Authentication-Results: mx.infomaniak.com; spf=pass smtp.mailfrom=outlook.com

View File

@@ -0,0 +1,7 @@
Authentication-Results: mx.infomaniak.com; dmarc=pass (p=none dis=none) header.from=posteo.de
Authentication-Results: mx.infomaniak.com;
dkim=pass (2048-bit key; secure) header.d=posteo.de header.i=@posteo.de header.b="UcblSoDm";
dkim-atps=neutral
From: <alice@posteo.de>
To: <alice@ik.me>
Authentication-Results: mx.infomaniak.com; spf=pass smtp.mailfrom=posteo.de

View File

@@ -0,0 +1,7 @@
Authentication-Results: mx.infomaniak.com; dmarc=pass (p=none dis=none) header.from=riseup.net
Authentication-Results: mx.infomaniak.com;
dkim=pass (1024-bit key; secure) header.d=riseup.net header.i=@riseup.net header.b="dGbBF9qT";
dkim-atps=neutral
From: <alice@riseup.net>
To: <alice@ik.me>
Authentication-Results: mx.infomaniak.com; spf=pass smtp.mailfrom=riseup.net

View File

@@ -0,0 +1,7 @@
Authentication-Results: mx.infomaniak.com; dmarc=pass (p=reject dis=none) header.from=yahoo.com
Authentication-Results: mx.infomaniak.com;
dkim=pass (2048-bit key; unprotected) header.d=yahoo.com header.i=@yahoo.com header.b="sJ+4wNJ7";
dkim-atps=neutral
From: <alice@yahoo.com>
To: <alice@ik.me>
Authentication-Results: mx.infomaniak.com; spf=pass smtp.mailfrom=yahoo.com

View File

@@ -0,0 +1,8 @@
Authentication-Results: mx.infomaniak.com; dmarc=pass (p=none dis=none) header.from=yandex.ru
Authentication-Results: mx.infomaniak.com;
dkim=pass (1024-bit key; unprotected) header.d=yandex.ru header.i=@yandex.ru header.b="lfDaLIBg";
dkim-atps=neutral
Authentication-Results: iva4-143b1447cf50.qloud-c.yandex.net; dkim=pass header.i=@yandex.ru
From: <alice@yandex.ru>
To: <alice@ik.me>
Authentication-Results: mx.infomaniak.com; spf=pass smtp.mailfrom=yandex.ru

View File

@@ -0,0 +1,5 @@
Authentication-Results: mx.infomaniak.com; dmarc=none (p=none dis=none) header.from=delta.blinzeln.de
From: forged-authres-added@example.com
Authentication-Results: aaa.com; dkim=pass header.i=@example.com
Authentication-Results: mx.infomaniak.com; spf=none smtp.mailfrom=delta.blinzeln.de
Authentication-Results: aaa.com; dkim=pass header.i=@example.com