Hi,
I need to change the way pop3 connections gets logged.
What I would like is to have the username and IP logged for all pop3 connections. Currently I can only see the source IP but not the mailbox/user who is trying to connect.
I followed this post
http://forums.contribs.org/index.php/topic,34465.0.htmlAnd added the following to /var/service/pop3/run:
${PORT:-pop3} \
/var/qmail/bin/qmail-popup $fqdn \
checkpassword \
/var/qmail/bin/qmail-pop3d-wrapper.sh \
/var/qmail/bin/qmail-pop3d Maildir
And create the file /var/qmail/bin/qmail-pop3d-wrapper.sh
#!/bin/sh
echo "qmail-pop3d: user $USER logged in from $TCPREMOTEIP:$TCPREMOTEPORT" >&7
$@
After I restart the pop3d service, user can no longer log on to pop3 to download mail. It keeps asking for a password.
Any idees how to log usernames for pop3 connections?