qmail Digest 8 May 2000 10:00:01 -0000 Issue 995

Topics (messages 41252 through 41284):

Re: I am Panic!!!
        41252 by: David Cunningham

Re: scan4virus
        41253 by: octave klaba
        41254 by: Warren J. Beckett
        41255 by: Johan Almqvist
        41256 by: Johan Almqvist
        41271 by: octave klaba
        41272 by: Johan Almqvist
        41273 by: octave klaba

Re: Open Today.
        41257 by: Len Budney
        41262 by: Russell Nelson
        41283 by: Len Budney

Re: Anti-virus
        41258 by: Rainer Link
        41264 by: Ronneil Camara
        41268 by: Rainer Link

Re: temporary failure warning message
        41259 by: wightman.acm.org
        41265 by: Russell Nelson

Re: Unable to Telnet
        41260 by: ino-waiting.gmx.net
        41270 by: Xionghui Chen
        41278 by: Vince Vielhaber
        41279 by: Vince Vielhaber

Re: qmail installation
        41261 by: ino-waiting.gmx.net
        41277 by: Bob Rogers

URGENT ! Erased /var/qmail !!!
        41263 by: dlighter.netcourrier.com
        41276 by: Bob Rogers
        41281 by: dlighter.netcourrier.com

Re: QMail Performance Question & Miscellaneous Issues
        41266 by: Bryan White
        41267 by: Peter van Dijk
        41280 by: Bob Rogers
        41284 by: Steve Wolfe

how to stop subscription
        41269 by: Anthony Diaz

qmailqueue-patch
        41274 by: octave klaba

ETRN
        41275 by: Tomasz Antczak

detailed smtp monitoring
        41282 by: J.M. Roth \(iip\)

Administrivia:

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To bug my human owner, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------


Suggestion:

Edit the script.  Look for any and all references to files and file paths.
Verify each of these paths really exist.  Chances are the init script is
looking in the wrong place for a qmail related file.  Find out where the
target files *really* are on your system and edit the init file to point to
them.

-David

----- Original Message -----
From: Mark Lo <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, May 06, 2000 5:14 AM
Subject: I am Panic!!!


> Hi,
>
>      I have followed the doc from "life with qmail" to install my qmail
> server.  When I reboot the server, I got the following error messages
> stating that "execup : directory not found    [failed].   I have placed
> the auto startup script in my /etc/rc.d/init.d directory.  And I did
> create a symbolic link "ln -s ../init.d/qmail
> /etc/rc.d/init.d/rc3.d/S80qmail"   since my system is using run level
> 3.  I am wondering what 's wrong with it???
>
> Thank you for your help
>
> Mark Lo
>
>







> >         env - PATH="/var/qmail/bin:/usr/local/bin" \
> >         tcpserver -H -R -c100 0 pop-3 /var/qmail/bin/qmail-popup \
> >         ns0.ovh.net\
> >         /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir &
> >         echo -n "pop "
> >
> >         QMAILQUEUE="/var/qmail/bin/antivirus-qmail-queue.pl" export QMAILQUEUE
> 
> missing ; or newline before the export, i think...

I put ; and newline, but it is not this :(

[root@ns0 /root]# echo $QMAILQUEUE
/var/qmail/bin/antivirus-qmail-queue.pl

and I can send without any problem a happy99.exe to 
[EMAIL PROTECTED]


Amicalement,
oCtAvE 

Connexion termin�e par expiration du d�lai d'attente




Thanks again.

You are going to love this. I incerted your code.. and... a pause.. nothing
more in the debug. If I delete the db file it will not complain about it, as
if it is not even trying to open it.

Thanks again,

Regards
Warren.
----- Original Message -----
From: Johan Almqvist <[EMAIL PROTECTED]>
To: Warren J. Beckett <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, May 07, 2000 6:59 PM
Subject: Re: scan4virus


> On Sun, May 07, 2000 at 06:22:57PM +1000, Warren J. Beckett wrote:
> > As requested
> >
> > [root@orbital bin]# ls -lsa /var/spool/qmailscan/
> > total 26
> >    1 drwxrwx---    5 qmailq   qmail        1024 May  7 12:57 .
> >    1 drwxr-xr-x   12 root     root         1024 May  7 12:54 ..
> >   13 -rw-r-----    1 qmailq   root        16384 May  7 12:54
> > antivirus-attachments.db
>
> I think this is your problem. Try making the group 'qmail'.
>
> If that doesn't help, try the following patch:
>
> Between the lines
>
> --snip--
>   tie %array, 'DB_File', "$db_filename.db", O_RDONLY, 0600 ||
> &tempfail("cannot open  $db_filename - $!");
>
>   foreach $file (@allfiles) {
> --snap--
>
> insert the following statement
> &debug("perlscanner-test: " . join ("\n",keys %array));
>
> and check the logs as to whether there are any virii file names after the
> string perlscanner-test .
>
> -Johan
> --
> Johan Almqvist
>





On Sun, May 07, 2000 at 12:05:56PM +0200, octave klaba wrote:
> I put ; and newline, but it is not this :(
> 
> [root@ns0 /root]# echo $QMAILQUEUE
> /var/qmail/bin/antivirus-qmail-queue.pl
> 
> and I can send without any problem a happy99.exe to 
> [EMAIL PROTECTED]

What do the logs say?(tm)

The logs in /var/spool/qmailscan/, that is.

-Johan
-- 
Johan Almqvist




On Sun, May 07, 2000 at 08:25:37PM +1000, Warren J. Beckett wrote:
> Thanks again.
> 
> You are going to love this. I incerted your code.. and... a pause.. nothing
> more in the debug. If I delete the db file it will not complain about it, as
> if it is not even trying to open it.

Moreover, try putting in the line

unless (-r "/var/spool/qmailscan/antivirus-attachments.txt")
{       &debug("perlscanner: cannot read perlscanner database\n");
}

;->

-Johan
-- 
Johan Almqvist




Hi,

> What do the logs say?(tm)

I ran 3 times  /var/qmail/bin/antivirus-qmail-queue.pl -z
and it genereted

[root@ns0 qmailscan]# cat qmail-queue.log
06/05/2000 10:36:19:1520: +++ starting debugging for process 1520
06/05/2000 10:36:19:1520: setting UID to EUID so subprocesses can access files 
generated by this script
06/05/2000 10:36:19:1520: program name is /var/qmail/bin/antivirus-qmail-queue.pl
06/05/2000 10:36:19:1520: re-create the antivirus version file
06/05/2000 10:36:19:1520: no files to clean up!
07/05/2000 12:01:39:23193: +++ starting debugging for process 23193
07/05/2000 12:01:39:23193: setting UID to EUID so subprocesses can access files 
generated by this script
07/05/2000 12:01:39:23193: program name is /var/qmail/bin/antivirus-qmail-queue.pl
07/05/2000 12:01:39:23193: working_copy: dump incoming msg into 
/var/spool/qmailscan/working/tmp/ns0.ovh.net95769369923193
07/05/2000 12:01:39:23193: working_copy: rename new msg from 
/var/spool/qmailscan/working/tmp/ns0.ovh.net95769369923193 to
/var/spool/qmailscan/working/new/ns0.ovh.net95769369923193
07/05/2000 16:28:26:19887: +++ starting debugging for process 19887
07/05/2000 16:28:26:19887: setting UID to EUID so subprocesses can access files 
generated by this script
07/05/2000 16:28:26:19887: program name is /var/qmail/bin/antivirus-qmail-queue.pl
07/05/2000 16:28:26:19887: re-create the antivirus version file
07/05/2000 16:28:26:19887: no files to clean up!

Amicalement,
oCtAvE 

Connexion termin�e par expiration du d�lai d'attente




On Sun, May 07, 2000 at 04:31:22PM +0200, octave klaba wrote:
> Hi,
> > What do the logs say?(tm)
> I ran 3 times  /var/qmail/bin/antivirus-qmail-queue.pl -z
> and it genereted

-z is not interesting. I'd like to see the output from when it processes
mail. Make sure debugging is turned on, also.

> [root@ns0 qmailscan]# cat qmail-queue.log

-Johan
-- 
Johan Almqvist





> -z is not interesting. I'd like to see the output from when it processes
> mail. Make sure debugging is turned on, also.

I have nothing else in log :(

it looks like qmail is not using antivirus-qmail-queue.pl


Amicalement,
oCtAvE 

Connexion termin�e par expiration du d�lai d'attente




John White <[EMAIL PROTECTED]> wrote:
> On Sat, May 06, 2000 at 04:30:54PM -0400, Len Budney wrote:
> > (BTW blocking DUL has not interfered with my own email in a couple of
> > years now...)
> 
> Amazing.  In one year, our office ran across: [7 domains snipped]
> We had to smtproute them all to our dialup provider.  

A glance at your list indicates I haven't written to anybody at any of
those domains in at least a couple of years. If I had, I'd have done
what you did, and smtproute-ed them through my ISP (which uses qmail!).

I'd also send those correspondents an email explaining why their mail
is late whenever I'm on the road.

Len.

--
Frugal Tip #45:
Cheat at cards.




John White writes:
 > On Sat, May 06, 2000 at 04:30:54PM -0400, Len Budney wrote:
 > > (BTW blocking DUL has not interfered with my own email in a couple of
 > > years now. So despite the big talk of folks who use it, I continue to
 > > send mail directly from my machine. DUL blocking only works because it
 > > is a rarely-taken measure.)
 > 
 > Amazing.  In one year, our office ran across:
 > 
 > aol.com

Add to that list crynwr.  Len, you've sent me mail directly; no
problem.  Yet I block on the DUL.  I think the reason you haven't had
any problems is because your ISP hasn't listed its dialups with the
DUL.  In general, the DUL doesn't go looking.  It lists modems for
ISPs that contribute, or those with a spamming problem.

-- 
-russ nelson <[EMAIL PROTECTED]>  http://russnelson.com
Crynwr sells support for free software  | PGPok | "Ask not what your country
521 Pleasant Valley Rd. | +1 315 268 1925 voice | can force other people to
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | do for you..."  -Perry M.




Russell Nelson <[EMAIL PROTECTED]> wrote:
> 
> Len, you've sent me mail directly; no problem.  Yet I block on the DUL.
> I think the reason you haven't had any problems is because your ISP
> hasn't listed its dialups with the DUL.

Ah, that explains it! Well, bully for my ISP! They're cool for reasons
other than running qmail I see.

Len.

--
Frugal Tip #17:
Visit the Ford Foundation while disguised as a large, charitable
organization.




Andr�s wrote:

> >See also the discussion a few days before. For a comparison, I would
> >recommand AMaViS-Perl at http://www.unixzone.com/virus/.
> >Which one is best - well, I'm biased :-)
> I've seen in your web a patch for the latest version of Amavis, do I need to
> apply that patch for the Perl version of Amavis?

No, the two patches on my homepage (www.cn.fh-furtwangen.de/~link/)
apply only to AMaViS 0.2.0-pre6 (the "original" version). They are in a
way out-of-date, because most stuff is included into 0.2.0-pre6-clm-rl-8
(that's the shell script version). 
Simply download AMaViS-Perl-6 (maybe also some required Perl modules)
and give it a try. 

HTH

best regards,
Rainer Link

-- 
Rainer Link  | Student of Computer Networking                            
[EMAIL PROTECTED] | University of Applied Sciences, Furtwangen, Germany       
rainer.w3.to | http://www.computer-networking.de/




Is amavis for linux just a virus scanner? Or does it cleans viruses also?

Thanks




Ronneil Camara wrote:

> Is amavis for linux just a virus scanner? Or does it cleans viruses also?

Neither AMaViS nor scan4virus are antivirus software per se. They need
one (or more) installed (commercial) antivirus packages, such as Sophos
Sweep, H+B EDV AntiVir, KasperskyLabs AVP or F-Secure AV. If a infected
attachment is detected, the complete mail is moved to a quarantine
directory. It is then up to you, to clean a infected attachment with one
of the above commercial antivirus software.

HTH

best regards,
Rainer Link

-- 
Rainer Link  | Member of Virus Help Munich (www.vhm.haitec.de)           
[EMAIL PROTECTED] | Member of AMaViS Development Team (amavis.org)            
rainer.w3.to | Maintainer FAQ "antivirus for Linux" (av-linux.w3.to)




> Quoting Russell Nelson ([EMAIL PROTECTED]):
> > Chris Hardie writes:
> >  > Unfortunately, that link appears to be broken.  Brian Wightman, please
> >  > pick up the nearest courtesy phone.
> > 
> > It's also temporarily available as
> > http://www.qmail.org/qmail_bounce-0.0alpha6.tar.gz .  If Brian doesn't 
> > show up too soon, I'll change the link to point to my server.
> 
> I'm pretty sure I remember seeing a post from Brian some time back
> where he stated he was no longer working on the notifier.  He asked
> for volunteers to pick up the slack, I think.

(ring ring - Uhhh, hello?)  My ISP has changed a couple of times since 
that link was last updated.  You can find the software off from my
redirector page at http://bwightman.i.am/, but I would prefer if one of
the other sites would become the distribution site for this, since I
do not see myself maintaining it any more (family constraints, etc).

If someone does decide to maintain it, I have a couple of suggestion
mail messages from users of the software I could forward.

Let me know,
Brian





[EMAIL PROTECTED] writes:
 > > > It's also temporarily available as
 > > > http://www.qmail.org/qmail_bounce-0.0alpha6.tar.gz .  If Brian doesn't 
 > > > show up too soon, I'll change the link to point to my server.
 > 
 > (ring ring - Uhhh, hello?)  My ISP has changed a couple of times since 
 > that link was last updated.  You can find the software off from my
 > redirector page at http://bwightman.i.am/, but I would prefer if one of
 > the other sites would become the distribution site for this, since I
 > do not see myself maintaining it any more (family constraints, etc).

Okay, I'm now linking to my local copy of that file.  If anyone
updates it, please publish it and give me a link or give me the file
itself to publish.

-- 
-russ nelson <[EMAIL PROTECTED]>  http://russnelson.com
Crynwr sells support for free software  | PGPok | "Ask not what your country
521 Pleasant Valley Rd. | +1 315 268 1925 voice | can force other people to
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | do for you..."  -Perry M.




> Xionghui Chen (Sun 07.0500-12:12):

> I got the same problem, anybody help out?

it's not that you consistently misspelled smtp?  i noticed you saying smpt
instead.  if this is also the value in your /etc/services, port 25 and smtp
won't be associated.  this is a wild guess, but things like this have
given me the hookey...

-- 
[EMAIL PROTECTED]




Well, I didn't make the typo when configuering qmail, but the smtpd refuses 
connection. When I use `netstat -a | grep smtp` under Solaris 2.7, the system echoes:
    *.smtp    *.*       0    0    0    0 LISTEN

Could you tell me something about /etc/tcp.smtp.cdb ?

----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, May 07, 2000 4:38 PM
Subject: Re: Unable to Telnet


> > Xionghui Chen (Sun 07.0500-12:12):
> 
> > I got the same problem, anybody help out?
> 
> it's not that you consistently misspelled smtp?  i noticed you saying smpt
> instead.  if this is also the value in your /etc/services, port 25 and smtp
> won't be associated.  this is a wild guess, but things like this have
> given me the hookey...
> 
> -- 
> [EMAIL PROTECTED]
> 





On Sun, 7 May 2000, Mark Lo wrote:

> hi,
> 
>      I think my smptd server is not listening.
> I did the netstat -ta command.  I did not see anthing related to smptd.  So, how to 
>start
> the smptd server.  Also, do i have to start it manually everytime I reboot the 
>machine??

Take a look here:  http://www.palomine.net/qmail/selectiverelay.html  for
a step by step.   

I added the startup to /var/qmail/rc.  You may want to start qmail-smtpd
before qmail in that script.

Vince.



> 
> Thank You
> 
> Vince Vielhaber wrote:
> 
> > On Sun, 7 May 2000, Mark Lo wrote:
> >
> > > Hi,
> > >
> > > yes..it is running on the local machine..and i am able to telnet to 127.0.0.1 
>without
> > > the port number.
> >
> > What happens when you do this:
> >
> > $ telnet 0 25
> >
> > Do you get in?
> >
> > Vince.
> >
> > >
> > > Thank you
> > >
> > > Vince Vielhaber wrote:
> > >
> > > > On Sun, 7 May 2000, Mark Lo wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > >     Unable to connect to 127.0.0.1 25 ....can't find remote server...
> > > >
> > > > How about:
> > > >
> > > > $ telnet 0 25
> > > >
> > > > or isn't it running on the local machine?
> > > >
> > > > Vince.
> > > >
> > > > >
> > > > > Thank you
> > > > >
> > > > > Mark
> > > > >
> > > > > Vince Vielhaber wrote:
> > > > >
> > > > > > On Sun, 7 May 2000, Mark Lo wrote:
> > > > > >
> > > > > > > Hi,
> > > > > > >    when i use ps -ef...i see the followings:
> > > > > > > 1.qmails      qmail-send
> > > > > > > 2.qmaill       /usr/local/bin/multilog t
> > > > > > > 3.qmaill       /usr/local/bin/multilog t
> > > > > > > 4.root         qmail=lspawn
> > > > > > > 5.qmailr      qmail=rspawn
> > > > > > > 6.qmailq      qmail=clean
> > > > > > >
> > > > > > > for qmail-smpt..I don't know what is it.
> > > > > >
> > > > > > When you telnet to port 25 what does it tell you?  Connection refused or
> > > > > > something else?   There's a good chance that qmail-smtpd isn't running.
> > > > > >
> > > > > > Vince.
> > > > > >
> > > > > > >
> > > > > > > Thank You.
> > > > > > >
> > > > > > > mark lo
> > > > > > >
> > > > > > > Vince Vielhaber wrote:
> > > > > > >
> > > > > > > > What EXACTLY is the line that starts qmail-smtpd?   Also what does
> > > > > > > > either ps -axww or ps -ef show you??
> > > > > > > >
> > > > > > > > Vince.
> > > > > > > >
> > > > > > > > On Sun, 7 May 2000, Xionghui Chen wrote:
> > > > > > > >
> > > > > > > > > I got the same problem, anybody help out?
> > > > > > > > >
> > > > > > > > > ----- Original Message -----
> > > > > > > > > From: "Mark Lo" <[EMAIL PROTECTED]>
> > > > > > > > > To: <[EMAIL PROTECTED]>
> > > > > > > > > Sent: Sunday, May 07, 2000 12:18 PM
> > > > > > > > > Subject: Unable to Telnet
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > > Hi,
> > > > > > > > > >
> > > > > > > > > >     I am not able to telnet 127.0.0.1 25 to my smpt port.  And I 
>have
> > > > > > > > > > checked that I haven't setup anything listening to port 25 expect 
>smpt
> > > > > > > > > > itself.  What do i do wrong here.  I was following the life with 
>qmail
> > > > > > > > > > manual.  and I got everything running except the above.
> > > > > > > > > >
> > > > > > > > > > Thank you
> > > > > > > > > >
> > > > > > > > > > Mark Lo
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > > 
>==========================================================================
> > > > > > > > Vince Vielhaber -- KA8CSH    email: [EMAIL PROTECTED]   
>http://www.pop4.net
> > > > > > > >  128K ISDN from $22.00/mo - 56K Dialup from $16.00/mo at Pop4 
>Networking
> > > > > > > >         Online Campground Directory   http://www.camping-usa.com
> > > > > > > >        Online Giftshop Superstore   http://www.cloudninegifts.com
> > > > > > > > 
>==========================================================================
> > > > > > >
> > > > > > >
> > > > > >
> > > > > > --
> > > > > > ==========================================================================
> > > > > > Vince Vielhaber -- KA8CSH    email: [EMAIL PROTECTED]    http://www.pop4.net
> > > > > >  128K ISDN from $22.00/mo - 56K Dialup from $16.00/mo at Pop4 Networking
> > > > > >         Online Campground Directory    http://www.camping-usa.com
> > > > > >        Online Giftshop Superstore    http://www.cloudninegifts.com
> > > > > > ==========================================================================
> > > > >
> > > > >
> > > >
> > > > --
> > > > ==========================================================================
> > > > Vince Vielhaber -- KA8CSH    email: [EMAIL PROTECTED]    http://www.pop4.net
> > > >  128K ISDN from $22.00/mo - 56K Dialup from $16.00/mo at Pop4 Networking
> > > >         Online Campground Directory    http://www.camping-usa.com
> > > >        Online Giftshop Superstore    http://www.cloudninegifts.com
> > > > ==========================================================================
> > >
> > >
> >
> > --
> > ==========================================================================
> > Vince Vielhaber -- KA8CSH    email: [EMAIL PROTECTED]    http://www.pop4.net
> >  128K ISDN from $22.00/mo - 56K Dialup from $16.00/mo at Pop4 Networking
> >         Online Campground Directory    http://www.camping-usa.com
> >        Online Giftshop Superstore    http://www.cloudninegifts.com
> > ==========================================================================
> 
> 

-- 
==========================================================================
Vince Vielhaber -- KA8CSH    email: [EMAIL PROTECTED]    http://www.pop4.net
 128K ISDN from $22.00/mo - 56K Dialup from $16.00/mo at Pop4 Networking
        Online Campground Directory    http://www.camping-usa.com
       Online Giftshop Superstore    http://www.cloudninegifts.com
==========================================================================







On Sun, 7 May 2000, Xionghui Chen wrote:

> Oh, I don't know that I have to config a /etc/tcp.smtp.cdb file, actually, I got no 
>output with the command `find / -name tcp.smtp.cdb`. How should I make this kind of 
>file, where can I get detailed document about it?  Thank you.

Take a look here:  http://www.palomine.net/qmail/selectiverelay.html  for
a step by step.

Vince.



> 
> 
> > On Sun, 7 May 2000, Xionghui Chen wrote:
> > 
> > > *** I got the following processes when qmail running:
> > > 
> > > bash-2.03# ps -ef |grep qmail
> > >     root   397   396  0 09:38:25 ?        0:00 supervise qmail-send
> > >     root   399   396  0 09:38:25 ?        0:00 supervise qmail-smtpd
> > >   qmails   401   397  0 09:38:25 ?        0:00 qmail-send
> > >   qmaill   402   401  0 09:38:25 ?        0:00 splogger qmail
> > >     root   403   401  0 09:38:25 ?        0:00 qmail-lspawn |preline procmail
> > >   qmaill   404   398  0 09:38:25 ?        0:00 /usr/local/bin/multilog t
> > > s2500000 /var/log/qmail/qmail-send
> > >   qmailr   405   401  0 09:38:25 ?        0:00 qmail-rspawn
> > >   qmailq   406   401  0 09:38:25 ?        0:00 qmail-clean
> > >   qmaill   407   400  0 09:38:26 ?        0:00 /usr/local/bin/multilog t
> > > s2500000 /var/log/qmail/qmail-smtpd
> > >   qmaild   408   399  0 09:38:26 ?        0:00 /usr/local/bin/tcpserver -v -p
> > > -x /etc/tcp.smtp.cdb -u 103 -g 102 0 smtp /var/q
> > > bash-2.03#
> > 
> > How did you create this:  /etc/tcp.smtp.cdb  and what's in it?  tcpserver
> > acts as if its being told not to accept your connection.  
> > 
> > Vince.
> 
> 

-- 
==========================================================================
Vince Vielhaber -- KA8CSH    email: [EMAIL PROTECTED]    http://www.pop4.net
 128K ISDN from $22.00/mo - 56K Dialup from $16.00/mo at Pop4 Networking
        Online Campground Directory    http://www.camping-usa.com
       Online Giftshop Superstore    http://www.cloudninegifts.com
==========================================================================







> Daniel (Sun 07.0500-11:49):
> 2)
> If I have installed qmail, then I telnet to mail.domain.com 25/110 is work well, but 
>I can't get the mail from that server, what's wrong? (In this case I have 
>installed/copied procmail and fetchmail from pkgtool)
> Should I re-configure/re-installed qmail again?

the logical operation is like this:  incoming mail gets collected at your
isp (mail.domain.com?).  you activate fetchmail on your machine, which logs
into your isp's pop3 port (110) using the password you set up with your isp
for this and gets your mail.  whenever a message is transferred, fetchmail
connects locally to your smtp-daemon (port 25, host 127.0.0.1) to have it
delivered.  you can configure fetchmail to pop mail for official-user-1@
isp.domain and route it to [EMAIL PROTECTED]  this is part of my
~/.fetchmailrc:

# .fetchmailrc
set logfile /var/log/fetchmail
# poll interval
set daemon 77177
# defaults for every poll
defaults
        fetchall forcecr
        antispam 571, 550, 501
# example:  poll your isp's pop3 server
poll pop3.isp.domain protocol POP3 timeout 200
        user official-id pass password is local-id here

i had to specify the "forcecr" option, which was not neccessary when
fetchmail delivered via sendmail.

procmail is a sophisticated local delivery agent.  you should not use it as
long as your setup doesn't work.  when it works, it should get activated by
entries in local users .qmail files using "|procmail ..." lines (one
possibility of several).  but for this to work the mail folders have to be in
mbox format, which is configurable in qmail but maildir is preferred for
several reasons.  you should leave procmail out of the way until things work.

outgoing mail has nothing to do with this setup.  it connects to port 25 of
your isp (outgoing means non-local here, and the basic setup is for a
leafnode with dynamic ip-routes).  since many isp's do not relay mail and
want to spam-control their customers, they offer to act as "smart-host" for
outbound smtp.  you can make sure of this by making
qmail/control/smtproutes look like ":smtp.isp.domain", just this one line
which should route outbound smtp to the smtp (not the pop3!) server of your
isp.  many isp's have pop- and smtp-servers for their customers on the same
machine, but you might have to use different id's in the "poll" line in
.fetchmailrc and in qmail/control/smtproutes, like i have to.

fetchmail is started by "fetchmail -v".  the logentries will contain the
time then, which helps to sort out the results of different tries while
debugging.  after that fetchmail will poll every so often.  the dialog with
the local smtp-deliverer is contained in the logfile.

you don't have to use the local smtp-connection.  you might for instance
directly call procmail from within fetchmail using the "mda" option.  then
the entire incoming-mail-chain/queue of qmail is out of the play.  this
means that you don't have to start "tcpserver 0 smtp qmail-smtpd &" or have
(alternatively) "smtp stream tcp nowait root tcp-env qmail-smtpd"
configured in /etc/inetd.conf, =unless= you intend to relay mail.

for now, lets pretend your machine is the only and main mail handling
machine at home, so i can cut this answer short here...

-- 
[EMAIL PROTECTED]




   From: "Daniel" <[EMAIL PROTECTED]>
   Date: Sun, 7 May 2000 11:49:03 +0700

   Hi, 

   1)
   I have installed Slackware 7.0 with kernel 2.2.13 without procmail
   and fetchmail, then I install qmail-1.03. Could qmail work without those
   two tools (procmail or fetchmail)?

Yes (though, for the sake of full disclosure, I have no personal
experience with either).

   2)
   If I have installed qmail, then I telnet to mail.domain.com 25/110 is
   work well, but I can't get the mail from that server, what's wrong?
   (In this case I have installed/copied procmail and fetchmail from pkgtool)

I can't tell.  Is mail.domain.com your machine, or your ISP's server?
If the latter, are you talking about POPping mail off that server via
fetchmail, or having the server hand it off to yours via SMTP?

   Should I re-configure/re-installed qmail again?

Reinstallation is the knee-jerk response of customer support staff when
faced with the task of supporting flaky software.  In the case of qmail,
reinstallation won't do you any good unless you know that the problem is
caused by something that requires it.

   3)
   Does Microsoft Outlook, Outlook Express, Netscape Messenger,
   Eudora....(mail reader for MS Windows), can work with Maildir?

   Thank you

   Daniel

Turns out it doesn't matter, as long as Windows users POP their mail,
since qmail-pop3d supports maildir.

                                        -- Bob Rogers




Hi !

I erased /var/qmail !!!

What must I do please ?

I already did :

mkdir /var/qmail
make setup check
put a backup of /var/qmail/control/*

What to do next ? Thanks !!!

----- La messagerie itin�rante sans abonnement NetCourrier -----
Web : www.netcourrier.com     Minitel : 3615 et 3623 NETCOURRIER
                  T�l : 08 36 69 00 21




   From: [EMAIL PROTECTED]
   Date: Sun, 7 May 2000 14:34:59 +0200 (MET DST)

   Hi !

   I erased /var/qmail !!!

   What must I do please ?

   I already did :

   mkdir /var/qmail
   make setup check
   put a backup of /var/qmail/control/*

   What to do next ? Thanks !!!

I think that should have pretty much taken care of reinstallation.  You
will need to replace any system-wide aliases in the ~alias/ directory
(e.g. for postmaster, root, abuse, etc.), though.  And, if I were you,
I'd start it up by going through the testing sequence in the qmail
installation instructions.

                                        -- Bob Rogers





I succeed !

Here is the procedure if like me (so you are a dumb!) you erased /var/qmail :

# mkdir /var/qmail
# make setup check
# put a backup of /var/qmail/control/*
# reboot (maybe you can do something else, but this is the easiest).

Thanks2all

----- La messagerie itin�rante sans abonnement NetCourrier -----
Web : www.netcourrier.com     Minitel : 3615 et 3623 NETCOURRIER
                  T�l : 08 36 69 00 21




> I have a question about qmail regarding its mail handling capacity.....
> How many remote emails can qmail send simulataneously, assuming it is run
> on a Dual-CPU PIII 500Mhz with 512Mb RAM and a SCSI hard disk? The
internet
> bandwidth is 10 Mbps.
>
> If I run 2 parallel processes that sends out emails, does it mean twice
the
> amount of emails get sent off simultaneously? if so, does that mean the
> more processes I run in parallel, the more emails get sent off at the same
> time? or will most of the emails get stored in the queue?
>
> What is the general number of emails that a machine with the above
> specifications can send per second/hour/day? How do I fine-tune it to send
> off millions? I only know of changing the "concurrencyremote" figure in
> /var/qmail/control/concurrencyremote. I set it to 100 for testing. What
> should be a good figure assuming that I will do free email hosting on the
> server for hundreds of thousands of users?

There are patches available that you will need to apply to achive maximum
throughput.  You can find them on the qmail web page.  One allows you to run
much larger queues efficiently by increasing the number of directoies the
queue is spread accross.  Another allows increasing the maximum number of
concurrent remotes beyond 250.  The patch allows up to 500 but that limit
seems to be linux related.

Set /var/qmail/control/timeoutremote to a number lower than the default.  I
think the default is about 600 (10 minutes).  I run it at 120 and have been
tempted to lower it to 60.  A few weeks ago yahoo.com had a problem where
they I could connect to there smtp servers and then it would hand on there
side.  This means that remote would sit around for the timeout period.  80
or 90 percent of my remotes were tied up in connections to yahoo.

I have played with removing flush statements from qmail-queue.c.  This
dramatically increases the rate at which qmail-inject puts stuff into the
queue.  This led to very large queues (my sending process backs off when the
queue gets to 100K messages).  Overall throughput was not improved much.
Also if a box does crash then messages will be lost.   My guess is your SCSI
drive makes this unneeded.

I currently run 6 qmail boxes set at 400 remotes.  A PIII 650 with 512MB,
one IDE disk for the OS and another for /var/qmail gives me about 45-60 K
emails per hour.  I had similar results with a Dual Celeron 500's but the
two boxes I had would crash about once a day.  I don't know if there is a
problem with dual celerans or not.  When I pulled the 2nd CPU out of both
boxes they became rock solid.  They now get 30 to 40 K emails per hour.

Note my email mix is not random.  We are sending newsletters / ezines.  They
are typically 8KB in size and the individual boxes are sending and handling
bounces only.  All other incomming email comes to another box setup for that
purpose.





On Sun, May 07, 2000 at 08:41:11AM -0400, Bryan White wrote:
[snip]
> 
> I have played with removing flush statements from qmail-queue.c.  This
> dramatically increases the rate at which qmail-inject puts stuff into the
> queue.  This led to very large queues (my sending process backs off when the
> queue gets to 100K messages).  Overall throughput was not improved much.
> Also if a box does crash then messages will be lost.   My guess is your SCSI
> drive makes this unneeded.

The moment qmail-queue says flush, the OS buffers come into play, including
a context switch. That takes time, even with SCSI.

There is no reliability problem. The first flush() is there to make sure
the 'Received' line gets written anyway, to identify potential
troublemakers (and neutralize them - blatant rip from Killing in the name).

Hmmm... now that I look again, the second flush actually writes the mail
out.. I think that is relevant to actual delivery :)

Greetz, Peter.
-- 
Peter van Dijk - student/sysadmin/ircoper/madly in love/pretending coder 
|  
| 'C makes it easy to shoot yourself in the foot;
|  C++ makes it harder, but when you do it blows your whole leg off.'
|                             Bjarne Stroustrup, Inventor of C++




   From: "Steve Wolfe" <[EMAIL PROTECTED]>
   Date: Sat, 6 May 2000 21:22:30 -0600

   . . .
   > Another question is about the Mail header. What is the header that I
   should
   > add into a generated email so that undelivered/bounced emails go to this
   > specific email address instead? For example, I send an email to
   > [EMAIL PROTECTED], it will by default bounce back to my sending
   > account. How do I make it bounce to another account instead? Should I use
   > Errors-To:, or Undeliverables-To: or any other header?

     I've heard of "Bounce-to:" being used, but I'm not hip on the RFC's like
   others on the list. : )

   steve

I probably don't qualify as "RFC-hip", but I'd like to be, so this query
prompted me to do some digging.  The only thing I could find was a
mention of "Errors-To:" in RFC2076.  Here's what RFC2076 says (bottom of
page 10):

     Address to which notifications       Errors-To:,    Non-standard,
     are to be sent and a request to      Return-        discouraged.
     get delivery notifications.          Receipt-To:
     Internet standards recommend,
     however, the use of RCPT TO and
     Return-Path, not Errors-To, for
     where delivery notifications are
     to be sent.

So the "official" word would seem to be "use the envelope FROM address."
I know that many mailing lists use "Errors-To:", but I'm not sure what
percentage of mailers actually use this header.  (Of course, qmail does
not, nor does the one sendmail installation to which I have access.)
[At the top of p11 are a handful of X.400 delivery-related headers,
which are probably even less widely implemented.]

                                        -- Bob Rogers




>  Another allows increasing the maximum number of
> concurrent remotes beyond 250.  The patch allows up to 500 but that limit
> seems to be linux related.

  I would imagine that to be because Linux by default only allows 1024 file
handles to be open at once.  If each of the qmail-remotes has a message in
the queue open, then having too many can cause "bad things", as we found
when we needed to run a few hundred extra virtual domains on our web server,
and the same thing happened.

  Despite the docs at RedHat.com, saying how easy it is to increase the
file-handle limit on the new kernels, I found that it simply didn't work.
Editing the source and recompiling the kernel (as you had to in older
kernels) did the trick.

   It's not even that hard, that was the first time I had ever fiddled with
the Kernel source.  We went to 4096, which should allow for quite a few
qmail-remotes. : )

steve







hi,

i want to unsubscribe to this service, whom should i
email to?

thanks.


__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/




Hi,
I would like to patch qmail with
http://www.qmail.org/qmailqueue-patch

where can I find out an howto to do it
without breaking all my server ? 

Thanks !
Octave

-- 
Amicalement,
oCtAvE 

Connexion termin�e par expiration du d�lai d'attente




Hello. Is any way to add ETRN support for my qmail ? any patches or ideas
?

Thx, thom







Hello,

since I have setup mail server statistics (traffic in/out) I sometimes
notice spikes in the bandwidth usage.
Now, if I'd like to find out who sent 10 MB through my server and I know the
approximate time (from my stats), how can I do this? The ideal thing would
be to know the sending email address the subject and the size + date.
We currently have POP before SMTP and all that stuff but I still would like
where/how I can collect that information since the qmail-stmpd log doesn't
seem to reveal all that.

Regards!

J.M. Roth
________________________________________________________




Reply via email to