Closed issuefiler closed 4 years ago
For case 2, it's valid syntactically, but of course the domain is invalid. Looks like the Postfix option might be seldom-used bloat? (disabled by default).
Case 3: Yes, the RFC has mixed-case "IPv6". However, the case-insensitivity was added because for example, Go's Dial function is all lower case (although different syntax too) https://golang.org/src/net/dial.go?s=9799:9847#L306
Todo:
Actually, this can be solved easier than written above. No need to use a separate allowsIP function, can reuse existing lookup, just normalize when an ip is detected...
Fixed in #202
RFC 5321
A test for
address-literal
mailboxesPreset
Test cases
Case # 1 🆗
Parsed as an
address-literal
, accepted; good.Case # 2 ❓
Parsed as a
Domain
, not anaddress-literal
. Not sure if it’s valid. Related: Postfix’sresolve_numeric_domain
configuration.Case # 3 ❓
Parsed as an
address-literal
; accepted; okay, but not sure if theIPv6:
prefix can be case-insensitive.Case # 4 ❌
Parsed as an
address-literal
; the same IPv6, but got refused due to its different form; bad.