Skip to content
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

TLS with STARTTLS does not get connection #128

Closed
ghorwin opened this issue Jan 2, 2023 · 3 comments
Closed

TLS with STARTTLS does not get connection #128

ghorwin opened this issue Jan 2, 2023 · 3 comments

Comments

@ghorwin
Copy link

ghorwin commented Jan 2, 2023

Example code below does not get to ready-connected:

	SmtpClient smtp("mail.gmx.net", 587, SmtpClient::TlsConnection);
	smtp.setName("client.localhost");
	smtp.connectToHost();
	if (!smtp.waitForReadyConnected(3000)) {
		qDebug() << "Not connected";
		return;
	}

Output:

smtpclient: State: ConnectingState
smtpclient: [Socket] State: QAbstractSocket::HostLookupState
smtpclient: [Socket] State: QAbstractSocket::ConnectingState
smtpclient: [Socket] State: QAbstractSocket::ConnectedState
smtpclient: State: ConnectedState
smtpclient: [Socket] IN:  "220 gmx.net (mrgmx005) Nemesis ESMTP Service ready\r\n"
smtpclient: State: _EHLO_State
smtpclient: [Socket] OUT: "EHLO client.localhost"

After sending EHLO nothing happens and I get a timeout.

I've tried with another SMTP server, but also after sending EHLO nothing happens (no further state changes until time out). The happens on Windows 10 and Linux (Ubuntu 22.04).

Any ideas how to debug this?

-Andreas

@cheicktra2
Copy link

cheicktra2 commented Jan 2, 2023 via email

@ghorwin
Copy link
Author

ghorwin commented Jan 2, 2023

Hmm, seems that GMX does not support STARTTLS anylonger (though still mentioned on webpage), since I cannot get it to work with Tunderbird, either. SslConnection with port 465 works fine with GMX.

@ghorwin ghorwin closed this as completed Jan 2, 2023
@cheicktra2
Copy link

cheicktra2 commented Jan 2, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants