This is a discussion on qmail-smtpd run within the alt.comp.mail.qmail forums, part of the Mail Servers and Related category; In qmailrocks guide, during qmail-scanner installation i read the following line: >vi /var/qmail/supervise/qmail-smtpd/run &...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
In qmailrocks guide, during qmail-scanner installation i read the
following line: >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 >change softlimit to 40000000 " I made this change and then I do: qmailctl stop qmailctl start It does not read previous line. Why???? TIA IK |
|
|||
|
ike wrote:
> In qmailrocks guide, during qmail-scanner installation i read the > following line: > > > > >>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 >>change softlimit to 40000000 > > > " > > > > I made this change and then I do: > > qmailctl stop > qmailctl start > > > It does not read previous line. Why???? > > TIA > IK > ike, modify the tcp.smpt entry to have QMAILQUEUE as part of the default line. i.e. :allow,QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" qmailctl cdb if you have mltiple allow lines in the tcp.smtp file, add QMAILQUEUE to each. When I setup qmail-scanner, I only included it on incoming MX related systems. AK |
|
|||
|
I do it and I obtain:
# ./test_installation.sh -doit QMAILQUEUE was not set, defaulting to /var/qmail/bin/qmail-scanner-queue.pl for this test... ?????? QMAILQUEUE not set ?????????? Sending standard test message - no viruses... done! Sending eicar test virus - should be caught by perlscanner module... done! Sending eicar test virus with altered filename - should only be caught by commercial anti-virus modules (if you have any)... Sending bad spam message for anti-spam testing - In case you are using SpamAssassin... Done! Finished test. Now go and check Email for postmaster@artisticoegobianchi.it ???? In my postmaster mail I see nothing. (I use Squirrelmail)???? Thanks IKE > > ike, > > modify the tcp.smpt entry to have QMAILQUEUE as part of the default line. > > i.e. > :allow,QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" > > qmailctl cdb > if you have mltiple allow lines in the tcp.smtp file, add QMAILQUEUE to > each. > > When I setup qmail-scanner, I only included it on incoming MX related > systems. > > AK |
|
|||
|
Dear AK
pheraphs the problem is different. I try to send and receive email from postmaster@mydom.it to myemail@gmailcom FRom postmaster to myemail@gmail.com i receive email correctly!!! When I try to send email from myemail@gmail.com to postmaster@mydom.it I obtain: MAILER-DAEMON@mydom.it to me More options 3:02 am (0 minutes ago) Hi. This is the qmail-send program at mydom.it. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. <root@mydom.it>: This message is looping: it already has my Delivered-To line. (#5.4.6) --- Below this line is a copy of the message. Return-Path: <myemail@gmail.com> Received: (qmail 9964 invoked by alias); 30 Sep 2006 01:02:41 -0000 Delivered-To: root@mydom.it Received: (qmail 9961 invoked by alias); 30 Sep 2006 01:02:41 -0000 Delivered-To: postmaster@mydom.it Received: (qmail 9955 invoked from network); 30 Sep 2006 01:02:41 -0000 I don't know what is the problem!! IK |
|
|||
|
ike wrote:
> Dear AK > pheraphs the problem is different. I try to send and receive email from > postmaster@mydom.it to myemail@gmailcom > > FRom postmaster to myemail@gmail.com i receive email correctly!!! > When I try to send email from myemail@gmail.com to postmaster@mydom.it > I obtain: > > MAILER-DAEMON@mydom.it > to me > More options 3:02 am (0 minutes ago) > Hi. This is the qmail-send program at mydom.it. > I'm afraid I wasn't able to deliver your message to the following > addresses. > This is a permanent error; I've given up. Sorry it didn't work out. > > <root@mydom.it>: > This message is looping: it already has my Delivered-To line. (#5.4.6) > > --- Below this line is a copy of the message. > > Return-Path: <myemail@gmail.com> > Received: (qmail 9964 invoked by alias); 30 Sep 2006 01:02:41 -0000 > Delivered-To: root@mydom.it > Received: (qmail 9961 invoked by alias); 30 Sep 2006 01:02:41 -0000 > Delivered-To: postmaster@mydom.it > Received: (qmail 9955 invoked from network); 30 Sep 2006 01:02:41 -0000 > > > I don't know what is the problem!! > > IK > Look into /var/qmail/alias/ the .qmail-root .qmail-postmaster you should point those to a real mailbox on the system and not back out to a username on the mydom.it. i.e. .qmail-root should have ike@mydom.it and so should ..qmail-postmaster. My guess is that .qmail-root references postmaster and .qmail-postmaster references root. AK |
|
|||
|
ike wrote:
> I do it and I obtain: > > > # ./test_installation.sh -doit > QMAILQUEUE was not set, defaulting to > /var/qmail/bin/qmail-scanner-queue.pl for this test... > ?????? QMAILQUEUE not set ?????????? > > Sending standard test message - no viruses... > done! > > Sending eicar test virus - should be caught by perlscanner module... > done! > > Sending eicar test virus with altered filename - should only be caught > by commercial anti-virus modules (if you have any)... > > Sending bad spam message for anti-spam testing - In case you are using > SpamAssassin... > Done! > > Finished test. Now go and check Email for > postmaster@artisticoegobianchi.it > > ???? In my postmaster mail I see nothing. (I use Squirrelmail)???? > > Thanks > IKE > > > >>ike, >> >>modify the tcp.smpt entry to have QMAILQUEUE as part of the default line. >> >>i.e. >>:allow,QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" >> >>qmailctl cdb >>if you have mltiple allow lines in the tcp.smtp file, add QMAILQUEUE to >>each. >> >>When I setup qmail-scanner, I only included it on incoming MX related >>systems. >> >>AK > > The test does not read any configuration files. If you want the test to pass, do export QMAILQUEUE=/var/qmail/bin/qmail-scanner-queue.pl AK |
|
|||
|
I'm very unhappy!!
vi /var/qmail/alias/.qmail-root ---> ... root@mydom.it vi /var/qmail/alias/.qmail-postmaster ---> ... root@mydom.it # test_installation -doit ..... The resul is that i don't see anything in root@mydom.it (I use squirrelmail) I don't know. IK |
|
|||
|
"ike" <re.ivan@gmail.com> writes:
> I'm very unhappy!! > > > vi /var/qmail/alias/.qmail-root ---> ... root@mydom.it That's a loop. But the real problem is that you can't deliver mail to the root user. See: http://lifewithqmail.org/lwq.html#root-delivery -Dave |
|
|||
|
ike wrote:
> In file run of qmail-smtp (/var/qmail/supervise/qmail-smtpd/run) I > write: > > QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue" ; export QMAILQUEUE > > Then I do: > > qmailctl stop > qmailctl start > > Why do I need to rewrite export in my shell ? > Setting the QMAILQUEUE in the run script is not enough, you need to pass it by including the env - in the command. A modified snipet of the qmail-smtpd/run file from lifewithqmail.org using the reference of /var/qmail/rc exec env - QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl \ /usr/local/bin/softlimit -m 2000000 \ /usr/local/bin/tcpserver -v -R -l "$LOCAL" -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \ -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \ /var/qmail/bin/qmail-smtpd 2>&1 I still say that it is better to include the QMAILQUEUE portion as part of the tcp.smtp file versus as part of the run file. AK |