John Peacock said the following on 30/11/2005 22:14:
> Max Clark wrote:
> 
>> Two quick questions with the forkserver...
>>
>> - What is the best methodology for starting it? I am assuming that I
>> should be using daemontools - does anyone have an example run file?

I tried forkserver and, while it worked fine, I then went on to try
qpsmtpd running under SpeedyCGI. This seems to be faster and produces
less load.

All you do is replace your "./qpsmtpd" in your run script with
"/usr/bin/speedy -Tw -- -M$MAXCLIENTS" (obviously, set MAXCLIENTS
somewhere. My run script now looks like this:

#!/bin/sh
QMAILDUID=`id -u qpsmtpd`
NOFILESGID=`id -g qpsmtpd`
PORT=25
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
MAXCLIENTS=15
QPSMTPD_DIR=/var/qpsmtpd/0.31.1

cd $QPSMTPD_DIR
HOST=`head -1 config/IP`

exec /usr/local/bin/softlimit -m 25000000 \
        /usr/local/bin/tcpserver -v -R -p \
        -x /etc/tcp.smtp.cdb \
        -c $MAXSMTPD \
        -u $QMAILDUID \
        -g $NOFILESGID \
        $HOST $PORT \
        /usr/bin/speedy -Tw -- -M$MAXCLIENTS ./qpsmtpd 2>&1

R.
-- 
http://robinbowes.com

If a man speaks in a forest,
and his wife's not there,
is he still wrong?

Reply via email to