[Reply to message from "Charles Cazabon" on Friday 11 Jun 2004 11:53 pm]

> > I have qmail-scanner installed. Qmail-queue here is acutally the
> > qmail-scanner script.  Why are these processes multiplying?
> >
> > USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
> > qscand    7519  0.0  0.0  1492  396 ?        S    05:49   0:00
> > /var/qmail/bin/qmail-inject -h -f qscand    7520  0.0  0.2  7904 5576 ?  
> >      S    05:49   0:00  \_ /usr/bin/suidperl -T /dev/fd/3/bin/qmail-queue
> > qscand    7557  0.0  0.0  1492  396 ?        S    05:49   0:00      \_
> > /var/qmail/bin/qmail-inject -h -f qscand    7558  0.0  0.2  7904 5576 ?  
> >      S    05:49   0:00          \_ /usr/bin/suidperl -T
> > /dev/fd/3/bin/qmail-queue
>
> [...]
>
> Well, you didn't actually include any useful information for diagnosing
> your problem, but I'll take a wild guess:
I can actually send an receive mails from this problematic installation.
What information can I send that would be useful for diagnosing the problem?

> 1) You're using the QMAILQUEUE patch, or have renamed
> /var/qmail/bin/qmail-queue and installed a wrapper as
> /var/qmail/bin/qmail-queue.
# ls -l *queue*
lrwxrwxrwx    1 root     root           22 Apr  2 07:15 qmail-queue -> 
qmail-scanner-queue.pl*
-rws--x--x    1 qmailq   qmail       13976 Jan  1 23:09 qmail-queue-ORIG*
-rwsr-xr-x    1 qscand   qscand     100788 Apr  2 07:01 qmail-scanner-queue.pl*

> 2) Your wrapper or QMAILQUEUE is set to call a Perl program as a mail
> filter of some type (virus scanner, spam filter, etc).
# cat /etc/tcprules.d/qmail-smtp
127.:allow,RELAYCLIENT="",QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl"
10.:deny
:allow,QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl"

> 3) Your mail filter is invoking qmail-inject to queue the
> filtered/processed message.
>
> 4) (3) causes (2) to be invoked again, instead of directly invoking the
> "real" qmail-queue binary.
Is there anything awkward about "/dev/fd/3/bin/qmail-queue" ?

-Chitta


-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to