qmail-smtpd run

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


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-28-2006
ike
 
Posts: n/a
Default qmail-smtpd run

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

Reply With Quote
  #2 (permalink)  
Old 09-28-2006
AK
 
Posts: n/a
Default Re: qmail-smtpd run

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

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


Reply With Quote
  #4 (permalink)  
Old 09-29-2006
ike
 
Posts: n/a
Default Re: qmail-smtpd run

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

Reply With Quote
  #5 (permalink)  
Old 09-29-2006
AK
 
Posts: n/a
Default Re: qmail-smtpd run

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
Reply With Quote
  #6 (permalink)  
Old 09-29-2006
AK
 
Posts: n/a
Default Re: qmail-smtpd run

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
Reply With Quote
  #7 (permalink)  
Old 09-29-2006
ike
 
Posts: n/a
Default Re: qmail-smtpd run

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

Reply With Quote
  #8 (permalink)  
Old 09-29-2006
ike
 
Posts: n/a
Default Re: qmail-smtpd run

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 ?

Reply With Quote
  #9 (permalink)  
Old 09-29-2006
Dave Sill
 
Posts: n/a
Default Re: qmail-smtpd run

"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
Reply With Quote
  #10 (permalink)  
Old 09-30-2006
AK
 
Posts: n/a
Default Re: qmail-smtpd run

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
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 09:15 PM.


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