Re: [Uta] SMTP Over TLS on Port 26 - Implicit TLS Proposal

Viruthagiri Thirumavalavan <giri@dombox.org> Mon, 07 January 2019 10:09 UTC

Return-Path: <giri@dombox.org>
X-Original-To: uta@ietfa.amsl.com
Delivered-To: uta@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6DD13130DE3 for <uta@ietfa.amsl.com>; Mon, 7 Jan 2019 02:09:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=dombox.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 vZpaIJ0P0VVT for <uta@ietfa.amsl.com>; Mon, 7 Jan 2019 02:09:53 -0800 (PST)
Received: from mail-yw1-xc29.google.com (mail-yw1-xc29.google.com [IPv6:2607:f8b0:4864:20::c29]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 79DF312D4F1 for <uta@ietf.org>; Mon, 7 Jan 2019 02:09:53 -0800 (PST)
Received: by mail-yw1-xc29.google.com with SMTP id g75so16977736ywb.1 for <uta@ietf.org>; Mon, 07 Jan 2019 02:09:53 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dombox.org; s=default; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=9kV/CXSxcqquQ/ZYOfs3QLD7q1uYTM0pQse/+EbQ2nk=; b=juwPskNd4p2kZKIJ9VIKr3eDZjqXRd843/oGPVtDG3lMndzGHLC6S86IAlB+AnfKDr SYW+DSBdrguVrmWiYmN0tj6+5vEg+fbMKj//Vww4OduyeUidqs8LHK7q9/4bFer38CTW tB4sHeCXRrNVgQvXR3l++sBL/FTnW2yDrXOjRBvuk34dKIkX2AgCo4MN2Bldi9bfm1m3 kIWoQvhDR7cUN5PHsgB7RpjRlUMun0PfqwPG8BhU2+C+Nv/X1Is9g3ecyZgdY8P5hvhW raUNTqvJXCBjkrJQEmm2CxnGKqbPuHVxUzGKaKOxx7BlzleztosdUwrvRyrEXG/a533V 4Sxw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=9kV/CXSxcqquQ/ZYOfs3QLD7q1uYTM0pQse/+EbQ2nk=; b=l5b3OmWgV7IBjXCfWW8YBPSNWlMr3VLHg7BsNn1z7nc3DHX64/mgEm5IFqkHof5KMy urFsNIfdcP8xPgXaK48QKdPfajgSxwYFXLhvG3XvXoxuhBjms162ALRktyCxMkJs4+GS 4H3tKLzs9ZBvX5JF7GK6Qs/PIhUm0L1+foK0RvpLqYZAijXz7TFWPtxPm3Qc28ndedvM RYsA2DAavtSpQi00HbbH6+Gx6ZbtZkiShIIIWEarwEeeoi0bxhDdLqbMwDBqqrHm7o2x kgUSjzY7HUXUFALwC2Q8uWlqZp62SCBfHlScsFoC3JZ3o6kd/yXMACVOf7aINKMyVELR jBvg==
X-Gm-Message-State: AA+aEWbgzq45kL3Tcjm7jz/2ls92mtOHXfBualU06R2dvnR9Y8rb23SG gmawjtWz6pgsEdb5rZh0BzeiNmAfvKrML9vKQsYgNrdy/Ls=
X-Google-Smtp-Source: AFSGD/VTeTDAQczMrc202AzxwjQ3cZvTPlBr+iI5tIgjkh7LvlZ93gNmV10YZ3J9kspmdWXeHF0Ihnq47X93+TUEwEI=
X-Received: by 2002:a81:ae25:: with SMTP id m37mr63325810ywh.14.1546855792443; Mon, 07 Jan 2019 02:09:52 -0800 (PST)
MIME-Version: 1.0
References: <CAOEezJTyEf+Sn9ZqQPue1DFUSoFO211YogJ6ufYJxswWzXk=_A@mail.gmail.com> <20190106010828.CC431200C5ED52@ary.qy> <CAOEezJShOYkmy8-E+8zG=CPXxrWNcxf8q8W8MnW-v1RT0FzEWw@mail.gmail.com> <123cecc0-aba2-9530-c0d9-b6437f295140@domblogger.net> <88fad90d-24b6-fe4d-5df8-bc294c4f6b33@bluepopcorn.net> <CAOEezJS+T3pP-GqwJFeT=HGbOu1TkY6W0kyjP9_FcVsaJ=hw7A@mail.gmail.com> <b4fe2502-dc1e-5dea-8515-b69ed262ac8f@domblogger.net>
In-Reply-To: <b4fe2502-dc1e-5dea-8515-b69ed262ac8f@domblogger.net>
From: Viruthagiri Thirumavalavan <giri@dombox.org>
Date: Mon, 07 Jan 2019 15:39:41 +0530
Message-ID: <CAOEezJTFxhRYGKQD0a8LLEL7UTPKmfdF5uYLDpZdj3Zm9P+wZw@mail.gmail.com>
To: uta@ietf.org
Content-Type: multipart/alternative; boundary="000000000000071b58057edb6e49"
Archived-At: <https://mailarchive.ietf.org/arch/msg/uta/ZaLFl6kAzgSco5UCkhU-kUAbC_0>
Subject: Re: [Uta] SMTP Over TLS on Port 26 - Implicit TLS Proposal
X-BeenThere: uta@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: UTA working group mailing list <uta.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/uta>, <mailto:uta-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/uta/>
List-Post: <mailto:uta@ietf.org>
List-Help: <mailto:uta-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/uta>, <mailto:uta-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 07 Jan 2019 10:09:56 -0000

Alice thanks for the insight.

Rather than use a hostname to specify SMTPS only, how about a DNS TXT
> record to indicate SMTPS only?


Third party mail hosting services usually provide services for millions of
domains. You are asking those millions of people to go for 1 more step. I'm
asking that step should be embedded in the mx hostname. Users should do the
steps as they did before, but now the mx records contains smtps prefix.

And if that DNS TXT record exists, rather than waste a < 1024 port
> number, just have the MTA client use Port 25 with STARTTLS required.
> Then it is just like MTA-STS except w/o the HTTPS component that secures
> the MX record.
> But bottom line is to be RFC compliant, an MX host MUST accept on Port
> 25 without encryption.


You are worried about wasting a port. But I'm worried about bringing full
possible encryption to the SMTP.  I have never heard of many of the
services found in < 1024 ports. You maybe too. So i'm pretty sure IANA ok
with assigning a new port to SMTPS.

My proposal is to being "Implicit TLS" to the SMTP relay. If you don't
allocate a new port, then people are not going to take the solution
seriously. And as you mentioned, an MX host MUST accept on port 25 without
encryption. So you can do all the hack you want like STARTTLS, port 25 is
never gonna be treated as a fully secure protocol. Via STARTTLS we are
trying to provide "best effort" security. SMTPS can provide "Full effort"
security. That's the maximum possible security we can provide. Top to
bottom everything encrypted. We all moved to HTTPS today.  It will take
many decades to completely move to SMTPS. Maybe 20 years. But if we worry
about wasting a port today, then it's gonna take forever.

The MTA client decides whether or not it wants to send without an
> encrypted session, the server MUST accept if the client chooses to
> connect without encryption.
> The MX server already has two different ways it can advertise to MTA
> clients they can safely require the connection to be secure, DANE for
> SMTP and MTA-STS. Both of those ways secure the MX record.


Both STS and DANE are not a solution for non-tech savvy folks. I'm gonna
hold-on to that point. My solution primarily try to deal with the SMTP
security. But I also incorporated STS and DANE as 2FA as you mentioned in
my revised proposal. But I made them optional. Not mandatory. If you make
them mandatory, then people are not gonna adopt due to its complicated
nature.

All you proposal seems to be offering is MTA-STS without a mechanism to
> secure the MX records.


In my updated proposal, I mentioned that you can use either STS or DANE to
protect MX records. I even gave example there.
https://gist.github.com/mistergiri/a4c9a5f1c26fd7003ebc0652af95d314#2fa

I just don't see a need for what is proposed. I do not understand the
> problem it solves.


It tries to make everyone upgrade to a new secure protocol in the long run.
But also tries to protect the STARTTLS downgrade attacks. As for
authentication, it leaves the job to both STS and DANE






On Mon, Jan 7, 2019 at 2:41 PM Alice Wonder <alice@domblogger.net> wrote:

> Rather than use a hostname to specify SMTPS only, how about a DNS TXT
> record to indicate SMTPS only?
>
> And if that DNS TXT record exists, rather than waste a < 1024 port
> number, just have the MTA client use Port 25 with STARTTLS required.
>
> Then it is just like MTA-STS except w/o the HTTPS component that secures
> the MX record.
>
> But bottom line is to be RFC compliant, an MX host MUST accept on Port
> 25 without encryption.
>
> The MTA client decides whether or not it wants to send without an
> encrypted session, the server MUST accept if the client chooses to
> connect without encryption.
>
> The MX server already has two different ways it can advertise to MTA
> clients they can safely require the connection to be secure, DANE for
> SMTP and MTA-STS. Both of those ways secure the MX record.
>
> All you proposal seems to be offering is MTA-STS without a mechanism to
> secure the MX records.
>
> I'm perfectly with the recommendation that MTA clients require a secure
> connection if the DNS component of MTA-STS is present but the HTTPS
> component is not there.
>
> In fact I'm perfectly fine with MTA clients that refuse connections that
> do not offer STARTTLS regardless of whether the other server offers
> MTA-STS or DANE.
>
> I already do that! On web servers that are MTA client only. When a
> web-app user does a password reset, or anything else web-app account
> related, I do not want it modified in transit allowing easy NSA (or
> other) phishing access. So the receiving MX supports STARTTLS or the
> message is not sent.
>
> I don't need a different port number for that. And honestly it has never
> been a problem, never had a user account use an e-mail where the MX
> server did not offer STARTTLS. I'm sure they exist, but are not common.
>
> I just don't see a need for what is proposed. I do not understand the
> problem it solves. And securing the MX record (via DNSSEC or MTA-STS) is
> something that SHOULD be encouraged, whether or not you are aware of
> helicopters (helicopters is reference to link that argues DNSSEC isn't
> really needed because some military Generals didn't like technology that
> shot down helicopters)
>
> On 1/7/19 12:19 AM, Viruthagiri Thirumavalavan wrote:
> > Hey all, revised my draft based on the feedback I received from this
> > thread.
> >
> > Changelog:
> >
> > * Added starttls only support.
> > * Provided test cases for IDN names.
> > * Included Jim Fenton's proposal in the related projects section.
> > * No port hardcoding. Removed 26pref and 26only options. Now MX hosts
> > can start with either "smtps-" or "starttls-" prefix
> > * Solution can be used along with STS and DANE
> >
> > https://gist.github.com/mistergiri/a4c9a5f1c26fd7003ebc0652af95d314
> >
> > Thanks
>
> _______________________________________________
> Uta mailing list
> Uta@ietf.org
> https://www.ietf.org/mailman/listinfo/uta
>


-- 
Best Regards,

Viruthagiri Thirumavalavan
Dombox, Inc.