From 474f71bfffe53a9ade7addd3b0e363251487db79 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Wed, 27 May 2015 12:41:08 +0100 Subject: [PATCH] Note MAIL commands in -bS batch, to avoid smtp_no_mail logline. Bug 1346 --- doc/doc-txt/ChangeLog | 2 ++ src/src/smtp_in.c | 1 + test/confs/0006 | 1 + 3 files changed, 4 insertions(+) diff --git a/doc/doc-txt/ChangeLog b/doc/doc-txt/ChangeLog index dcae009b6..09f5c6049 100644 --- a/doc/doc-txt/ChangeLog +++ b/doc/doc-txt/ChangeLog @@ -111,6 +111,8 @@ JH/31 Check the HELO verification lookup for DNSSEC, adding new JH/32 Bug 1397: Enable ECDHE on OpenSSL, just the NIST P-256 curve. +JH/33 Bug 1346: Note MAIL cmd seen in -bS batch, to avoid smtp_no_mail log. + Exim version 4.85 ----------------- diff --git a/src/src/smtp_in.c b/src/src/smtp_in.c index aa3936288..b451c48f5 100644 --- a/src/src/smtp_in.c +++ b/src/src/smtp_in.c @@ -1645,6 +1645,7 @@ while (done <= 0) it is the canonical extracted address which is all that is kept. */ case MAIL_CMD: + smtp_mailcmd_count++; /* Count for no-mail log */ if (sender_address != NULL) /* The function moan_smtp_batch() does not return. */ moan_smtp_batch(smtp_cmd_buffer, "503 Sender already given"); diff --git a/test/confs/0006 b/test/confs/0006 index 3f5c25d33..e85bb4ec4 100644 --- a/test/confs/0006 +++ b/test/confs/0006 @@ -11,6 +11,7 @@ gecos_name = CALLER_NAME acl_smtp_rcpt = accept trusted_users = CALLER +log_selector = +smtp_no_mail # ----- Routers ----- -- 2.25.1