Re: [dnsext] I-D Action:draft-ietf-dnsext-aliasing-requirements-00.txt

Mark Andrews <marka@isc.org> Thu, 03 March 2011 13:34 UTC

Return-Path: <marka@isc.org>
X-Original-To: dnsext@core3.amsl.com
Delivered-To: dnsext@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id C197D3A69DC for <dnsext@core3.amsl.com>; Thu, 3 Mar 2011 05:34:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.205
X-Spam-Level:
X-Spam-Status: No, score=-2.205 tagged_above=-999 required=5 tests=[AWL=-0.206, BAYES_00=-2.599, J_CHICKENPOX_52=0.6]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hWW5avOnvZBj for <dnsext@core3.amsl.com>; Thu, 3 Mar 2011 05:34:51 -0800 (PST)
Received: from mx.pao1.isc.org (mx.pao1.isc.org [IPv6:2001:4f8:0:2::2b]) by core3.amsl.com (Postfix) with ESMTP id 1998A3A67DB for <dnsext@ietf.org>; Thu, 3 Mar 2011 05:34:51 -0800 (PST)
Received: from bikeshed.isc.org (bikeshed.isc.org [IPv6:2001:4f8:3:d::19]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "bikeshed.isc.org", Issuer "ISC CA" (verified OK)) by mx.pao1.isc.org (Postfix) with ESMTPS id DF7EBC941A; Thu, 3 Mar 2011 13:35:45 +0000 (UTC) (envelope-from marka@isc.org)
Received: from drugs.dv.isc.org (c211-30-172-21.carlnfd1.nsw.optusnet.com.au [211.30.172.21]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by bikeshed.isc.org (Postfix) with ESMTPSA id 504A8216C1E; Thu, 3 Mar 2011 13:35:45 +0000 (UTC) (envelope-from marka@isc.org)
Received: from drugs.dv.isc.org (localhost [127.0.0.1]) by drugs.dv.isc.org (Postfix) with ESMTP id C19B6B9E307; Fri, 4 Mar 2011 00:35:41 +1100 (EST)
To: Tony Finch <dot@dotat.at>
From: Mark Andrews <marka@isc.org>
References: <20110227191542.6824.qmail@joyce.lan> <335963D7-3440-45E6-843C-38F419462792@cisco.com> <4D6C3FD3.7010801@ucd.ie> <302DAD77E927757D3DEA05DF@nimrod.local><alpine.LSU.2.00.1103031107460.14985@hermes-1.csi.cam.ac.uk> <20110303114148.A360FB98E2E@drugs.dv.isc.org> <alpine.LSU.2.00.1103031148130.14985@hermes-1.csi.cam.ac.uk>
In-reply-to: Your message of "Thu, 03 Mar 2011 12:24:37 -0000." <alpine.LSU.2.00.1103031148130.14985@hermes-1.csi.cam.ac.uk>
Date: Fri, 04 Mar 2011 00:35:41 +1100
Message-Id: <20110303133541.C19B6B9E307@drugs.dv.isc.org>
Cc: Niall O'Reilly <Niall.oReilly@ucd.ie>, dnsext@ietf.org
Subject: Re: [dnsext] I-D Action:draft-ietf-dnsext-aliasing-requirements-00.txt
X-BeenThere: dnsext@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: DNS Extensions working group discussion list <dnsext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/dnsext>, <mailto:dnsext-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/dnsext>
List-Post: <mailto:dnsext@ietf.org>
List-Help: <mailto:dnsext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dnsext>, <mailto:dnsext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 03 Mar 2011 13:34:52 -0000

In message <alpine.LSU.2.00.1103031148130.14985@hermes-1.csi.cam.ac.uk>, Tony F
inch writes:
> On Thu, 3 Mar 2011, Mark Andrews wrote:
> > Tony Finch writes:
> > >
> > > The situation with TLS and SMTP is a mess. Inter-domain SMTP with TLS doe
> s
> > > not work with certificate validation. There is no specification for how t
> o
> > > validate the TLS certificate for an MX server, and it is not obvious what
> > > such a specification should say. In practice the vast majority of deploye
> d
> > > MX TLS certificates cannot be validated, neither against the MX owner nam
> e
> > > nor against the MX target.
> >
> > If you read RFC 821 the HELO response should be used to check that
> > you are talking to the machine you are expecting to.
> 
> RFC 821 is thorougly obsolete. In particular the canonicalization
> requirements that existed in the 1980s were relaxed in the 1990s and no
> longer apply.
> 
> In any case, the server's host name indicators are useless for secure
> server authentication, which is the whole point of TLS.

But they show what *should* be checked.   The MX record also needs 
to be checked.
 
> If I am sending mail to an address at dotat.at, I need to securely verify
> that the server I am talking to is supposed to receive mail for dotat.at.
> So the TLS certificate must authenticate the MX owner name, dotat.at, not
> the MX target mx.cam.ac.uk, nor the virtual service instance name
> ppsw-mx-e.csi.cam.ac.uk nor the physical service machine name
> ppsw-51.csi.cam.ac.uk. If you authenticate the MX target name or the
> server's claimed canonical host name, you are open to attack.

No.  SMTP is store and forward.  The MX records (cryptographically
verifiable with DNSSEC) say that you should be talking to mx.cam.ac.uk
and if you don't get a TLS connection that says you are talking to
that machine you should drop the SMTP connection.
 
> Note that SMTP is able to use one transaction to send a message with
> multiple recipients at different domains hosted on the same server. So the
> server needs to be able to present a certificate authenticating all of the
> mail domains it hosts. The server can't use TLS SNI to select a
> certificate dynamically because SNI only allows one name of each type
> which is incompatible with SMTP's multi-domain transaction support. In
> fact, if the client uses persistent connections it probably does not know
> at the time it negotiates TLS which mail domains it might encounter that
> deliver to the server.

No.
 
> Now perhaps this mess - both the protocol mess and the deployment mess -
> can be fixed by using the firmer foundations that DNSSEC provides, but
> that requires protocol development.
> 
> Tony.
> -- 
> f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
> Fisher: Westerly or northwesterly 3 or 4, occasionally 5, increasing 6 later
> in north. Mainly moderate, occasionally rough later. Fog patches for a time.
> Moderate or good, occasionally very poor.
-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: marka@isc.org