From: eric Date: Mon, 3 Sep 2018 11:48:27 +0000 (+0000) Subject: use new smarthost syntax in log message X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=5bc3c73e90686271268df913843d067057ae5d7d;p=openbsd use new smarthost syntax in log message --- diff --git a/usr.sbin/smtpd/mta_session.c b/usr.sbin/smtpd/mta_session.c index f68266e9d48..d1de954f8fd 100644 --- a/usr.sbin/smtpd/mta_session.c +++ b/usr.sbin/smtpd/mta_session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mta_session.c,v 1.105 2018/07/25 16:00:48 eric Exp $ */ +/* $OpenBSD: mta_session.c,v 1.106 2018/09/03 11:48:27 eric Exp $ */ /* * Copyright (c) 2008 Pierre-Yves Ritschard @@ -487,7 +487,7 @@ mta_connect(struct mta_session *s) struct sockaddr_storage ss; struct sockaddr *sa; int portno; - const char *schema = "smtp+tls://"; + const char *schema; if (s->helo == NULL) { if (s->relay->helotable && s->route->src->sa) { @@ -528,7 +528,7 @@ mta_connect(struct mta_session *s) break; } else if (s->flags & MTA_DOWNGRADE_PLAIN) { - /* smtp+tls, with tls failure */ + /* smtp, with tls failure */ break; } default: @@ -551,15 +551,15 @@ mta_connect(struct mta_session *s) s->attempt += 1; if (s->use_smtp_tls) - schema = "smtp+tls://"; + schema = "smtp://"; else if (s->use_starttls) - schema = "tls://"; + schema = "smtp+tls://"; else if (s->use_smtps) schema = "smtps://"; else if (s->flags & MTA_LMTP) schema = "lmtp://"; else - schema = "smtp://"; + schema = "smtp+notls://"; log_info("%016"PRIx64" mta " "connecting address=%s%s:%d host=%s",