[Dovecot] Alerts and pre-authenticated connections

Mike Brudenell pmb1 at york.ac.uk
Thu Mar 15 17:05:45 EET 2007


Many thanks, Timo...

On 15 Mar 2007, at 13:59, Timo Sirainen wrote:

> On Thu, 2007-03-15 at 13:47 +0000, Mike Brudenell wrote:
>> 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.)
>
> http://dovecot.org/list/dovecot-cvs/2007-March/008169.html

...that does indeed get the logging going to the right place.

Unfortunately starting a pre-authenticated session doesn't actually  
create a log entry to say someone has connected or who it was, or the  
IP address they came from (eg, in the REMOTEHOST shell environment  
variable for an rsh session).  It would be helpful to get something  
logged as for a normal connection, say:

dovecot: Mar 15 14:55:08 Info: imap: Login: user=<pmb1>,
     method=PREAUTH, rip=144.32.226.226, lip=144.32.128.132
            ^^^^^^^      ^^^^^^^^^^^^^^--- from REMOTEHOST?

In contrast, closing a pre-authenticated session does log something,  
but only
   imap(pmb1): Info: Disconnected: Logged out

It seems to not be using the mail_log_prefix template which normally  
would log the above with a timestamp and (in my customised  
configuration file) pid:
   dovecot: Mar 15 14:34:39 Info: IMAP(pmb1)[19021]: Disconnected:  
Logged out

This lack of logging is a bit of a pain as we use the IMAP logfiles  
to track down people's reading sessions if we ever need to  
investigate a problem.

Hopeful smile...

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