I don't see anything wrong with this file.  My guess is that it's a 
permission problem; is it possible the qmaild user can't run the 
spamdyke binary?

Could you provide a little more information about the problem?  Are you 
seeing any error messages?  Does your server stop accepting mail 
entirely?  What OS and version are you using?  How was qmail installed 
(e.g. OS package, QMT, QmailRocks, LifeWithQmail, Plesk)?

-- Sam Clippinger

On 9/13/10 12:14 AM, Joy wrote:
> I have tried your script but it doesn't work for me, Here is my run file:-
>
> #!/bin/sh
> exec 2>&1
> #
> # SMTP service
> #
> QMAIL="/var/qmail"
> ME="`head -1 $QMAIL/control/me`"
> CONCURRENCY=${CONCURRENCY:=50}
> QUSER="qmaild"
>
> PATH="$QMAIL/bin:$PATH"
>
> # source the environemt in ./env
> eval `env - PATH=$PATH envdir ./env awk '\
>          BEGIN { for (i in ENVIRON) \
>                  if (i != "PATH") { \
>                          printf "export %s=\"%s\"\\n", i, ENVIRON[i] \
>                  } \
>          }'`
>
> # enforce some sane defaults
> QUSER=${QUSER:="qmaild"}
> PBSTOOL=${PBSTOOL:="$QMAIL/bin/pbscheck"}
>
> if [ X${NOPBS+"true"} = X"true" ]; then
>          unset PBSTOOL
> fi
>
> 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 2>&1
>
>
> Please let me know what's wrong with the run file.
>
>
> On Mon, Sep 13, 2010 at 3:58 AM, Demetrio López
> <[email protected]>  wrote:
>    
>> 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
>>
>>      
> _______________________________________________
> spamdyke-users mailing list
> [email protected]
> http://www.spamdyke.org/mailman/listinfo/spamdyke-users
>    
_______________________________________________
spamdyke-users mailing list
[email protected]
http://www.spamdyke.org/mailman/listinfo/spamdyke-users

Reply via email to