mirror of
https://github.com/axllent/mailpit.git
synced 2026-04-26 00:35:51 +03:00
[GH-ISSUE #622] Mailpit accepts RCPT TO with malformed source route syntax instead of rejecting it #389
Labels
No labels
awaiting feedback
bug
docker
documentation
enhancement
github_actions
invalid
pull-request
question
stale
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/mailpit#389
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rsingha108 on GitHub (Jan 21, 2026).
Original GitHub issue: https://github.com/axllent/mailpit/issues/622
Description
Mailpit accepts an invalid RCPT TO address that includes a malformed source route (missing the required colon), returning 250 OK instead of rejecting the syntax error. This permits delivery attempts to an invalid recipient address and violates SMTP syntax handling per RFC 5321 §4.1.1.3.
Affected Version
v1.28
Steps to Reproduce
Buggy Behavior
Mailpit responds “250 2.1.5 Ok” to RCPT TO:<@route.example user@example.com>, accepting a recipient address with an invalid source route syntax (missing the colon).
Expected Behavior
The server should reject the malformed recipient address with a 501 syntax error (e.g., “501 Syntax error in parameters or arguments”) because the source route is not correctly formed.
As per RFC 5321 [4.1.1.3]: "[4.1.1.3] Receiving systems MUST recognize source route syntax but SHOULD strip off the source route specification and utilize the domain name associated with the mailbox as if the source route had not been provided."
@axllent commented on GitHub (Jan 23, 2026):
Thank you, but this issue was already fixed in v1.28.3.