| Ticket UUID: | 1224575 | |||
| Title: | 'MAIL FROM <>' fails, but shouldn't | |||
| Type: | Bug | Version: | None | |
| Submitter: | coldstore | Created on: | 2005-06-21 03:31:15 | |
| Subsystem: | smtpd | Assigned To: | patthoyts | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2005-06-21 20:43:52 | |
| Resolution: | Fixed | Closed By: | patthoyts | |
| Closed on: | 2005-06-21 13:43:52 | |||
| Description: |
in proc ::smtpd::MAIL, around line 624, the result from split_address is parsed using ::mime::parseaddress, which will fail if it is passed a "", ie if the form 'MAIL FROM <>' is received. However, RFC 821 (3.6. RELAYING) provides: 'it is permissible to leave the reverse-path null. A MAIL command with a null reverse-path appears as follows: MAIL FROM:<>'. This is used in some bounce messages, and serves to prevent bounce loops. I recommend that the result from split_address be inspected, and if it is "", the address is not parsed, but simply taken as is, and passed to validate_sender, etc. I can provide patches if necessary. Please advise. | |||
| User Comments: |
patthoyts added on 2005-06-21 20:43:52:
Logged In: YES user_id=202636 OK. RFC 2821 sec 3.7 agrees. Fix committed. The core server will accept such addresses and the programmer can then decide what to do in the validate_sender procedure. The example smtpd code will reject such mails. | |||
Home
Blog
Docs
Downloads
Tickets
Timeline
Branches
Tags
Wiki