Koozali.org: home of the SME Server

Pop3d log level

Offline FNC

  • *
  • 12
  • +0/-0
Pop3d log level
« 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

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?



Offline thomasch

  • *
  • 232
  • +0/-0
Re: Pop3d log level
« Reply #1 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

Offline FNC

  • *
  • 12
  • +0/-0
Re: Pop3d log level
« Reply #2 on: March 12, 2009, 10:23:58 AM »
Will do thanx