QMAILQUEUE

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/...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.qmail

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-26-2006
ike
 
Posts: n/a
Default QMAILQUEUE

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

Reply With Quote
  #2 (permalink)  
Old 09-26-2006
AK
 
Posts: n/a
Default Re: QMAILQUEUE

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
Reply With Quote
  #3 (permalink)  
Old 09-27-2006
ike
 
Posts: n/a
Default Re: QMAILQUEUE

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


Reply With Quote
  #4 (permalink)  
Old 09-27-2006
AK
 
Posts: n/a
Default Re: QMAILQUEUE

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:08 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0