On Thu, Jan 13, 2000 at 03:19:53PM +0100, Stefan Paletta wrote:
} > This probably works, but I'm using tcpserver and multilog, so how can I
}
} Use 'echo "$USER logged in from $TCPREMOTEIP [$TCPREMOTEHOST]" >&2'
} instead of the call to logger.
} > > # cat /var/qmail/bin/qmail-pop3d-log
} > > #!/bin/sh
} > > logger -p local2.info -t pop3d "$USER logged in from $TCPREMOTEIP
} > > [$TCPREMOTEHOST]"
} > > exec /var/qmail/bin/qmail-pop3d $1
I tried that, and, instead of getting the log message to the log, I'm
getting it in the pop-3 conversation (checked using telnet).
Here's my /var/run/qmail/pop3/run script:
#!/bin/bash
exec tcpserver -v -R -c10 0 pop-3 qmail-popup \
wacko.jimz.net /bin/checkpassword qmail-pop3d-log Maildir \
2>&1 | multilog t /var/log/pop3
and /var/qmail/bin/qmail-pop3d-log:
#!/bin/sh
echo "$USER logged in from $TCPREMOTEIP [$TCPREMOTEHOST]" >&2
exec qmail-pop3d $1
Any ideas?
Thanks,
Jim
--
Jim