-
Notifications
You must be signed in to change notification settings - Fork 96
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
SMTPConnection.prototype._parseAddressCommand is not compliant to RFC 5322 #5
Comments
"much.more unusual" fails here because of the whitespace in username part. I also checked how gmail treats this and these are the results:
So quoted usernames are allowed but whitespaces or @ symbols inside the username are not. I know that Gmail is not the purest reference but usually it is good enough. I updated RCPT verification rules to allow usernames in quotes (b3f18f3), so this should match the behavior of Gmail more or less. if anyone would mind making it more RFC complaint then it would be great but for now it is good enough. The issue with unicode addresses is clearly a bug, I'm going to look into it to get it working. |
ZoneMTA in it's own is able to handle unicode addresses just fine. The problem is that such address does not pass the isemail validation test which seems to be described in this issue: skeggse/isemail#17 For now I monkey-patched unicode support into ZoneMTA by just replacing any unicode range characters in email addresses before validating these with isemail bb6557f. I hope that in the future isemail starts accepting and validating unicode character by itself. |
For now there is not going to be support for quoted addresses that include spaces even though the spec would allow it. If this is something you actually would need, eg. there are real people out there who are not able to use ZoneMTA because of this restriction, then let me know. |
It seems to be implementing a bit of RFC 6530 to allow internationalization of email addresses (unicode), but unfortunately it renders RCPT TO parsing invalid:
rcpt to: <"much.more unusual"@example.com>
are rejected with501 Error: Bad recipient address syntax
)rcpt to: <δοκιμή@παράδειγμα.δοκιμή>
rejected with553 The recipient address <δοκιμή@παράδειγμα.δοκιμή> is not a valid RFC-5321 address.
,Resolving the first nonconformance may reveal another problem:
onRcptTo
expects only one@
character in email address.The text was updated successfully, but these errors were encountered: