Marlon Anthony Abao wrote/schrieb/scribsit:
> hello,
>
> could somebody point out to me how to make qmail-pop3d log to
> syslog or cyclog?
>
> this is the entry in my rc.pop3 :
>
> /usr/local/bin/tcpserver -c 100 0 pop3 /var/qmail/bin/qmail-popup \
> mail.philonline.com \
> /bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir &
tcpserver logs information about connections to stderr, so you can just
change this to (shortened):
tcpserver 0 pop3 qmail-popup mail.philonline.com checkpassword qmail-pop3d
Maildir 2>&1 | splogger pop3d &
To log logins with username and remote host, Use a small wrapper
to be called instead of qmail-pop3d:
% cat /var/qmail/bin/qmail-pop3d-log
#!/bin/sh
logger -p local2.info -t pop3d "$USER logged in from $TCPREMOTEIP"
exec /var/qmail/bin/qmail-pop3d $1
%
Thanks to tcp-env, all the info is there...
Stefan