I'm normally a digest subscriber and I saw this come through the digest.

We have approx 15,000 accounts on our server.

I solved the "unable to fork" problem using sh's limit (not the bash(?),
csh(?) ulimit) and by increasing the value of the -c option in tcpserver.

I have the following lines in my init script:

# Start qmail for local deliveries.
csh -cf '/var/qmail/rc &'

# Start qmail SMTP.
csh -cf '/root/bin/qmailsmtprc &'

# Start qmail POP3.
csh -cf '/root/bin/qmailpop3drc &'

and, for example, here's my qmailsptprc script using limit:

#!/bin/sh

limit maxproc 240
/usr/contrib/bin/tcpserver -c 100 -x /etc/tcp.smtp.cdb \
        -u 13985 -g 105 0 smtp \
       sh -c '
       /usr/contrib/bin/fixcr | /var/qmail/bin/qmail-smtpd
       cd /var/qmail/autoturn
       exec /usr/contrib/bin/setlock -nx $TCPREMOTEIP/seriallock \
       /usr/contrib/bin/maildirsmtp $TCPREMOTEIP \
       autoturn-$TCPREMOTEIP- $TCPREMOTEIP AutoTURN
       ' 2>&1 | /var/qmail/bin/splogger smtpd 3



P. Pirn - Sys Admin - see complete headers for more info

Reply via email to