Hi Dovecot peeps,
I'm enjoying running /usr/lib/dovecot/imap directly as a PREAUTH IMAP pipe.
I find that it outputs log messages whose severity is INFO to stdout. I'm running it as follows:
/usr/lib/dovecot/imap -c /tmp/dovecot.conf
and I see the following messages output to stdout:
- PREAUTH [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS] Logged in as paulproteus imap(paulproteus): Info: Connection closed bytes=0/305
Naturally, the first line is great.
My /tmp/dovecot.conf is:
<cut here> # single-dbox mail_location = sdbox:~/Maildir/dbox
log_path = syslog info_log_path = /dev/null </cut>
I'm also attaching strace output, created by running this command:
echo | strace /usr/lib/dovecot/imap -c /tmp/dovecot.conf > /tmp/straced 2>&1
(The point of the "echo | " is to provide a newline and then EOF to /usr/lib/dovecot/imap.)
You can see in the strace output that /usr/lib/dovecot/imap outputs the "Connection closed" message to file descriptor 2. I'd like that message to actually not be printed, which is why I set log_path to syslog.
-- Asheesh.