On Sat, 15 Nov 2003, Werner Amon wrote:
> I have setup my qmail-vpopmail server with daemontools multilog, the smtpd
> logs normally, but the pop3d damon does not log anything.

I remember I had a hard time getting pop3d to log anything.  This is
what I ended up with, since apparently daemontools' "run" scripts have
to output their messages to fd 1, but qmail-pop3d uses fd 7.
Customize this to suit your own needs:

# This is /service/qmail-pop3d/run
exec  /usr/local/bin/tcpserver -H -R -u 89 -g 89 -c 60 0 pop3 \
    /var/qmail/bin/qmail-popup duchess.speedfactory.net \
    /home/vpopmail/bin/vchkpw \
    /var/qmail/bin/qmail-pop3d-wrapper.sh \
    /var/qmail/bin/qmail-pop3d Maildir 2>&1 7>&1

# This is /var/qmail/bin/qmail-pop3d-wrapper.sh
hostname="$(/home/vpopmail/bin/vipmap | grep "^$TCPLOCALIP " | cut -f2 -d ' ')"
echo "qmail-pop3d: connected: [EMAIL PROTECTED]:-$TCPLOCALIP} :: from $TCPREMOTEIP" >&7
exec "$@"

The log lines end up looking like this:
@400000003fb62c5f1d2908d4 qmail-pop3d: connected: [EMAIL PROTECTED] :: from
@400000003fb62c5f2c3dc864 qmail-pop3d: connected: [EMAIL PROTECTED]@ :: 
@400000003fb62c6009bf2bac qmail-pop3d: connected: [EMAIL PROTECTED]@ :: 


Moshe Jacobson 
AIM: Jehsom

Reply via email to