-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
SMTP server did not accept STARTTLS with error: 503 5.5.2 Send hello first #71
Comments
I also tried the connection through command line and telnet. With EHLO sent first, the SMTP server responded properly:
With sending
|
ping @ajaxovic |
Hmmm, that is strange, mail server hosted in cz.nic behaves differently:
After some mailing with server admin, he said |
Maybe one thing on the top of my head, is it OK to have TLS on port 25? Or should we use 587? Can you test it? |
@ajaxovic The port shouldn't be the problem as the SMTP communication works in different network layer. |
I don't fully understand the SMTP standard, but I've skimmed through the RFCs regarding the SMTP communication and this is what I found:
To conclude, I'm convinced, that SMTP clients should in every session start with the command EHLO, then STARTLS, if they choose to (after which the client should send EHLO again), and finally they could start the AUTH process. If the server does not offer 250-AUTH PLAIN, then the server doesn't thinkg the connection is secured and requires you to use TLS. |
What about to try EHLO, if fails, STARTTLS and try it again? |
I am reverting #67, it seems not correct, it sends twice EHLO. |
@dg We're getting similar error from Gmail SMTP on 3.1.3 - d9e2741 also does not work, but with diferent error: |
Hmmm, probably missing read(). Can you check this 9a86fb6? |
@dg Yeah, that works with gmail. |
Version: 3.1.3
Bug Description
After upgrading nette/mail to version 3.1.3 from 3.1.2, the e-mails won't send with exception:
I suspect this pull request #67 to be an issue.
Steps To Reproduce
Send e-mail with this settings:
Expected Behavior
E-mail is sent
Possible Solution
Revert the pull request #67
The text was updated successfully, but these errors were encountered: