On Thu, 2011-03-17 at 16:37 +0100, Kamil Jońca wrote: > Is there any option for dovecot to exit when is unneded? No. > But sometimes I want to use it remotely via tcp and I run dovecot via > inetd. I guess you could write a cronjob that checks if any imap processes exist, and if not kills dovecot.