-
Notifications
You must be signed in to change notification settings - Fork 366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go-guerrilla doesn’t support “RCPT TO: <Postmaster>”. #201
Comments
The ABNF has already been parsed in parse.go TODO:
There's a question - what |
The RFC seems to be a bit unclear for And for the |
* ensure <postmaster> RCPT TO is correctly handled, for #201
Hi @issuefiler, Please see PR #202 - it's ready for your acceptance test :-) It works a little different from what was specified above (#201 (comment)) When testing: Note that if |
- Parser captures quoted local-parts without the escape characters - mail.Address.String() know when to quote local-part, - server's `allowsHost` function is ipv6 address aware (addresses specified in the config will get normalized to their ipv6 simplest form, addresses parsed from RCPT and MAIL commands will have ipv6 normalized) - if `<postmaster>` is used in the RCPT TO (without a host), then new functionality was added to assume that the host is assumed to be the Hostname setting for the Server - HELO/EHLO argument validation. #200 - The “header” processor populates “Received:” headers wrongly. #198 - tiny bug in “p_redis.go”. #196 - “MimeHeaderDecode” (envelope.go) returns an incorrectly-spaced string. #195 - go-guerrilla cannot properly handle some valid addresses. #199
RFC 5321
Test
Preset
Expectation
Case # 1
Case # 2
Case # 3
Case # 4
EDITED
Current
Case # 1 ✅
Case # 2 ✅
Case # 3 ❌
Case # 4 ❌
✅EDITEDFix (not tested)Validate the syntax per the ABNF. This must be done prior to the step 2, or it would break on the case # 4.If theHost
is empty and theUser
is case-insensitivelyPostmaster
, sayOK
.go-guerrilla/server.go
Lines 492 to 503 in 51f7dda
↓
The text was updated successfully, but these errors were encountered: