From: Jeremy Harris Date: Sun, 13 Sep 2015 14:26:34 +0000 (+0100) Subject: TLS: downgrade fail of cert-based authentication from log message to debug messsage X-Git-Tag: exim-4_87_RC1~97 X-Git-Url: https://git.exim.org/exim.git/commitdiff_plain/805bb5c3b781ad3819018dfc79220f77df0aae67 TLS: downgrade fail of cert-based authentication from log message to debug messsage --- diff --git a/doc/doc-txt/ChangeLog b/doc/doc-txt/ChangeLog index bc95690b1..dbf634de3 100644 --- a/doc/doc-txt/ChangeLog +++ b/doc/doc-txt/ChangeLog @@ -38,6 +38,11 @@ JH/04 Bug 1686: When compiled with EXPERIMENTAL_DSN_INFO: Add extra information to DSN fail messages (bounces): remote IP, remote greeting, remote response to HELO, local diagnostic string. +JH/05 Downgrade message for a TLS-certificate-based authentication fail from + log line to debug. Even when configured with a tls authenticator many + client connections are expected to not authenticate in this way, so + an authenticate fail is not an error. + Exim version 4.86 ----------------- diff --git a/src/src/smtp_in.c b/src/src/smtp_in.c index 998245137..abbcad62c 100644 --- a/src/src/smtp_in.c +++ b/src/src/smtp_in.c @@ -3322,12 +3322,10 @@ while (done <= 0) { smtp_cmd_data = NULL; - if ((c = smtp_in_auth(au, &s, &ss)) != OK) - log_write(0, LOG_MAIN|LOG_REJECT, "%s authenticator failed for %s: %s", - au->name, host_and_ident(FALSE), ss); - else + if (smtp_in_auth(au, &s, &ss) == OK) DEBUG(D_auth) debug_printf("tls auth succeeded\n"); - + else + DEBUG(D_auth) debug_printf("tls auth not succeeded\n"); break; } }