This is a discussion on QMAILQUEUE within the alt.comp.mail.qmail forums, part of the Mail Servers and Related category; when I try test_installation in qmailrocks installation I obtain: # ./test_installation.sh -doit QMAILQUEUE was not set, defaulting to /var/qmail/...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
when I try test_installation in qmailrocks installation I obtain:
# ./test_installation.sh -doit QMAILQUEUE was not set, defaulting to /var/qmail/bin/qmail-scanner-queue.pl for this test... Sending standard test message - no viruses... done! Sending eicar test virus - should be caught by perlscanner module... qmail-inject: fatal: qq temporary problem (#4.3.0) Bad error. qmail-inject died Argh!!!! What is it???? TIA Ike |
|
|||
|
ike wrote:
> when I try test_installation in qmailrocks installation I obtain: > > # ./test_installation.sh -doit > QMAILQUEUE was not set, defaulting to > /var/qmail/bin/qmail-scanner-queue.pl for this test... > > Sending standard test message - no viruses... > done! > > Sending eicar test virus - should be caught by perlscanner module... > qmail-inject: fatal: qq temporary problem (#4.3.0) > Bad error. qmail-inject died > > Argh!!!! > > What is it???? > > TIA > Ike > what are the permissions on the qmail-inject binary? It should suid to qmailq if I'm not mistaken. It should be the same uid as the own that owns /var/qmail/queue. It is also possible that your qmail-scanner configuration is at fault. i.e. the clean message went through without a problem, however, the one with the virus encountered a problem. Are you scanning for virus using clam or similar applications? It is possible that the anti-virus application is having a problem as well. According to which guide did you install qmail? lifewithqmail.org? AK |
|
|||
|
I use qmailrocks guide:
------------------------- vi /var/qmail/supervise/qmail-smtpd/run To instruct Qmail to use Qmail-Scanner as the alternative queuing mechanism, we add the following line to the SMTP "run" script right under the first line (#!/bin/sh): QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" ; export QMAILQUEUE ...and we change the "softlimit" in that same script... change softlimit to 40000000 ----------------------------- Qmailqueue export has no effect. If i write "set" in my shell I obtain nothing for QMAILQUEUE If I set manually QMAILQUEUE variable I havn't problem Why so?? IK PS : in some guide i see: QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" ; export QMAILQUEUE in other i see QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue" ; export QMAILQUEUE whithout ".pl" ??????? AK ha scritto: > ike wrote: > > > when I try test_installation in qmailrocks installation I obtain: > > > > # ./test_installation.sh -doit > > QMAILQUEUE was not set, defaulting to > > /var/qmail/bin/qmail-scanner-queue.pl for this test... > > > > Sending standard test message - no viruses... > > done! > > > > Sending eicar test virus - should be caught by perlscanner module... > > qmail-inject: fatal: qq temporary problem (#4.3.0) > > Bad error. qmail-inject died > > > > Argh!!!! > > > > What is it???? > > > > TIA > > Ike > > > > what are the permissions on the qmail-inject binary? It should suid to > qmailq if I'm not mistaken. It should be the same uid as the own that > owns /var/qmail/queue. > > It is also possible that your qmail-scanner configuration is at fault. > > i.e. the clean message went through without a problem, however, the one > with the virus encountered a problem. Are you scanning for virus using > clam or similar applications? It is possible that the anti-virus > application is having a problem as well. > > > According to which guide did you install qmail? lifewithqmail.org? > > AK |
|
|||
|
ike wrote:
> I use qmailrocks guide: > > ------------------------- > vi /var/qmail/supervise/qmail-smtpd/run > > To instruct Qmail to use Qmail-Scanner as the alternative queuing > mechanism, we add the following line to the SMTP "run" script right > under the first line (#!/bin/sh): > > QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" ; export QMAILQUEUE > > ..and we change the "softlimit" in that same script... > > change softlimit to 40000000 > ----------------------------- > Qmailqueue export has no effect. If i write "set" in my shell I obtain > nothing for QMAILQUEUE > > If I set manually QMAILQUEUE variable I havn't problem > > Why so?? > > IK > > PS : in some guide i see: > > QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" ; export QMAILQUEUE > > in other i see > QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue" ; export QMAILQUEUE > > whithout ".pl" ??????? > > > > > > re: QMAILQUEUE, the difference is how the person set it up. If I am not mistaken there is a qmail-scanner-queue.c file as part of the qmail-scanner distribution that provides for a wrapper in the event that you do not have suid perl. i.e. even if you set UID on the perl script it still gets executed with the permissions of the users. Using the C wrapper, you can set UID on the wrapper that would then execute the perl script as root or whichever user you need. If you are trying to pass it in the run script, you need to include QMAILQUEUE in the env - format. You might be better off setting it in the tcp.smtp.cdb environment. I.e. no reason to scan items for virus or spam when the items are being sent out. AK |