> Chin Fang:

> However, it's at the last stage I ran into an problem.  I was trying
> not to use syslog for logging.  But it seems to be that I can't write
> the logged info to STDERR, since the info would be sent to POP client
> (I confirmed this using telnet to port 110).
> 
> Right now, I invoke qmail-pop3d in the following manner:
> 
> [...]
> 'start_popd')
>         #
>         # start pop server
>         #
>         if [ -f $RULESDIR/pop3.cdb ]; then
>                 env - PATH="/var/qmail/bin:/usr/local/bin:$PATH" \
>                 tcpserver \
>                 -v -R -x $RULESDIR/pop3.cdb \
>                 0 pop3 qmail-popup $HOSTNAME \
>                 $checkpassword qmail-pop3d Maildir 2>&1 \
>                 | $setuidgid qmaill $tai64n 2>&1 \
>                 | $setuidgid qmaill $multilog /var/log/pop3d &

first of:  if you want timestamps then integrate the last two lines from
>                 | $setuidgid qmaill $tai64n 2>&1 \
>                 | $setuidgid qmaill $multilog /var/log/pop3d &

to
                  | $setuidgid qmaill $multilog t /var/log/pop3d &

also, if you tell qmail-pop3d to output stderr on the stdout stream with
the term "2>&1", telnet will give you error messages from pop3d too.  if
you leave out this term, you get separate output and error streams.

-- 
clemens                                              [EMAIL PROTECTED]

Reply via email to