Hi. This is the script that I use to run qmail-smtpd with daemontools:
#!/bin/sh
exec 2>&1
#
# SMTP service
#
if [ -f env/CONCURRENCY~ ]
then
rm env/CONCURRENCY~
fi
USER=qmaild
QMAIL=/var/qmail
ME=$(head -1 $QMAIL/control/me)
CONCURRENCY=${CONCURRENCY:=50}
PATH=$PATH:"$QMAIL/bin"
# source the environemt in ./env
eval `env - /usr/local/bin/envdir ./env awk '\
BEGIN { for (i in ENVIRON) printf "%s=\"%s\"\n", i, ENVIRON[i] }'`
exec /usr/local/bin/envdir ./env \
envuidgid $USER \
tcpserver -v -URl $ME -x$QMAIL/control/qmail-smtpd.cdb \
${CONCURRENCY+"-c$CONCURRENCY"} ${BACKLOG+"-b$BACKLOG"} 0 smtp \
/usr/local/bin/spamdyke -f /etc/spamdyke.conf \
$QMAIL/bin/qmail-smtpd 2>&1
In my case I do not use PBS because this server only acts as MX. Users
read their mailboxes on another server.
In your script, Which is the value of $PBSTOOL variable?
El 10/09/10 12:07, Joy escribió:
> Hello Everyone,
> This is my first post to this list so please
> apologies me for any mistake.
>
> I am running qmail server with ldap support. Installed spamdyke on my
> server and also set up my run file as suggested in your website but my
> smtp server is not using spamdyke, while running spamdyke from command
> line with the same options working well so there is no issue in
> installation just let me know how to call the spamdyke from run file
> here is my run file contents:-
>
> exec \
> envuidgid $QUSER \
> tcpserver -v -HURl $ME -x$QMAIL/control/qmail-smtpd.cdb \
> ${CONCURRENCY:+"-c$CONCURRENCY"} ${BACKLOG:+"-b$BACKLOG"} 0 smtp
> \
> $PBSTOOL \
> /usr/local/bin/spamdyke -f /etc/spamdyke.conf \
> $QMAIL/bin/qmail-smtpd
>
> Please let me know what is the issue ?
> _______________________________________________
> spamdyke-users mailing list
> [email protected]
> http://www.spamdyke.org/mailman/listinfo/spamdyke-users
--
Atentamente,
Demetrio López.
Departamento de Sistemas, IdecNet S.A.
Centro de Gestión de Red.
Edificio IdecNet. C/Juan XXIII 44.
E-35004, Las Palmas de Gran Canaria,
Islas Canarias - España.
Tfn: +34 828 111 000 Ext: 340
_______________________________________________
spamdyke-users mailing list
[email protected]
http://www.spamdyke.org/mailman/listinfo/spamdyke-users