[Dovecot] get userlogin for shell script

Timo Sirainen tss at iki.fi
Tue Apr 10 20:49:41 EEST 2007

On 10.4.2007, at 20.41, Dirk Schleicher wrote:

> how can I get some information if a user is connect to the dovecot  
> imap?
> I like to build a script what asked if there is a connect. If yes  
> the loop until no connect an then stop dovecot.

See if there exists any "imap" processes. But I think this is a bad  
idea. IMAP clients in general tend to be connected as long as the  
client is opened. I've had an IMAP connection be open for weeks.

Dovecot has shutdown_clients setting. If you set it to "no" and you  
kill dovecot, the imap processes keep on running. Would this work for  
you instead?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20070410/a7d980b9/attachment.pgp 

More information about the dovecot mailing list