[Dovecot] get userlogin for shell script
Hello,
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.
How can I do this?
Thanks
Dirk
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?
participants (2)
-
Dirk Schleicher
-
Timo Sirainen