On Wed, Sep 12, 2001 at 08:17:56PM +0200, Eric Persson wrote:
> Hi !
>
> I installed qmail recently and got it working after some time, but now I
> have some problems with the qmail-smtp daemon.
> I run it together with the tcpserver and it works just fine most of the
> time, but it stops responding after some time of usage.
>
> Just after a reboot it works nice, I get the expected from port 25
> 220 hostname ESMTP
> but after some time it returns nothing, which stops the server from
> receiving mail.
>
> My /service/qmail-smtpd/run looks like this
> #!/bin/sh
> QMAILDUID=`id -u qmaild`
> NOFILESGID=`id -g qmaild`
> MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
> exec /usr/local/bin/softlimit -m 2000000 \
> /usr/local/bin/tcpserver -v -R -l 0 -x /etc/tcp.smtp.cdb -c
> "$MAXSMTPD" \
> -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp
> /var/qmail/bin/qmail-smtpd 2>&1
>
> But I can not see anything there that should stop working after a
> while?!
> The logs give no clue at all.
Is it completely dead, or just really slow? Try opening a connection to
port 25 and wait (at least one minute...). If it's just really slow, you
have a few possible sources of problems. If it's really dead, try tracing
it with your operating system's tracing utility. Trace the program from
start to when it dies, and post a URL where we can go read the trace.
(Your OS's tracing utility may be strace, truss, ktrace, or some other
program I'm not familiar with).
--
Greg White