[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Username in log from qmail-pop3d
- To: Jonas Mixter <jonas.mixter@xxxxxxxxxxx>
- Subject: Re: Username in log from qmail-pop3d
- From: Andy Bradford <amb-1064524778@xxxxxxxxxxxxx>
- Date: Thu, 03 Mar 2005 10:41:28 -0700
- Cc: qmail@xxxxxxxxxxxxx
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
- Comments: In-reply-to Jonas Mixter <jonas.mixter@jamtport.se> message dated "Thu, 03 Mar 2005 15:19:56 +0100."
- Delivered-to: de5-qmail@sws5.ornl.gov
- Delivered-to: mailing list qmail@list.cr.yp.to
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=test; d=bradfords.org; b=rzwS7MV1tH1CRr2BF/xGJsiNdqlPqxdjJ+n3wWlWZRgNHGQdH7AaIKSTSnMuiCSH8P8z/a01uNemW2XOVJgLYw== ;
- In-reply-to: <42271D0C.3090301@jamtport.se>
- Mailing-list: contact qmail-help@list.cr.yp.to; run by ezmlm
- References: <42271D0C.3090301@jamtport.se>
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