From 06a6f188c5fd423e787146f992e5a97f2476de91 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Tue, 9 Jul 2024 11:23:21 +0800 Subject: [PATCH] Reject "dot, LF" as ending data phase. Bug 3063 --- src/smtp_in.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/smtp_in.c b/src/smtp_in.c index eb9c7e6..215a4c7 100644 --- a/src/smtp_in.c +++ b/src/smtp_in.c @@ -5110,7 +5110,10 @@ while (done <= 0) dummy call to get the DATA command sent. */ if (!acl_smtp_predata && cutthrough.cctx.sock < 0) - rc = OK; + { + if (!check_sync()) goto SYNC_FAILURE; + rc = OK; + } else { uschar * acl = acl_smtp_predata ? acl_smtp_predata : US"accept"; -- 2.27.0