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

Kmail is very slow sending messages and frozen ...

Tags: None
(comma "," separated)
kde-dedalus
Registered Member
Posts
4
Karma
0
OS
Hi everyboy,

Kmail is very slow sending messages and frozen during the process of sending an email (around a minute). I've googled and found a similar problem reported for an older Kmail version in KDE FAQs_Hints_and_Tips section 4.12 (https://userbase.kde.org/KMail/FAQs_Hints_and_Tips/en):

"Problem: Kmail is slow
Symptom: You experience very long delays when sending messages, and KMail is frozen while you wait.
Solution: There was a bug in the various Release Candidates for KDE SC 4.4 which caused KMail to do lengthy searches for matching addresses. Updating to the full 4.4 should cure the problem."

However I am running KMail 5.7.3 over Kubuntu 18.04.3,
Libraries:
KDE Frameworks 5.44.0
Qt 5.9.5 (compiled with 5.9.5)
Window systems: xcb

Any hint about that? Thank you in advance,
Pedro
User avatar
raphaelra
Registered Member
Posts
209
Karma
0
OS
Did you try to send a test mail with other MUA then Kmail (on ex. from command line with ssmtp, mailx, sendmail) ? Maybe kmail is not the problem ...
kde-dedalus
Registered Member
Posts
4
Karma
0
OS
Thank you very much for the clue raphaelra,

I have tried with a different SMTP server (gmail, instead of the one at my university), and I still have the problem.

And I have tried too with another email client, "claws", and I haven't had the problem. So, I guess the problem is related to Kmail (or something near like akonadi...)
User avatar
raphaelra
Registered Member
Posts
209
Karma
0
OS
The next step i would do ist to start Kmail from console and watch what Kmail is reporting (you can check, if you have ~/.xsessiov-errors file as well). When you restart akonadi server manually with akonactl restart, is also logs continuously what it do ...

Is your Send folder an IMAP-Folder ?
Did you acivated actions that runs atomaticaly before sending a mail (spell check, signing or/an encrypting, ...) ?
kde-dedalus
Registered Member
Posts
4
Karma
0
OS
- I have started kmail from a console. When clicking "New" to compose a new message, it immediately appears,

Code: Select all
Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes.
sonnet.plugins.hspell: HSpellDict::HSpellDict: Init failed
sonnet.core: Missing trigrams for languages: QSet("es_SV", "en_CA", "es_AR", "es_HN", "es_DO", "es_CO", "es_PE", "es_PY", "es_PA", "es_CR", "es_MX", "es_GT", "es_CU", "es_CL", "es_VE", "es_BO", "es_UY", "es_US", "en_GB", "es_PR", "es_NI", "en_AU", "es_EC")


Then, after sending the message, and wait after 1 minute (frozen time), nothing appears in console. I have also checked .xsession-errors and there is no new messages.

- When I restart akonadi in console through akonadictl restart I obtain:

Code: Select all
akonadi.collectionattributetable                   OK
akonadi.collectionmimetyperelation                 OK
akonadi.collectionpimitemrelation                  OK
akonadi.collectiontable                            OK
akonadi.flagtable                                  OK
akonadi.mimetypetable                              OK
akonadi.parttable                                  OK
akonadi.parttypetable                              OK
akonadi.pimitemflagrelation                        OK
akonadi.pimitemtable                               OK
akonadi.pimitemtagrelation                         OK
akonadi.relationtable                              OK
akonadi.relationtypetable                          OK
akonadi.resourcetable                              OK
akonadi.schemaversiontable                         OK
akonadi.tagattributetable                          OK
akonadi.tagremoteidresourcerelationtable           OK
akonadi.tagtable                                   OK
akonadi.tagtypetable                               OK
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
org.kde.pim.akonadicore: "Unable to obtain agent type «»."
org.kde.pim.akonadicore: Failed SpecialCollectionsRequestJob::slotResult "Cannot connect to the Akonadi service. (Unable to obtain agent type «».)"
org.kde.pim.maildispatcher: Failed to get outbox folder. Retrying in:  5000
org.kde.pim.akonadicore: Failed to request resource "" : "Cannot connect to the Akonadi service. (Unable to obtain agent type«».)"


And when I send a new message, after the frozen 1 minute it appears the following message:

Code: Select all
org.kde.pim.ksmtp: Socket error: 2 "the remote computer has closed the connection"


- I have also checked that the spell cheking was disabled before sending, and signing or encrypting are also deactivated.

- "Send folder is IMAP?" from the client side I don't see anything, the receiving account is POP3. As the the sent folder in the server is not synced with the sent folder in the client I guess is not IMAP.

- Another hint: the same happens when I save a new message as draft
kde-dedalus
Registered Member
Posts
4
Karma
0
OS
Hi everybody,

After checking /var/log/syslog I found the following messages systematically when I tried to send emails:

Code: Select all
Nov 27 18:00:04 pedroc-pc dirmngr[3334]: Note: non-critical certificate policies are not allowed.
Nov 27 18:00:04 pedroc-pc dirmngr[3334]: root certificate not marked as reliable
Nov 27 18:00:04 pedroc-pc dirmngr[3334]: fingerprint=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Nov 27 18:00:04 pedroc-pc dirmngr[3334]: DBG: BEGIN Certificate 'issuer':
Nov 27 18:00:04 pedroc-pc dirmngr[3334]: DBG: serial: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Nov 27 18:00:04 pedroc-pc dirmngr[3334]: DBG: notBefore: 2008-10-29 15:59:56
Nov 27 18:00:04 pedroc-pc dirmngr[3334]: DBG: notAfter: 2030-01-01 00:00:00
Nov 27 18:00:04 pedroc-pc dirmngr[3334]: DBG: issuer: OU=AC RAIZ FNMT-RCM,O=FNMT-RCM,C=EN
Nov 27 18:00:04 pedroc-pc dirmngr[3334]: DBG: subject: OU=AC RAIZ FNMT-RCM,O=FNMT-RCM,C=EN
Nov 27 18:00:04 pedroc-pc dirmngr[3334]: DBG: hash something: 1.2.840.113549.1.1.11
Nov 27 18:00:04 pedroc-pc dirmngr[3334]: DBG: SHA1 fingerprint: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Nov 27 18:00:04 pedroc-pc dirmngr[3334]: DBG: END Certificate
Nov 27 18:00:04 pedroc-pc dirmngr[3334]: critical extension CRL unknown 2.5.29.28
Nov 27 18:00:04 pedroc-pc dirmngr[3334]: crl_cache_insert failed via DP: invalid CRL
Nov 27 18:00:04 pedroc-pc dirmngr[3334]: error verifying the validity of the CRL certificate issuer: Invalid CRL
Nov 27 18:00:04 pedroc-pc dirmngr[3334]: crl_parse_insert failed: CRL invalid
Nov 27 18:00:04 pedroc-pc dirmngr[3334]: crl_cache_insert failed via DP: CRL invalid
Nov 27 18:00:04 pedroc-pc dirmngr[3334]: command 'ISVALID' failed: CRL invalid
Nov 27 18:00:04 pedroc-pc dirmngr[3334]: CRL available cannot be used for emitter ID XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Nov 27 18:00:04 pedroc-pc dirmngr[3334]: command 'ISVALID' failed: There is no known CRL.


Looking about CRL's I have disabled the option in "Validation S/MIME" and voilà!! This was the cause of the frozen 1 minute before sending an email.

Thank you very much to 'raphaelra' for giving me clues and advice to fix this problem.
User avatar
raphaelra
Registered Member
Posts
209
Karma
0
OS
Good to hear that sending mails works again. But this looks weird
Code: Select all
...
org.kde.pim.akonadicore: "Unable to obtain agent type «»."
org.kde.pim.akonadicore: Failed SpecialCollectionsRequestJob::slotResult "Cannot connect to the Akonadi service. (Unable to obtain agent type «».)"
org.kde.pim.maildispatcher: Failed to get outbox folder. Retrying in:  5000
org.kde.pim.akonadicore: Failed to request resource "" : "Cannot connect to the Akonadi service. (Unable to obtain agent type«».)"

Did you deleted the outbox in "Local Folders" ?
Allready tried "akonadictl fsck" and "akonadi vacuum" ?


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], Google [Bot], lockheed, Yahoo [Bot]