LMTP should reject unknown lists in RCPT-stage
Bug #982555 reported by
Bernhard Schmidt
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNU Mailman |
Triaged
|
High
|
Unassigned |
Bug Description
At the moment the LMTP runner rejects mails to non-existing lists after the DATA stage.
# telnet localhost 8024
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail.svr02.
MAIL FROM: <email address hidden>
250 Ok
RCPT TO: <email address hidden>
250 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
Message-ID: <email address hidden>
as
.
550 Requested action not taken: mailbox unavailable
It should reject invalid addresses in the RCPT TO stage, this way it could easily be used with Postfix' feature "reject_
Related branches
lp:~macobo/mailman/macobo-rcpt-stage-reject
Ready for review
for merging
into
lp:mailman
- Mailman Coders: Pending requested
-
Diff: 82 lines (+48/-0)2 files modifiedsrc/mailman/runners/lmtp.py (+18/-0)
src/mailman/runners/tests/test_lmtp.py (+30/-0)
To post a comment you must log in.
Should be pretty easy to do; the test may be the hardest part. :)