John Peacock said the following on 29/11/2005 02:41:
>
> My advice mirrors Ask's; here is my run file:
>
> #!/bin/sh
> exec 2>&1 \
> envdir ./env \
> sh -c '
> exec \
> softlimit ${DATALIMIT+"-d$DATALIMIT"} \
> ${PERL-perl} -T ./qpsmtpd-forkserver \
> --listen-address "${IP-0}" \
> --port "${PORT-25}" \
> --limit-connections "${MAXCLIENTS-15}" \
> --user "${QPUSER-smtpd}"
> '
Thanks. That helps a lot.
One thing: I currently use tcpserver to enable relaying using
pop-before-smtp, i.e.:
-x /etc/tcp.smtp.cdb
Is there anyway to do this using qpsmtpd-forkserver?
> If you don't want to run envdir, you can just replace those ${} constructs
> with
> the actual values you want to use. FWIW, what I am using is:
>
> env/DATALIMIT:25000000
> env/IP:my.ip.addr.ess
> env/MAXCLIENTS:15
> env/PERL:/usr/local/bin/perl5.8.1
> env/PORT:25
> env/QPUSER:qmaild
I'm using this run file now:
#!/bin/sh
#QMAILDUID=`id -u qpsmtpd`
#NOFILESGID=`id -g qpsmtpd`
USER=qpsmtpd
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
DATALIMIT=25000000
PORT=25
QPSMTPD_DIR=/var/qpsmtpd/0.31.1
cd $QPSMTPD_DIR
HOST=`head -1 config/IP`
exec \
/usr/local/bin/softlimit -m $DATALIMIT \
perl -T ./qpsmtpd-forkserver \
--listen-address $HOST \
--port $PORT \
--limit-connections $MAXSMTPD \
--user $USER \
./qpsmtpd 2>&1
I have used envdir in the past but I wasn't sure how your ${} constructs
work. For example, what does this do:
${DATALIMIT+"-d$DATALIMIT"}
Presumably, you just have "25000000" in env/DATALIMIT ?
Thanks,
R.
--
http://robinbowes.com
If a man speaks in a forest,
and his wife's not there,
is he still wrong?