This forum has been archived. All content is frozen. Please use KDE Discuss instead.

KMail problem with smtp SSL: writing to socket failed

Tags: None
(comma "," separated)
User avatar
ti_tux
Registered Member
Posts
15
Karma
0
OS
Hi,

I have problems with KMail when I want to send a mail, a notification pops up saying that the transport failed, and writing to socket failed.

I give a try with thunderbird and the same settings for the smtp server with SSL and it works well. So the problem is with KMail or any related component but I do not know where or what search to solve this issue.

The first time, I used the account wizard. The second time, I decided to configure the smtp server manually after having removed it. So I have gone to settings > Configure KMail > Accounts > sending tab > and I add my smtp server with this settings : encryption SSL on port 465 (like thunderbird was set), authentication plain, server requires authentication checked (with my correct login/password).

If someone can help me, do not hesitate :)

I run into this issue on both:
KDE 4.10.2 on Kubuntu 13.04
KDE 4.9.5 on Kubuntu 12.04
User avatar
einar
Administrator
Posts
3402
Karma
7
OS
Are you using KWallet to store passwords?
I have no issues with SMTP (but I use STARTTLS instead of SSL).


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
User avatar
ti_tux
Registered Member
Posts
15
Karma
0
OS
einar wrote:Are you using KWallet to store passwords?

Yes, I use KWallet. I've tried with another smtp server from an other mail service with STARTTLS encryption and it works well. But the mail service that I want to use does not handle STARTTLS but SSL. So I'm stuck. I would like to understand why it does not work, and possibly resolve this issue.
User avatar
einar
Administrator
Posts
3402
Karma
7
OS
Do you have any errors in .xsession-errors? DId you have any issues importing the server's certificate?


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
User avatar
ti_tux
Registered Member
Posts
15
Karma
0
OS
einar wrote:Do you have any errors in .xsession-errors?


I have some warnings/errors :

Code: Select all
QStringList Akonadi::NepomukSearch::search(const QString&) Calling blockingQuery() failed!
QStringList Akonadi::NepomukSearch::search(const QString&) Calling blockingQuery() failed!
kwalletd(1688)/kdeui (Wallet) KWalletD::setupDialog: Application ' "Mail Dispatcher Agent" ' using kwallet without parent window!
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x1000042
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x1000042
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x1000042
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x1000042
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x1000042
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 19 (X_DeleteProperty)
  Resource id:  0x1000042
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x1000042
X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x1000042
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QObject::connect: Cannot connect (null)::destroyed() to QHostInfoLookupManager::waitForThreadPoolDone()
kio_smtp(6418)/kio (kioslave) KIO::SlaveBase::error: error() called twice! Please fix the KIO slave.
plasmapackage:/ui/NotificationDelegate/NotificationDelegate.qml:189:21: QML TextEdit: Possible anchor loop detected on fill.
plasmapackage:/ui/NotificationDelegate/NotificationDelegate.qml:143:13: QML Item: Binding loop detected for property "height"
plasmapackage:/ui/NotificationDelegate/NotificationDelegate.qml:143:13: QML Item: Binding loop detected for property "height"
file:///usr/lib/kde4/imports/org/kde/plasma/components/TabButton.qml:111:5: QML QObject_QML_214: Binding loop detected for property "portrait"
file:///usr/share/kde4/apps/plasma/plasmoids/org.kde.notifications/contents/ui/Notifications.qml:186:17: QML TabButton: Binding loop detected for property "implicitHeight"
file:///usr/lib/kde4/imports/org/kde/plasma/components/TabButton.qml:111:5: QML QObject_QML_214: Binding loop detected for property "portrait"
file:///usr/lib/kde4/imports/org/kde/plasma/components/TabButton.qml:111:5: QML QObject_QML_214: Binding loop detected for property "portrait"
file:///usr/lib/kde4/imports/org/kde/plasma/components/TabButton.qml:111:5: QML QObject_QML_214: Binding loop detected for property "portrait"
file:///usr/lib/kde4/imports/org/kde/plasma/components/TabBar.qml:150:5: QML Item: Possible anchor loop detected on fill.
file:///usr/lib/kde4/imports/org/kde/plasma/components/TabBar.qml:150:5: QML Item: Possible anchor loop detected on fill.
file:///usr/lib/kde4/imports/org/kde/plasma/components/TabBar.qml:150:5: QML Item: Possible anchor loop detected on fill.
A message was received from the server with no job to handle it: "* BYE idle for too long " "(2a204259452069646c6520666f7220746f6f206c6f6e6720)"


einar wrote:DId you have any issues importing the server's certificate?


Hmmm, how do you do this ? I only configured in KMail the smtp server parameters and then allowed KWallet to all questions that were asked. With the wizard account, it was the same, it did not ask any certificate explicitly unless I skipped something ?
User avatar
einar
Administrator
Posts
3402
Karma
7
OS
Well, if you have a "proper" certificate it shouldn't have told you anything. I asked because if instead you use self-signed certs, it should prompt you.

A message was received from the server with no job to handle it: "* BYE idle for too long " "(2a204259452069646c6520666f7220746f6f206c6f6e6720)"


I just noticed this. Do you have any errors/notices on the server when you try to send mail?


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
User avatar
ti_tux
Registered Member
Posts
15
Karma
0
OS
einar wrote:Well, if you have a "proper" certificate it shouldn't have told you anything. I asked because if instead you use self-signed certs, it should prompt you.

OK. It's not the case.

einar wrote:
A message was received from the server with no job to handle it: "* BYE idle for too long " "(2a204259452069646c6520666f7220746f6f206c6f6e6720)"


I just noticed this. Do you have any errors/notices on the server when you try to send mail?


The server is not mine, the owner is a french mail service provider (you think well if it was my own server, I won't use SSL as I have trouble with this encryption). So unfortunately I do not have any access to the server log...
User avatar
einar
Administrator
Posts
3402
Karma
7
OS
If you're willling to accept a (temporary) decrease in performance, you can turn on the debugger to see what's happening: launch "akonadiconsole", go to the "Debugger" tab, check "enable debugger", then try to send a mail. A *lot* of tabs will pop up, check only the one that's called "dispatcher agent" and look at the log.

Don't forget to disable debugging when you're done, or KMail's performance will drop considerably.


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
User avatar
ti_tux
Registered Member
Posts
15
Karma
0
OS
So I've just done what you told me. The only error I see is the following :

Code: Select all
48 UID STORE 3441 REV 0 (REMOTEID "1366897585.R538.kubuntu" +FLAGS ($ERROR) ATR:ErrorAttribute "Failed to transport message. smtp.laposte.net" ATR:DispatchModeAttribute "never")
User avatar
einar
Administrator
Posts
3402
Karma
7
OS
Please file a bug on bugs.kde.org with this error message and all the details you can give on the ISP etc. Thanks.


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
User avatar
ti_tux
Registered Member
Posts
15
Karma
0
OS
einar wrote:Please file a bug on bugs.kde.org with this error message and all the details you can give on the ISP etc. Thanks.

:( OK. Thank you.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]