Re: [ietf-smtp] MTS-STS validation when MX host points to a CNAME, violating RFC 2181 § 10.3

John R Levine <johnl@taugh.com> Thu, 01 April 2021 16:02 UTC

Return-Path: <johnl@taugh.com>
X-Original-To: ietf-smtp@ietfa.amsl.com
Delivered-To: ietf-smtp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 762833A19D1 for <ietf-smtp@ietfa.amsl.com>; Thu, 1 Apr 2021 09:02:16 -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=iecc.com header.b=oM+Y+mIb; dkim=pass (2048-bit key) header.d=taugh.com header.b=InSJNirT
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 t9b2yfTxR_H2 for <ietf-smtp@ietfa.amsl.com>; Thu, 1 Apr 2021 09:02:11 -0700 (PDT)
Received: from gal.iecc.com (gal.iecc.com [IPv6:2001:470:1f07:1126:0:43:6f73:7461]) (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 B55E13A19BB for <ietf-smtp@ietf.org>; Thu, 1 Apr 2021 09:02:10 -0700 (PDT)
Received: (qmail 76131 invoked from network); 1 Apr 2021 16:02:08 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=iecc.com; h=date:message-id:from:to:cc:subject:in-reply-to:references:mime-version:content-type; s=12961.6065ee80.k2104; bh=u1x6ttowh40YsYFCCza0vVIbkLgwRQKLrti580h9MRY=; b=oM+Y+mIbAr7ghATlh0wDX1WJM+N0ZeT6pk3Ly1kV5T/y+dZuz6uiYLD2S8+lN3Lq66p0+Aaglf2S9QteKt7IN/rCdp8PjcJwCbt3R6Ch3dPwplaC8rWIqB9EyIM25gAupixPhzADusJXtKIInb9X5G+UnXsjP0x+ZewNQv+evLfUA42qPVUWEjGdmnQHdVFbthCBibWWoPzi+UqaMF8hAEYgEjy39GtE8YzGAi/ir9LuOzo98eeKIkzyMj3IQuZI3lDKBuPtR4EgRYC1yhtk6fFZg+vaKTcN+TWfdO7OawOq3+nKRLY1b7fY49OvfTo0Xx4ZD+e0Jpwb7qLwQ8Vp5w==
DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=taugh.com; h=date:message-id:from:to:cc:subject:in-reply-to:references:mime-version:content-type; s=12961.6065ee80.k2104; bh=u1x6ttowh40YsYFCCza0vVIbkLgwRQKLrti580h9MRY=; b=InSJNirT4a7pJ57ImEFbgSqUFirjsLdBtlk/lVb8vi9BH+Pu6azm0N+BMTYf6ecJj5UZWQKAzXGSlIm4Sg4JT1o+0/RfyOODL9AbJfSjrKK2T8rA2NJ57e8ao2FMzzn4lTXPvFKYSP72KPJG5h48YCf/jfLDdt9SeoxdGEalytZ+Q8DPg9yMVZIZMf9WBFPn5pI+mFj7XBx0X9SRoYS88vymZ4y44/LCho1sfiHCaOMvtRamqKZz4nMc37Mf4OrbozX91DdKcgpK4VAO4sEbgxKQ/294w56F8CKizWfcRl6J6yLEaoZ79S3m1Jxw+ww/5mtGe9mNWVgHEWP7vZzxLA==
Received: from ary.qy ([IPv6:2001:470:1f07:1126::78:696d:6170]) by imap.iecc.com ([IPv6:2001:470:1f07:1126::78:696d:6170]) with ESMTPS (TLS1.2 ECDHE-RSA AES-256-GCM AEAD) via TCP6; 01 Apr 2021 16:02:08 -0000
Received: by ary.qy (Postfix, from userid 501) id D4A3B71C6646; Thu, 1 Apr 2021 12:02:07 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1]) by ary.qy (Postfix) with ESMTP id 4484771C6628; Thu, 1 Apr 2021 12:02:07 -0400 (EDT)
Date: Thu, 01 Apr 2021 12:02:07 -0400
Message-ID: <87c820e7-e6be-97e6-2589-88e5c57b6ddd@taugh.com>
From: John R Levine <johnl@taugh.com>
To: Kristijonas Lukas Bukauskas <kr@n0.lt>
Cc: ietf-smtp@ietf.org
X-X-Sender: johnl@ary.qy
In-Reply-To: <464756802f3425cb53c3be6392af4390@n0.lt>
References: <20210401003023.713A871BE253@ary.qy> <d8768a088e2e9b73682e3d9bdbb372d9@n0.lt> <b2acacaa-5bed-e332-1855-6ef0183cf42@taugh.com> <464756802f3425cb53c3be6392af4390@n0.lt>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="0-1583746430-1617292927=:9127"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ietf-smtp/vcAfeF2lrN19Nj2TtHRqr6qdXnw>
Subject: Re: [ietf-smtp] MTS-STS validation when MX host points to a CNAME, violating RFC 2181 § 10.3
X-BeenThere: ietf-smtp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Discussion of issues related to Simple Mail Transfer Protocol \(SMTP\) \[RFC 821, RFC 2821, RFC 5321\]" <ietf-smtp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ietf-smtp>, <mailto:ietf-smtp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ietf-smtp/>
List-Post: <mailto:ietf-smtp@ietf.org>
List-Help: <mailto:ietf-smtp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf-smtp>, <mailto:ietf-smtp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 01 Apr 2021 16:02:16 -0000

>>> {"organization-name":"Microsoft 
>>> Corporation","date-range":{"start-datetime":"2021-03-30T00:00:00Z","end-datetime":"2021-03-30T23:59:59Z"},"contact-info":"tlsrpt-noreply@microsoft.com","report-id":"132616914860181612+n0.lt","policies":[{"policy":{"policy-type":"sts","policy-string":["version: 
>>> STSv1","mode: enforce","mx: mx.n0.lt","max_age: 
>>> 84600"],"policy-domain":"n0.lt"},"summary":{"total-successful-session-count":0,"total-failure-session-count":492},"failure-details":[{"result-type":"certificate-host-mismatch","failed-session-count":492}]}]}
>>> Do they complain about the certificate which includes both n0.lt and 
>>> *.n0.lt anyways?
>> 
>> Even without the CNAME error, why would it do that?  The cert matches
>> the name of the MX.
>
> So certificate-host-mismatch here should be understood that EITHER §4.1 [1] 
> (MX Host Validation) OR §4.2 [2] (Recipient MTA Certificate Validation) 
> failed and not that, according to the report, the certificate hostname 
> mismatched? Or what exactly?

It's probably just giving you the wrong error message.

Here's a radical idea: fix your MX entry and see if the errors go away.

Regards,
John Levine, johnl@taugh.com, Taughannock Networks, Trumansburg NY
Please consider the environment before reading this e-mail. https://jl.ly