Skip to content

Commit

Permalink
Add SMTP From address when ignored parameters are received
Browse files Browse the repository at this point in the history
  • Loading branch information
axllent committed Dec 13, 2024
1 parent 4ad6a45 commit 0af5d18
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/smtpd/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 0af5d18

Please sign in to comment.