Martin Vegter
2014-Aug-27 09:05 UTC
multiple IMAP sessions when connecting from one client
Hello, I am using Postfix/Dovecot/IMAP. Everything is working fine, but I have noticed that every time I connect with Thunderbird to my server via IMAP, not one but 4 connections are being logged into /var/log/mail/mail.log: 2014-08-27 09:17:46 dovecot: imap-login: Login: user=<martin>, method=PLAIN, rip=11.22.33.44, lip=55.66.77.88, mpid=12519, TLS, session=<uyb/N5cB+gBUDFRB> 2014-08-27 09:17:53 dovecot: imap-login: Login: user=<martin>, method=PLAIN, rip=11.22.33.44, lip=55.66.77.88, mpid=12521, TLS, session=<jioqN5cB/ABUDFRB> 2014-08-27 09:17:53 dovecot: imap-login: Login: user=<martin>, method=PLAIN, rip=11.22.33.44, lip=55.66.77.88, mpid=12523, TLS, session=<pqwwN5cB/QBUDFRB> 2014-08-27 09:17:54 dovecot: imap-login: Login: user=<martin>, method=PLAIN, rip=11.22.33.44, lip=55.66.77.88, mpid=12525, TLS, session=<cffremmc/gBUDFRB> This looks like 4 separate sessions are created when I log in from one client. Is this normal behavior? Can somebody please explain why this is so? My Dovecot version is 2.1.7 regards, Martin
Steffen Kaiser
2014-Aug-27 09:22 UTC
multiple IMAP sessions when connecting from one client
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, 27 Aug 2014, Martin Vegter wrote:> This looks like 4 separate sessions are created when I log in from one > client. > > Is this normal behavior? > Can somebody please explain why this is so?because Thunderbird wants to access 4 mailboxes simultaneously, e.g. to check or wait for new messages. - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEVAwUBU/2jSHz1H7kL/d9rAQKu1QgAj9y89mUBPJuDmJLyh3h3CQ5uSedyMp/v BXoJT2qZDNtnkbwJFNiOtlFaoLAqakGp+K4k5eMbHKUcIVYdvC4N87H33bFfc62v 4QpJDBVBGc5m3MyrrM+AqvhIcTf64an6lrr9KGnoQyww0G00fI47vMx+0+hEI6Gv ekiPZGyDaexXVTR/EewV1Ro9XH0o1lz6XLuBhbkFpCjwLoHHyNOhimmJCgSPc8Ye dMKYtrViCYXRcVKsziCLKwtHAei+Z1SV5qQfO4Ph+Fv2LBDjtbV5o/tbQJdTG/3b mf4Qono25rGNuN7Mko3cwsaV218TkhG0X+ZW7L1MaOPCUfFLpP9+wQ==N1RH -----END PGP SIGNATURE-----
On -10.01.-28163 20:59, Martin Vegter wrote:> I have noticed that every time I connect with Thunderbird to my > server via IMAP, not one but 4 connections are being logged [...] > Is this normal behavior?>From the point of view of dovecot, as a *server* implementation, it ispretty normal to answer as many IMAP connections as a legitimate client sees fit to start. After all, the IMAP protocol is *designed* to allow multiple concurrent connections for the same user/mailbox even from *different* clients (and NATed clients exist). Note, however, that dovecot has various limits set and active by default, the most relevant for this matter probably being a mail_max_userip_connections of 10.>From the client's perspective, there may be good reasons to have severalconnections at once (in particular, ability to run several operations in parallel), and then there obviously are less convincing ones as well (I've seen appliances checking for new mail every couple minutes, connecting for less than 1s, but opening *TWO* connections to do so). Regards, J. Bern -- *NEU* - NEC IT-Infrastruktur-Produkte im <http://www.linworks-shop.de/>: Server--Storage--Virtualisierung--Management SW--Passion for Performance Jochen Bern, Systemingenieur --- LINworks GmbH <http://www.LINworks.de/> Postfach 100121, 64201 Darmstadt | Robert-Koch-Str. 9, 64331 Weiterstadt PGP (1024D/4096g) FP = D18B 41B1 16C0 11BA 7F8C DCF7 E1D5 FAF4 444E 1C27 Tel. +49 6151 9067-231, Zentr. -0, Fax -299 - Amtsg. Darmstadt HRB 85202 Unternehmenssitz Weiterstadt, Gesch?ftsf?hrer Metin Dogan, Oliver Michel