On Fri, 4 Jun 1999,  wrote:

> 
> Hello,
> 
> Ever night since I sent up my qmail pop server it has crashed sometime
> during the night.  There is no/very little traffic on the machine and
> the machine did not reboot during the nights. The startup scripts in
> rc work fine. I'm running linux redhat 5.2. Has anyone experienced
> anything like this? 
> 
> Because I cannot get logging working with pop, I have no information 
> from the server itself. BTW, if tcpserver/qmail can log to syslog, 
> why can't tcpserver/pop3d?  Because of the lack of logging and its
> instability on my machine I'm thinking of using qpopper instead. Is
> qpopper a good alternative?

You can also run tcpserver under supervise from Dan's daemontools
package:

    supervise -r /var/qmail/etc/run/pop3d                               \
        tcpserver -u 0 -g 0 -c 40 -v -R                                 \
        -x /var/qmail/etc/run/pop3d/rules.cdb 0 pop3                    \
        /var/qmail/bin/qmail-popup quasar.cdn.telstra.com.au            \
        /pkgs/bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir 2>&1 \
        | splogger pop3

Then, if tcpserver does die during the night, it will be automatically
restarted by supervise.

tcpserver output is verbose and is logged to syslogd, all messages will
be tagged with the string pop3.

If you don't want to log to syslog, use accustamp and cyclog from the
daemontool's package.

    supervise -r /var/qmail/etc/run/pop3d                               \
        tcpserver -u 0 -g 0 -c 40 -v -R                                 \
        -x /var/qmail/etc/run/pop3d/rules.cdb 0 pop3                    \
        /var/qmail/bin/qmail-popup quasar.cdn.telstra.com.au            \
        /pkgs/bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir 2>&1 \
        | accustamp | cyclog /var/log/pop3

Regards
Peter
----------
Peter Samuel                                [EMAIL PROTECTED]
Technical Consultant                        or at present:
eServ. Pty Ltd                              [EMAIL PROTECTED]
Phone: +61 2 9206 3410                      Fax: +61 2 9281 1301

"If you kill all your unhappy customers, you'll only have happy ones left"

Reply via email to