Marcello

Follow the instructions in "Living with QMail" religiously and it will work.  You have 
to adjust slightly to allow for qmail-scanner:

add an env directory under /service/qmail-smtpd and put in a file called QMAILQUEUE 
which contains the path and filename to qmail-scanner-queue.pl

split the "run" script for qmail-smtpd into two bits as so:

/service/qmail-smtpd/run:
------------------------------------------------------
#!/bin/sh

# First script that uses envdir to pass vars

exec /usr/local/bin/envdir ./env ./run2
------------------------------------------------------

/service/qmail-smtpd/run2:
------------------------------------------------------

#!/bin/sh

#
# Second part that actually runs up the Queue, using envdir
#

QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`

if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" ]; then
    echo QMAILDUID, NOFILESGID, or MAXSMTPD is unset in
    echo /var/qmail/supervise/qmail-smtpd/run
    exit 1
fi

exec /usr/local/bin/softlimit -m 10000000 \
    /usr/bin/tcpserver -v -R -l 0 -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \
        -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp /var/qmail/bin/qmail-smtpd 2>&1
------------------------------------------------------

Noting that /service/qmail-smtpd -> /var/qmail/supervise/qmail-smtpd

Read the docs on daemon-tools to see what this is all about.

Well that's a bit of overkill to your question but you do end up with an easy to 
control QMail with scanning and easy to control resource limits.  In the end you get 
an init script that basically does eveything or you can manually use svc et al to mess 
with individual bits.

Incidently you can check whether a process has the environment you think it has by 
looking in /proc/<PID of the process>/environ

Note that the environment of a process is not necessarily the same as the one your 
shell reports with "env"

Cheers
Jon Gerdes

>>> Marcello Lupo <[EMAIL PROTECTED]> 03/07/2002 12:58:28 >>>
Hi to all...
I tried too to use manually the qmail-inject from the system to send a
message and in this way the qmailscanner is triggered. If i use the smtp
connection with a Mail client it don't see the variable.
So it seems to be a problem of the way the system set the variable
QMAILQUEUE in the environment.
Any hint?
Thanks a lot.
Bye
MArcello


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
No, I will not fix your computer.
http://thinkgeek.com/sf 
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED] 
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
No, I will not fix your computer.
http://thinkgeek.com/sf
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to