On Thu, Jun 03, 1999 at 04:46:24PM -0400, [EMAIL PROTECTED] wrote:
> I want to log pop connects (both successes and failures) using
> qmail's pop server.
> [ ... ]
> doesn't seem like tcpserver has syslog logging capabilities.
> How are most people doing pop logging?
We do both:
a) tcpserver
/usr/local/bin/tcpserver -R -v 0 pop3 \
/var/qmail/bin/qmail-popup popmail.space.net \
/usr/local/etc/popmgmt/bin/checkpassword \
/var/qmail/bin/qmail-pop3d Maildir 2>&1 \
| /var/qmail/bin/splogger qmail-pop3d 17 &
This logs tcpserver connects to syslog channel 17
b) checkpassword
We use a perl based checkpassword and basically have:
$LOGGER = '/usr/bin/logger';
sub info
{
system("$LOGGER", '-t', 'checkpasswd', '-p', 'local0.info',
"$ENV{TCPREMOTEHOST}:$ENV{TCPREMOTEIP}:$ENV{TCPREMOTEPORT}", @_);
}
[ ... ]
Loggin is done on the appropriate locations e.g.
info "user='$user' auth failed, access denied";
info "user='$user' no \$HOME, access denied";
info "user='$user' auth ok, loggin in";
HTH
\Maex
--
SpaceNet GmbH | http://www.Space.Net/ | Yeah, yo mama dresses
Research & Development | mailto:[EMAIL PROTECTED] | you funny and you need
Joseph-Dollinger-Bogen 14 | Tel: +49 (89) 32356-0 | a mouse to delete files
D-80807 Muenchen | Fax: +49 (89) 32356-299 |