Summary: | kmail triggers lots of "disconnected/no auth attempts" log entries in Dovecot | ||
---|---|---|---|
Product: | [Frameworks and Libraries] Akonadi | Reporter: | Kevin Bader <kde> |
Component: | IMAP resource | Assignee: | Kevin Ottens <ervin> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | ajayr, aog2000a, dvratil, kde, kde, kdepim-bugs, marduone, r.biegel, sgh, vkrause, _jeroen_ |
Priority: | NOR | ||
Version: | 4.10 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Kevin Bader
2013-04-03 17:16:08 UTC
seems to be a duplicate of 315382 (In reply to comment #1) > seems to be a duplicate of 315382 That may be, but please note that there is no "Disconnected for inactivity" message for my client in the logs. However, I noticed that now the log is full of this: Apr 4 12:34:05 server dovecot: imap-login: Login: user=<me@example.com>, method=PLAIN, rip=1.2.3.4, lip=1.2.3.4, mpid=15037, TLS, session=<Yc6DgobZZQC8pTmY> Apr 4 12:34:05 server dovecot: imap(me@example.com): Disconnected: Logged out in=29 out=411 Apr 4 12:34:07 server dovecot: imap-login: Login: user=<me@example.com>, method=PLAIN, rip=1.2.3.4, lip=1.2.3.4, mpid=15039, TLS, session=<C7WpgobZaAC8pTmY> Apr 4 12:34:07 server dovecot: imap(me@example.com): Disconnected: Logged out in=44 out=509 Apr 4 12:34:13 server dovecot: imap-login: Login: user=<me@example.com>, method=PLAIN, rip=1.2.3.4, lip=1.2.3.4, mpid=15044, TLS, session=<C1v9gobZbQC8pTmY> Apr 4 12:34:13 server dovecot: imap-login: Login: user=<me@example.com>, method=PLAIN, rip=1.2.3.4, lip=1.2.3.4, mpid=15045, TLS, session=<Y3L9gobZbgC8pTmY> Apr 4 12:34:13 server dovecot: imap(me@example.com): Disconnected: Logged out in=233 out=854 Apr 4 12:34:13 server dovecot: imap(me@example.com): Disconnected: Logged out in=533 out=55517 Apr 4 12:34:31 server dovecot: imap-login: Login: user=<me@example.com>, method=PLAIN, rip=1.2.3.4, lip=1.2.3.4, mpid=15049, TLS, session=<sx0LhIbZdgC8pTmY> Apr 4 12:34:31 server dovecot: imap(me@example.com): Disconnected: Logged out in=460 out=1892 [and so on] As you can see this happens quite often. I also don't understand why remote IP and local IP is always the same. "Apr 09 12:06:30 server dovecot[13887]: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip={ext_ip}, lip={int_ip}, TLS, session=<fEEXterZAgDZd+iC>" This is repeated multiple times per second, indefinitely. This is, until I stop akonadi through "akonadictl stop". After a few seconds, akonadi is completely stopped and the messages stop at the server side. When I issue a "akonadictl start", everything starts up perfectly normal and all is working normal again. When a connection issue arises, only for a minute or so, the dovecot server gets spammed at again coming from kmail/akonadi, requiring me to stop/start akonadi again. Sounds like some piece of "connection checking" code that ends up in an endless loop? openSUSE 12.2 KDE 4.10.2 I recently upgraded my IMAP server from dovecot 1.2.17 to 2.1.7 and have been following the mail logs much more frequently to find out possible upgrade related configuration issues . I too have noticed several times now how mail logs are filled with these imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=333.333.333.333, lip=444.444.444.44, TLS, session=<vN7z+mrc0QAKxcoM> errors after dovecot had disconnected the akonadi IMAP session due to inactivity. Below is short excerpt from mail log from this morning (grep Disconnected /var/log/mail|uniq -c -w 40): 1 May 11 08:59:01 antique dovecot: imap(xxxxxxx): Disconnected for inactivity in=10266 out=29478 7 May 11 08:59:01 antique dovecot: imap-login: Disconnected (no auth attempts in 0 secs): user=<>, rip=333.333.333.333, lip=444.444.444.444, TLS, session=<vN7z+mrc0QAKxcoM> 41 May 11 08:59:02 antique dovecot: imap-login: Disconnected (no auth attempts in 1 secs): user=<>, rip=333.333.333.333, lip=444.444.444.444, TLS, session=<X2T3+mrc2AAKxcoM> 47 May 11 08:59:03 antique dovecot: imap-login: Disconnected (no auth attempts in 1 secs): user=<>, rip=333.333.333.333, lip=444.444.444.444, TLS, session=<N5gG+2rcAQAKxcoM> 47 May 11 08:59:04 antique dovecot: imap-login: Disconnected (no auth attempts in 1 secs): user=<>, rip=333.333.333.333, lip=444.444.444.444, TLS, session=<MOYV+2rcMAAKxcoM> 45 May 11 08:59:05 antique dovecot: imap-login: Disconnected (no auth attempts in 1 secs): user=<>, rip=333.333.333.333, lip=444.444.444.444, TLS, session=<h1Ml+2rcXwAKxcoM> 47 May 11 08:59:06 antique dovecot: imap-login: Disconnected (no auth attempts in 1 secs): user=<>, rip=333.333.333.333, lip=444.444.444.444, TLS, session=<x5E0+2rcjAAKxcoM> 47 May 11 08:59:07 antique dovecot: imap-login: Disconnected (no auth attempts in 1 secs): user=<>, rip=333.333.333.333, lip=444.444.444.444, TLS, session=<SeVD+2rcuwAKxcoM> 47 May 11 08:59:08 antique dovecot: imap-login: Disconnected (no auth attempts in 1 secs): user=<>, rip=333.333.333.333, lip=444.444.444.444, TLS, session=<UC1T+2rc6gAKxcoM> 47 May 11 08:59:09 antique dovecot: imap-login: Disconnected (no auth attempts in 1 secs): user=<>, rip=333.333.333.333, lip=444.444.444.444, TLS, session=<dzhi+2rcGQAKxcoM> I also checked older mail logs from before the dovecot upgrade and found similar errors from those too, so I don't think it's a dovecot problem as such. So, idle disconnect from dovecot side seems to cause akonadi to go to an endless loop trying to connect several times every second. Restarting dovecot "fixes" the problem for a while, but also seems to cause some weird problems in Kontact/Kmail, like e.g. selecting some other folder than inbox just hangs with folder icon being replaced with a busy icon (or whatever it is called) and its contents is not shown. Some additional info that might be interesting. Enabling/disabling the interval mail checking feature in the akonadi IMAP connection settings does not seem to have any effect, the problem still appears (quite frequently in fact). I also increased the dovecot imap service idle_kill timeout from its default 1 minute to 1 hour, but to no avail. Prompted by an earlier comment, I tried the 'akonadictl stop/start' trick instead of restarting dovecot when the disconnect/login issue happened again. After issuing the commands I left the terminal open and when the problem appeared again this got printed to it: A message was received from the server with no job to handle it: "* BYE Disconnected for inactivity. " "(2a2042594520446973636f6e6e656374656420666f7220696e61637469766974792e20)" I have thousands of these imap-login: Disconnected (no auth attempts) in my log files as well. I also see this bug with KMail 4.10.3 (Kubuntu 13.04 packages) and Dovecot 1.2.15 from Debian 6.0. For me this only happens when I use IMAPS over port 993. I do not see this Dovecot log message when using STARTTLS over port 143. *** This bug has been marked as a duplicate of bug 316840 *** |