qmail-pop3d logging wrapper



according to: software.maexotic.de/qmail/103-pop3log/

1) create a shell script /var/qmail/bin/qmail-pop3d-wrapper.sh :
#!/bin/sh
echo "qmail-pop3d: user $USER logged in from $TCPREMOTEIP:$TCPREMOTEPORT" >&5
$@

2) modify the startup script /service/qmail-pop3d/run

from:
exec tcpserver -H -R -v -c100 0 110 qmail-popup mail.example.com \
/home/vpopmail/bin/vchkpw qmail-pop3d Maildir 2>&1
to:
exec tcpserver -H -R -v -c100 0 110 qmail-popup mail.example.com \
/home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d-wrapper.sh qmail-pop3d Maildir 2>&1 5>&1

3) restart pop3d:
svc -t /service/qmail-pop3d
Last update:
2009-09-10 14:19
Author:
Daniel
Revision:
1.1
Average rating:0 (0 Votes)

You can comment this FAQ

Chuck Norris has counted to infinity. Twice.