Commit e4d7d16
committed
smtp: treat a mid-session helo/ehlo like a rset
A HELO or EHLO issued later in the session must clear all buffers and
reset the state exactly as if a RSET had been issued (RFC 5321 4.1.4).
Instead it was ignored, merging the next envelope into the abandoned one
and attributing the delivered message to the abandoned sender.
Handle a HELO/EHLO arriving after an envelope has been started or a
DATA/BDAT has been attempted like a RSET, completing the transaction on
the server's 250 reply. The data-phase check matters for a rejected
envelope-less DATA: its stale state would otherwise leave the next
message body unparsed.
Ticket: OISF#87151 parent 0fbec65 commit e4d7d16
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1414 | 1414 | | |
1415 | 1415 | | |
1416 | 1416 | | |
1417 | | - | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
1418 | 1428 | | |
1419 | 1429 | | |
1420 | 1430 | | |
| |||
0 commit comments