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.