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

Kmail, IMAP, Akonadi and many open connections...

Tags: None
(comma "," separated)
enzo.rodi
Registered Member
Posts
3
Karma
0
Kontact
Version 4.7.1

KDE
Plattform-Version 4.7.1 (4.7.1) "release 8"

I'm running a dovecot IMAP Server on a VServer.
The Resources are restricted as follows: (Before starting KMail)

Resource Current Recent Max Barrier Limit Failures
------------ ---------- ---------- ---------- ---------- ----------
oomguarpages 130.7 MB 131.4 MB 1024 MB n/a 0
privvmpages 385.1 MB 395.6 MB 2048 MB 2253 MB 40
numproc 65 67 n/a 350 0
numtcpsock 11 11 n/a 550 0
numothersock 133 135 n/a 400 0
>>> numfile 2505 2545 n/a 6000 13432075

There are 5 Email Accounts with subdirectories connected by Imap to my server and some external IMAP connections

Config is:

include in manual mail check - YES
switch offline on kmail shutdown -YES
check mail on startup -YES

Enableserver-side subscription - NO
Disconncted Mode - NO
Interval checking: ON, every 10 minutes

Working with Kmail gives me a lot of open connections on the Server.
(What is supposed to happen after startup)

numfile raises to:

Resource Current Recent Max Barrier Limit Failures
------------ ---------- ---------- ---------- ---------- ----------
oomguarpages 90.2 MB 89.6 MB 1024 MB n/a 0
privvmpages 387.9 MB 396.6 MB 2048 MB 2253 MB 40
numproc 83 85 n/a 350 0
numtcpsock 23 23 n/a 550 0
numothersock 147 149 n/a 400 0
>>> numfile 3401 3441 n/a 6000 13432075

pstree

|-dovecot-+-dovecot-auth
| |-dovecot-auth
| |-imap
| |-imap
| |-imap
| |-imap
| |-imap
| |-imap
| |-imap
| |-imap
| |-imap
| |-imap
| |-imap
| |-imap
| |-imap
| |-imap-login
| |-imap-login
| |-imap-login
| |-imap-login
| |-imap-login
| |-imap-login
| |-imap-login
| |-imap-login
| |-imap-login
| |-imap-login
| |-imap-login
| |-imap-login
| |-imap-login
| |-imap-login
| `-imap-login

If there a more users logged into the same account, the amount of open files can get close to the limit, harming other services on the server.

Is there a way to close unused IMap connections in KMail?
I want to check my Emails every 10 minutes or manually.
There should be only a connection to the IMAP Server when reading new emails, moving mails from directory to directory etc..

I tried "disconnected Mode" Yes.
I expected to work offline for the intervall of 10 minutes, then Kmail checks for new Emails etc.. and disconnect.
But as long as KMail is running the connections to the IMAP are all open.

Does KMail offer such a feature?
What is IMAP-Idle good for ?

cheers
enzo
User avatar
einar
Administrator
Posts
3402
Karma
7
OS
As far as I can tell, Kontact supports IMAP IDLE. You may want to file a bug to bugs.kde.org.


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python
enzo.rodi
Registered Member
Posts
3
Karma
0
As far as I understand IMAP IDLE it is used to keep the connection between client and server always open.

The client is sending the „IDLE“ command to the server in certain intervalls, so the server must not reestablish a connection to the client if there are new emails.

So, imap idle is exactly the opposite I'm looking for....

IMAP-PUSH seems to be the right solution.
Does Kmail support PUSH ?
User avatar
einar
Administrator
Posts
3402
Karma
7
OS
It claims to (but IIRC many client use "push" by using IDLE).


"Violence is the last refuge of the incompetent."
Image
Plasma FAQ maintainer - Plasma programming with Python


Bookmarks



Who is online

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