Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: FNC on March 12, 2009, 08:27:32 AM

Title: Pop3d log level
Post by: FNC on March 12, 2009, 08:27:32 AM
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.html (http://forums.contribs.org/index.php/topic,34465.0.html)

And 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?


Title: Re: Pop3d log level
Post by: thomasch on March 12, 2009, 10:20:44 AM
FNC,

Try to post in that topic http://forums.contribs.org/index.php/topic,34465.0.html since your topic is not off topic. OP and all participant will be nofified about that topic. Maybe they can help.

thomasch
Title: Re: Pop3d log level
Post by: FNC on March 12, 2009, 10:23:58 AM
Will do thanx