in standalone smtp client, smtps schema should use ... smtps port
authorgilles <gilles@openbsd.org>
Mon, 2 Sep 2019 19:17:43 +0000 (19:17 +0000)
committergilles <gilles@openbsd.org>
Mon, 2 Sep 2019 19:17:43 +0000 (19:17 +0000)
diff from Ross L Richardson <openbsd@rlr.id.au>

usr.sbin/smtpd/smtpc.c

index fa46885..42257b6 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: smtpc.c,v 1.6 2019/07/02 09:36:20 martijn Exp $       */
+/*     $OpenBSD: smtpc.c,v 1.7 2019/09/02 19:17:43 gilles Exp $        */
 
 /*
  * Copyright (c) 2018 Eric Faurot <eric@openbsd.org>
@@ -229,7 +229,7 @@ parse_server(char *server)
        else if (!strcmp(scheme, "smtps")) {
                params.tls_req = TLS_SMTPS;
                if (port == NULL)
-                       port = "submission";
+                       port = "smtps";
        }
        else if (!strcmp(scheme, "smtp")) {
        }