My apologies if this has been answered already -- I've been searching all
morning and haven't found anything yet.
I've got qmail and qmail-smtpd running under multilog without a problem.
Pop3d is giving me a much bigger fight.
I'm only really interested in logging the connection attempts, not the
actual session. This is handled by vchkpw in my setup. Vchkpw uses
syslog, which I've patched out. Instead of
syslog(level, message);
I have changed it to
fputs(message, stderr);
and then at the end of my log invocation script, a 2>&1 | multilog
t /var/log/pop3d, like this:
env - PATH="/opt/qmail/bin:/usr/local/bin" \
tcpserver 0 pop3 /opt/qmail/bin/qmail-popup mail.benshaw.com \
/opt/vchkpw/bin/vchkpw /opt/qmail/bin/qmail-pop3d Maildir \
2>&1 | multimail t /var/log/pop3d
Unfortunately, it looks like qmail-pop3d is getting the stderr messages
instead. if I telnet in with my modified vchkpw I see what should be going
to the log in the actual pop session.
Has anyone done this before and, if so, how did you do it?
Regards,
Andrew