[Dovecot] Alerts and pre-authenticated connections

Mike Brudenell pmb1 at york.ac.uk
Thu Mar 15 15:47:03 EET 2007


Greetings -

On 13 Mar 2007, at 16:08, Timo Sirainen wrote:

> On Tue, 2007-03-13 at 16:01 +0000, Mike Brudenell wrote:
>> Q1.  The UW IMAP Server supports "pre-authenticated connections" --
>> does Dovecot?
>
> dovecot --exec-mail imap

I'm having some success with the above but...

When started like this Dovecot doesn't seem to want to write log  
entries to the Dovecot logfile as specified in the configuration  
file, namely
     log_path = /logfiles/mail/live/dovecot

I have checked that I have write access to the logfile as me: I do.   
But nevertheless with
     /usr/local/sbin/dovecot --exec-mail imap
log output comes out on stdout or stderr instead.  For example:
==================================================
% /usr/local/sbin/dovecot --exec-mail imap
* PREAUTH [CAPABILITY IMAP4rev1 SASL-IR SORT THREAD=REFERENCES  
MULTIAPPEND UNSELECT LITERAL+ IDLE CHILDREN NAMESPACE LOGIN-REFERRALS  
QUOTA] Logged in as pmb1
a01 logout
* BYE Logging out
a01 OK Logout completed.
imap(pmb1): Info: Disconnected: Logged out
%
==================================================
Note the final  line beginning "imap(pmb1)".

If I instead run the "imap" binary by hand
     /usr/local/libexec/dovecot/imap
the logging still comes out on stdout/stderr.

But after peering at the source code I tried setting the LOGFILE  
environment variable to point at the logfile:
     setenv LOGFILE /logfiles/mail/live/dovecot

Now if I run the "imap" binary by hand logging does indeed come out  
in the logfile.

BUT using the "dovecot --execmail imap" command instead still has  
logging coming out on stdout/stderr, not in the logfile ... it's as  
if this latter isn't seeing/using the LOGFILE environment variable.

Can someone explain what I'm doing wrong, please, and how to use the
     dovecot --exec-mail imap
trick to do pre-authenticated connections whilst getting logging out  
in the right place?  (Ideally as specified in the configuration file,  
and not having to fiddle on manually setting the LOGFILE environment  
variable.)

With thanks,
Mike B-)

-- 
The Computing Service, University of York, Heslington, York Yo10 5DD, UK
Tel:+44-1904-433811  FAX:+44-1904-433740

* Unsolicited commercial e-mail is NOT welcome at this e-mail address. *




More information about the dovecot mailing list