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

KMail2 send Mails (SMTP)

Tags: None
(comma "," separated)
User avatar
Rettich
Registered Member
Posts
123
Karma
0
OS

KMail2 send Mails (SMTP)

Fri Jul 29, 2011 5:49 am
I really think KMail2 is hating me. I upgraded form KMail 1.x (KDE 4.6.5) to KMail2 (KDE 4.7.0) and now, I can't send mails.

Everytime I try to send a mail, I get the following message:
"Fehler beim Übertragen der Nachricht. Der Prozess für das Protokoll smtp://xxx.yyy.net wurde unerwartet beendet."
Not sure about the English translation, but should be something like this:
"Error while sending message. The process for the protocol smtp://xxx.yyy.net terminated unexpectatly."

.xsession-errors shows the following error:
"kio_smtp(515)/kio (KIOConnection) KIO::Connection::connectToRemote: Unknown requested KIO::Connection protocol=' "" ' ( "" ) "

Thing I tried:
I started with the default migration setup.
I tried restarting Akonadi, Mail dispatcher (with akonadiconsole) and KMail.
Restarting the XServer does not solve the problem either.

I tried deleting/recreating identies in KMail, didn't help either.

Next thing I tried: Clean Akonadi setup:
Stopping Akonadi, deleting everything in .kde4/share/config/akonadi*, .local/share/akonadi, .config/akonadi. (I didn't delete the migration configuration, therefore nothing migrated from old KMail.)
I also deleted the mysql database.

Result: Still the same problem, I can't send emails.

Well, last option: creating a new user. Sending emails with KMail works.

Now, the questions is: Which configuration files do I need to delete, so KMail sends mails from MY account???

UPDATE: I tried different mail transports from smtp and the all work. Seems that the only one that isn't working, is SMTP.


Murphy's Law is recursive. Washing your car to make it rain doesn't work.
User avatar
einar
Administrator
Posts
3402
Karma
7
OS

Re: KMail2 send Mails (SMTP)

Fri Jul 29, 2011 10:36 am
I would suggest to avoid deleting files from akonadi and the like because what could happen ie leaving the database with inconsistent information (since it's stored in other configuration files).

That said, did you enable more debug with "kdebugdialog"? Perhaps enabling debug for the mail dispatcher agent will tell what's going wrong...


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
User avatar
Rettich
Registered Member
Posts
123
Karma
0
OS

Re: KMail2 send Mails (SMTP)

Fri Jul 29, 2011 2:01 pm
I enabled some debug messages (kmail2, kio_smtp, mail dispatcher, ...)

This is the output from .xsession-errors
Code: Select all
akonadi_maildispatcher_agent(28451) OutboxQueue::Private::addIfComplete: Item 1117 is accepted into the queue (size 825 ).
akonadi_maildispatcher_agent(28451) MailDispatcherAgent::Private::dispatch: Attempting to dispatch the next message.
posting retrieval request for item 1117  there are  1  queues and  0  items in mine
request for item 1117 still pending - waiting
processing retrieval request for item 1117  parts: ("RFC822")  of resource: "akonadi_maildir_resource_0"
AkonadiAgentServer(28450)/libakonadi Akonadi::ResourceBase::itemRetrieved: Item does not provide part "RFC822"
continuing
request for item 1117 succeeded
akonadi_maildispatcher_agent(28451) MailDispatcherAgent::Private::itemFetched: Fetched item 1117 ; creating SendJob.
akonadi_maildispatcher_agent(28451) SendJob::Private::doTransport: Transporting message.
akonadi_maildispatcher_agent(28451)/kdepimlibs (mailtransport) MailTransport::Transport::Transport: "1837121488"
akonadi_maildispatcher_agent(28451)/kdepimlibs (mailtransport) MailTransport::Transport::usrReadConfig: type 0
kmail2(30679) KMKernel::instanceStatusChanged: A Resource started to syncronize, starting a mail check.
kmail2(30679) KMKernel::slotProgressItemCompletedOrCanceled: Last resource finished syncing, mail check done
akonadi_maildispatcher_agent(28451) KIO::SlavePrivate::SlavePrivate: Connection server not listening, could not connect
akonadi_maildispatcher_agent(28451)/kdepimlibs (mailtransport) MailTransport::SmtpJob::startSmtpJob: Created new SMTP slave 0x6e7a80
akonadi_maildispatcher_agent(28451) OutboxQueue::Private::addIfComplete: Item 1117 is ignored.
kio_smtp(31071)/kio (KIOConnection) KIO::Connection::connectToRemote: Unknown requested KIO::Connection protocol=' "" ' ( "" )
akonadi_maildispatcher_agent(28451)/kdepimlibs (mailtransport) SlavePool::removeSlave: Removing slave 0x6e7a80 from pool
akonadi_maildispatcher_agent(28451) SendJob::Private::doPostJob: success false message "Der Prozess für das
Protokoll smtp://xxx.yyy.net
wurde unerwartet beendet."
akonadi_maildispatcher_agent(28451) SendJob::Private::doPostJob: Error transporting.
akonadi_maildispatcher_agent(28451) SendJob::Private::storeResult: success false message "Fehler beim Übertragen der Nachricht. Der Prozess für das
Protokoll smtp://xxx.yyy.net
wurde unerwartet beendet."
akonadi_maildispatcher_agent(28451)/kdepimlibs (mailtransport) MailTransport::SmtpJob::~SmtpJob: clearing SMTP slave pool 0
akonadi_maildispatcher_agent(28451) StoreResultJob::Private::fetchDone:
akonadi_maildispatcher_agent(28451) StoreResultJob::Private::modifyDone:
akonadi_maildispatcher_agent(28451) SendJob::Private::doEmitResult: Success storing result.
akonadi_maildispatcher_agent(28451) MailDispatcherAgent::Private::sendResult: Sending failed. error: "Fehler beim Übertragen der Nachricht. Der Prozess für das
Protokoll smtp://xxx.yyy.net
wurde unerwartet beendet."
akonadi_maildispatcher_agent(28451) MailDispatcherAgent::Private::dispatch: Empty queue.
akonadi_maildispatcher_agent(28451) OutboxQueue::Private::addIfComplete: Item 1117 is queued to be sent manually.


Murphy's Law is recursive. Washing your car to make it rain doesn't work.
User avatar
einar
Administrator
Posts
3402
Karma
7
OS

Re: KMail2 send Mails (SMTP)

Fri Jul 29, 2011 2:30 pm
Does your SMTP server support different authentication mechanism? Did you try using different methods to see if one passes through but not the others?


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
User avatar
Rettich
Registered Member
Posts
123
Karma
0
OS

Re: KMail2 send Mails (SMTP)

Fri Jul 29, 2011 2:47 pm
I even tried different SMTP servers, the problem is always the same. And with a new user, the same configuration works. (But I don't want to loose my hole configuration ...)


Murphy's Law is recursive. Washing your car to make it rain doesn't work.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: KMail2 send Mails (SMTP)

Sat Jul 30, 2011 8:19 am
When you were looking for configuration files to remove, did you look under ~/.config and ~/.local?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
Rettich
Registered Member
Posts
123
Karma
0
OS

Re: KMail2 send Mails (SMTP)

Sat Jul 30, 2011 11:55 am
Was my first guess, too.

It works now. I think nepomuk caused the problem, but I'm not 100% sure.


Murphy's Law is recursive. Washing your car to make it rain doesn't work.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: KMail2 send Mails (SMTP)

Mon Aug 01, 2011 5:30 am
Nepomuk does have some involvement in the email sending procedure, so it definitely could be a potential culprit.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]