Re: [dmarc-ietf] Composition Kills: A Case Study of Email Sender Authentication

Juri Haberland <juri@sapienti-sat.org> Thu, 23 April 2020 07:38 UTC

Return-Path: <juri@sapienti-sat.org>
X-Original-To: dmarc@ietfa.amsl.com
Delivered-To: dmarc@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EC1EB3A164A for <dmarc@ietfa.amsl.com>; Thu, 23 Apr 2020 00:38:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.1
X-Spam-Level:
X-Spam-Status: No, score=-2.1 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=sapienti-sat.org
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qFWNA6fzG6k7 for <dmarc@ietfa.amsl.com>; Thu, 23 Apr 2020 00:38:22 -0700 (PDT)
Received: from batleth.sapienti-sat.org (batleth.sapienti-sat.org [88.198.49.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1A5293A1648 for <dmarc@ietf.org>; Thu, 23 Apr 2020 00:38:21 -0700 (PDT)
Authentication-Results: batleth.sapienti-sat.org; arc=none; dkim=pass (2048-bit key; unprotected) header.d=sapienti-sat.org header.i=@sapienti-sat.org header.b=kGjTxwnz; dkim-atps=neutral
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=sapienti-sat.org; h=user-agent:message-id:references:in-reply-to:subject:subject :to:from:from:date:date:content-transfer-encoding:content-type :content-type:mime-version; s=dkim20170413; t=1587627499; bh=91Q JCjZfDPrxQbeLbLrXOc8VhwjNcpMz61PgqsqVxF4=; b=kGjTxwnzzekzwRVbk8q b046juDe9jVvZvmc9Jnp5PKa1iv2BaNTBG/JKcwsaoE89GTorJnZcx+EjAkcjrVw 5FYKLbvhpzvj51E8uEzUh3zWWwVAVf9NkQvmgZh/nWG06I/B8forXQAd/MjFyguQ ogWso0PFt+6GAnnKFJmBrDORIue3bDsFlHEBNy8w8UonqiCVVWwOwb3tD/e2sXO9 6Ei5p+S41JKH45zBBrQfJCXFmJLFpAkANuu2SfndtCpPAiBeHj27Gc+Ka+bifvMj aXbH9yJPEMZ1EzCWExoRU8rx/3Gkw7fBeU3KwWLKQol6P1YKKL8eJVHpFPZkRuqV qaw==
X-Virus-Scanned: Debian amavisd-new at sapienti-sat.org
Received: from www.sapienti-sat.org (localhost.localdomain [127.0.0.1]) by batleth.sapienti-sat.org (Postfix) with ESMTP id F015133E011B for <dmarc@ietf.org>; Thu, 23 Apr 2020 09:38:18 +0200 (CEST)
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Date: Thu, 23 Apr 2020 09:38:18 +0200
From: Juri Haberland <juri@sapienti-sat.org>
To: dmarc@ietf.org
In-Reply-To: <20200423002020.BAB07181BB09@ary.qy>
References: <20200423002020.BAB07181BB09@ary.qy>
Message-ID: <74a807f52a59fa87053fcc76aaa28a73@sapienti-sat.org>
X-Sender: juri@sapienti-sat.org
User-Agent: Roundcube Webmail/1.3.6
Archived-At: <https://mailarchive.ietf.org/arch/msg/dmarc/B_IZIrD_3GVkcz_W1iFogtvmO_o>
Subject: Re: [dmarc-ietf] Composition Kills: A Case Study of Email Sender Authentication
X-BeenThere: dmarc@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Domain-based Message Authentication, Reporting, and Compliance \(DMARC\)" <dmarc.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dmarc>, <mailto:dmarc-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dmarc/>
List-Post: <mailto:dmarc@ietf.org>
List-Help: <mailto:dmarc-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dmarc>, <mailto:dmarc-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 23 Apr 2020 07:38:24 -0000

On 2020-04-23 02:20, John Levine wrote:
> In article <51be5654-94c4-38c6-8f6b-dca403d6680a@dcrocker.net> you 
> write:

>> The paper asserts that AR is used as DMARC input.  I suspect that is
>> rarely, if ever, true.  Yes? No?
> 
> I'd say never.  To do DMARC rejects you have to do all of the
> validation in the SMTP daemon, which is before anything has a chance
> to create an A-R header.

Of course this is possible with the Milter protocol introduced by 
Sendmail and used also by Postfix. The mail traverses during the SMTP 
phase through different milters, e.g. a SPF milter, followed by a DKIM 
milter, and every milter injects an AR header with its results. The last 
milter is a DMARC milter that processes the AR headers and signals the 
SMTP daemon do either accept or reject the message. This is how OpenDKIM 
& OpenDMARC work together.

Other projects do it all in one milter (rspamd?)...


   Juri