From 0af5d184f56aac23f9e4916ced318e28df8221ab Mon Sep 17 00:00:00 2001 From: Ralph Slooten Date: Fri, 13 Dec 2024 20:05:30 +1300 Subject: [PATCH] Add SMTP From address when ignored parameters are received --- server/smtpd/lib.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/smtpd/lib.go b/server/smtpd/lib.go index 49f1382bd..20691eb82 100644 --- a/server/smtpd/lib.go +++ b/server/smtpd/lib.go @@ -416,6 +416,8 @@ loop: sizeMatch := mailFromSizeRE.FindStringSubmatch(match[3]) if sizeMatch == nil { // ignore other parameter + from = match[1] + gotFrom = true s.writef("250 2.1.0 Ok") } else { // Enforce the maximum message size if one is set.