Kmail smtp timeout

Dear All,

I am in need of help in sending emails from kmail.
It is showing SMTP timeout, though I am able to recieve mails through imap but sending is failed as it is saying connection timout.

smtp settings are: smtp.myorg.name port: 587 security: STARTTLS

I am also getting same problem on latest mozilla thunderbird(78.x on windows10), though send mail is working fine in thunderbird 68.10.0(ubuntu 18.04) on a different machine.

It seems some issue of TLS version. How can I solve these two problems ?

Thank You

See this page for trying SMTP from the command prompt:

https://halon.io/blog/how-to-test-smtp-servers-using-the-command-line/

What do you see if you follow the Test TLS section?

Following above link when I ran commands as below on my Leap 15.2 system, I got below


➜  ~ nc smtp.myorg.name 587
➜
➜  ~ openssl s_client -connect smtp.myorg.name:587 -starttls smtp
140060886372800:error:0200206E:system library:connect:Connection timed out:crypto/bio/b_sock2.c:110:
140060886372800:error:2008A067:BIO routines:BIO_connect:connect error:crypto/bio/b_sock2.c:111:
connect:errno=110
➜  ~ openssl version
OpenSSL 1.1.1d  10 Sep 2019
➜  ~


Interestingly, I happened to change my Internet provider from Broadband to 4G Hotspot, and re ran commands, and look everything worked smoothly


➜  ~ nc smtp.myorg.name 587                                    
220 smtp.myorg.name ESMTP

➜  ~ openssl s_client -connect smtp.myorg.name:587 -starttls smtp
CONNECTED(00000003)
depth=2 C = US, O = DigiCert Inc, OU = www.digicert.com, CN = DigiCert Global Root CA
verify return:1
depth=1 C = US, O = DigiCert Inc, CN = RapidSSL TLS DV RSA Mixed SHA256 2020 CA-1
verify return:1
depth=0 CN = *.myorg.name
verify return:1
---
Certificate chain
 0 s:CN = *.myorg.name
   i:C = US, O = DigiCert Inc, CN = RapidSSL TLS DV RSA Mixed SHA256 2020 CA-1
 1 s:C = US, O = DigiCert Inc, CN = RapidSSL TLS DV RSA Mixed SHA256 2020 CA-1
   i:C = US, O = DigiCert Inc, OU = www.digicert.com, CN = DigiCert Global Root CA
---


Now I am even able to send mail successfully thorough Kmail in Leap15.2

Does it really related to Internet service provider ?? If its really the case, How can I solve for my existing service provider?

I see no other likely possibility then blaming the ISP connection.

You could try using a VPN and see if then things work.

Though I can use Opera(free VPN) for browsing, how can use for email ? Any other free VPN alternatives available ?
Thanks

When my internet service provider made TLS mandatory sending mail through smtp failed. I referred to their documentation, made the changes required (TLS, authentication) and smtp was great again: https://www.m-net.de/fileadmin/Service/Downloads/Anleitungen_E-Mail_Programme/Allgemeine_E-Mail_Einstellungen.pdf You may try to proceed accordingly.

There are free VPN’s available and for a test that is not a bad idea.

In the document of @karlmistelberger I see settings are quite different over different e-mail clients, surprising…

https://susepaste.org/images/97448084.png

Thanks for the document, but it’s in Non-English, still going through I could intepret that doc suggest to use port 587(which I have already set). I am using STARTTLS with plain authentication.
As already said, Its working smoothly on my personal 4G hotspot, but not on my home broadband provider. I feel my home internet provider is using older technologies for Internet distribution, or may be blocking some TLS port(sorry for my ignorance).
Thanks

My take from the document is that different email programs need different settings. KMail is not listed so I would try all different settings.

  • Kmail sends mail with: server requires authentication, starttls, plain.
  • ‘openssl s_client -connect mail.mnet-online.de:587 -starttls smtp’ readily connects to the server.

Thus I think you need to talk to their support.

Does your Broadband supplier have any documentation available related to e-Mail setup?

  • Usually the setup for Mozilla Thunderbird can be used for the KDE Plasma Kontact suite setup …

as per doing above for my home broadband provider, I got as:


➜  ~ openssl s_client -connect smtp.myorg.name:587 -starttls smtp
140234172830144:error:0200206E:system library:connect:Connection timed out:crypto/bio/b_sock2.c:110:
140234172830144:error:2008A067:BIO routines:BIO_connect:connect error:crypto/bio/b_sock2.c:111:
connect:errno=110

doing same on my 4G hotspot, I got as:


➜  ~ openssl s_client -connect smtp.myorg.name:587 -starttls smtp
CONNECTED(00000003)
depth=2 C = US, O = DigiCert Inc, OU = www.digicert.com, CN = DigiCert Global Root CA
verify return:1
depth=1 C = US, O = DigiCert Inc, CN = RapidSSL TLS DV RSA Mixed SHA256 2020 CA-1
verify return:1
. 
.
.

Being staying outskirts of city and using not to standard home broadband, Itss difficult for me to explain the issue to contact person, as he says gmail is working then everything is working.
BTW is this issue may be related to DNS resoultion? because I encountered similar problem with my home ISP for my office website. To solve that I had to add ip address in /etc/hosts file.
I tried to find ip of my smtp from 24x7.com
Its showing like mtp.myorg.name/196.ab.cd.ef

If you want to check if is it an DNS issue, try “ping smtp.myorg.name”

if you want to build a career in it and get certificates in information technology. Here the website
certschief

Its not pinging by any means. I will talk to my home ISP

Thank you all for your help and time.