-
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
Duplicated HELO/EHLO #78
Comments
Do you mean specifically RFC 5321, $4.1.4? I would agree that to be compliant with this section, we should treat a second |
Yes, I do mean RFC 5321, $4.1.4. |
@Varbin Thanks for the response. I'd like to fix this, but as we're up against the Pycon deadline, I'm going to milestone this to post 1.0. |
I fully understand that. Also the duplicated |
@Varbin I wouldn't expect it from a non-buggy client. |
There is a patch for the stdlib implementation at http://bugs.python.org/issue21783, I might find some time to port it over later today. In terms of relevance: Using HELO or EHLO to reset a session is permitted by the standard so I think we should support it. I don't know about clients but I did use this when debugging SMTP servers manually before (test something, see what response you get, type EHLO and try something different). In that case it seems better to EHLO instead of RSET to explicitly start a new SMTP session while keeping the TCP connection. |
A patch would be: .... I just saw you made a pull request... |
* As per RFC 5321, §4.1.4, multiple ``HELO`` / ``EHLO`` commands in the same session are semantically equivalent to ``RSET``. (Closes #78)
As already mentioned in source code (
aiosmtpd/aiosmtpd/smtp.py
Line 264 in c25b878
Is there any special reason to not allow duplicated HELO/EHLO? I think the best way is to do the same other SMTP servers do: Allowing a duplicated HELO/EHLO.
Another option is to have a configuration option.
The text was updated successfully, but these errors were encountered: