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?
NOTE: this is with 0.31.1 *NOT* trunk...
#!/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}"
'
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
- How do I get logging data from the forkserver (where does it go, how
do I verify that spamassassin/clamav are running)?
All logging is captured by multilog and if you are using the adaptive
logging plugin, you can further use multilog to filter the logging to
multiple destinations. Here is my log/run file:
#! /bin/sh
export LOGDIR=./main
mkdir -p $LOGDIR/accepted
exec multilog t n20 \
s4000000 \
'-*` *' $LOGDIR \
s1000000 \
'-*' '+*` *' $LOGDIR/accepted
HTH
John