On Mon, Jun 28, 1999 at 11:39:07PM +0200, Stefan Paletta wrote:
> Albert Hopkins wrote/schrieb/scribsit:
> > I've got qmail-pop3d piped to splogger, but I am not seeing any logins in
> > my log files.  Does qmail-pop3d not support this?
> 
> $ cat /var/qmail/bin/qmail-pop3d-log
> #!/bin/sh
> logger -p local2.info -t pop3d "$USER logged in from $TCPREMOTEHOST [$TCPREMOTEIP]"
> exec /var/qmail/bin/qmail-pop3d $1

Or... to use Russ's original number of messages post:

----------
#!/bin/sh

        NEW=`ls $1/new|wc -l | sed 's; ;;g'`
        OLD=`ls $1/cur|wc -l | sed 's; ;;g'`

logger -p local2.info -t qmail-pop3d "User $USER messages: $NEW new, $OLD old: 
Accessing from $TCPREMOTEIP"

exec /var/qmail/bin/qmail-pop3d $1
----------

-- 
Brad Shelton  On Line Exchange  http://ole.net
                ----
810.939.7604            Phone - Tech Support
810.264.7051            Fax   - Tech Support
313.961.7100            Phone - Main Office
313.961.7101            Fax   - Main Office

Reply via email to