[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Username in log from qmail-pop3d



Thus said Jonas Mixter on Thu, 03 Mar 2005 15:19:56 +0100:

> I wonder if one could add the username and also if the login was 
> successfull or not to the logs created by qmail-popup/qmail-pop3d.

This  may already  be in  the archives...  I use  the following  wrapper
around qmail-pop3d to capture a bit of information:

#!/bin/sh
echo "qmail-pop3d: user $USER logged in from $TCPREMOTEIP:$TCPREMOTEPORT" >&7
exec "$@"

Don't forget to add 7>&1 in your  pop3d run script to redirect that into
the logger.

Andy
--
GnuPG ID 0xA63888C9 (D2DA 68C9 BB2B 26B4 8204  2219 A43E F450 A638 88C9)
[-----------[system uptime]--------------------------------------------]
 10:41am  up 126 days, 15:28,  1 user,  load average: 1.05, 1.06, 1.02