On Sat, Aug 25, 2001 at 03:22:16AM +0000, board master wrote:
> #!/bin/sh
> 
> QMAILDUID=`/usr/bin/id -u qmaild`
> NOFILESGID=`/usr/bin/id -g qmaild`
> QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" export QMAILQUEUE

Here you set QMAILQUEUE in the environment...

> exec env - PATH="/usr/local/bin:/var/qmail/bin" \
       ^^^^^
and here you say ignore the environment.

> /usr/local/bin/softlimit -m 10000000 \
> tcpserver -H -R -l0 -c100 -v -x /etc/tcp.smtp.cdb -u 532 -g 605 0 25 \
> qmail-smtpd 2>&1

Try changing your run file to this:

#!/bin/sh
 
QMAILDUID=`/usr/bin/id -u qmaild`  <-- you don't use these two variables
NOFILESGID=`/usr/bin/id -g qmaild` <-- so you could delete these lines,
                                       if you want, or youj could change
                                       your tcpserver command line to
                                       use them.

exec env - PATH="/usr/local/bin:/var/qmail/bin" \
           QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" \
/usr/local/bin/softlimit -m 10000000 \
tcpserver -H -R -l0 -c100 -v -x /etc/tcp.smtp.cdb -u 532 -g 605 0 25 \
qmail-smtpd 2>&1


Tim
-- 
* * * | 1) It's SLOW!    --> "man tcpserver" - especially -R,-H,-l
qmail | 2) Roaming users --> http://www.lifewithqmail.org/lwq.html#relaying
 FAQS | 3) Secondary MX  --> list in rcpthosts, NOT in locals/virtualdomains
* * * | 4) Discard mail  --> "#" line ONLY, in appropriate .qmail file

Reply via email to