qmail Digest 27 Jan 2001 11:00:01 -0000 Issue 1257

Topics (messages 56058 through 56144):

Re: Subtle qmail bug? (was Re: Handling an MX record of 0.0.0.0 or 127.0.0.1)
        56058 by: Vince Vielhaber
        56064 by: Peter van Dijk
        56080 by: Scott Gifford
        56081 by: Scott Gifford
        56097 by: qmail.artemas.reachin.com

Re: qmail+virtualdomain
        56059 by: Henning Brauer
        56060 by: Massimiliano Santarelli
        56070 by: Markus Stumpf

Re: is there a filter to scan message header and reject accordingly
        56061 by: Alex Kramarov
        56090 by: Brian Longwe

Re: ORBS
        56062 by: Piotr Kasztelowicz

qmail license
        56063 by: Clemens Hermann
        56074 by: Charles Cazabon
        56106 by: Clemens Hermann
        56114 by: Dave Sill

amavirus
        56065 by: Dale Herring
        56099 by: Rainer Link

hint for MDaemon users
        56066 by: Peter van Dijk

smtproutes
        56067 by: Steve Woolley
        56069 by: Peter van Dijk

Re: Qmail and GFS
        56068 by: James R Grinter
        56072 by: Charles Cazabon
        56075 by: Alex Kramarov
        56076 by: Charles Cazabon
        56078 by: Peter van Dijk
        56111 by: Bruce Guenter

Re: bcc sucks
        56071 by: Alex Pennace

Re: The joy of Qmail
        56073 by: Charles Cazabon

Re: qmailadmin
        56077 by: Sumith Ail
        56133 by: Rick Updegrove
        56142 by: Sumith Ail
        56143 by: Robin S. Socha

qmail - how bundle mails?
        56079 by: Thomas König
        56089 by: Charles Cazabon

Re: Install went fine, but won't work
        56082 by: Miles Scruggs
        56084 by: Chris Garrigues
        56091 by: Charles Cazabon
        56095 by: Greg White
        56096 by: Miles Scruggs
        56100 by: Miles Scruggs
        56137 by: Greg White

SMTP Time woes
        56083 by: Corey Jarvis
        56094 by: Moutsos Georgios

Re: rewriting outgoing remote mail
        56085 by: Michel Boucey
        56088 by: Alex Kramarov
        56101 by: Alex Kramarov

qmail-inject not working?
        56086 by: Fish Flowers
        56092 by: Charles Cazabon

Wildcards in badmailfrom?
        56087 by: Andy Bradford
        56093 by: Charles Cazabon
        56098 by: Andy Bradford

mail routing?
        56102 by: Omer Faruk Sen

failure notice (qmail and ezmlm)
        56103 by: Ben
        56109 by: Markus Stumpf
        56110 by: Chris Johnson

Re: Things I have noted
        56104 by: qmail.artemas.reachin.com
        56108 by: Markus Stumpf

Problem with sending: access denied
        56105 by: Emily Witcher

Failure notice & Headers
        56107 by: NDSoftware

assign file lost
        56112 by: maxen
        56113 by: Mark Delany
        56139 by: maxen

Re: can't connect to smtp
        56115 by: Keary Suska

tcpserver unable to figure out port number for smtp
        56116 by: Fish Flowers
        56117 by: Kris Kelley
        56118 by: Fish Flowers
        56119 by: Kris Kelley
        56124 by: Virginia Chism
        56126 by: Laurence Brockman
        56127 by: Robin S. Socha
        56135 by: Henning Brauer

local delivery problem
        56120 by: Jorge Bras
        56121 by: Kris Kelley
        56122 by: Charles Cazabon
        56123 by: Kris Kelley

stupid question of the year award!
        56125 by: Virginia Chism
        56128 by: qmail.artemas.reachin.com
        56129 by: Jerry Lynde

qmail config
        56130 by: NDSoftware
        56131 by: NDSoftware
        56140 by: qmail.artemas.reachin.com

Re: Using a RAMDISK for /var/qmail/queue thoughts ?
        56132 by: David L. Nicol
        56134 by: Mark Delany
        56136 by: Mark Delany

conf-spawn
        56138 by: Paul Jarc

concurrency patches
        56141 by: Sumith Ail

warning: unknown record type in todo/67391
        56144 by: octave klaba

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]


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


On Fri, 26 Jan 2001, Pavel Kankovsky wrote:

> On Thu, 25 Jan 2001, Dan Peterson wrote:
>
> > http://www.openbsd.org/cgi-bin/cvsweb/src/sys/netinet/tcp_usrreq.c
> > Revision 1.20; dated Feb 28 1998.
>
> Hmm...hmm...right. Ok, I missed it. It did not occur to me 0.0.0.0 is a
> broadcast address in Canada. :)
>
> Anyway, qmail 1.00 was released on February 20, 1997. Was there any
> handling for 0.0.0.0 in qmail 1.00?

Now that's lame.  That statement would only have relevance if 1.00 was a
current release and it's not even close.  Drop it already.

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
==========================================================================







On Thu, Jan 25, 2001 at 10:18:11PM -0000, D. J. Bernstein wrote:
> Patrick Bihan-Faou writes:
> > If you don't count that as a bug in qmail, then I don't know what is a
> > bug...
> 
> In fact, it's not a bug; it's a portability problem. If you were using
> OpenBSD, you'd see outgoing connections to 0.0.0.0 rejected with EINVAL.

Even BSD/OS, under which qmail including 1.03 was developed, 0.0.0.0
is the localhost. It is so on every other OS. You are describing
something that OpenBSD does different from the rest of the world.

Greetz, Peter.




Markus Stumpf <[EMAIL PROTECTED]> writes:

> On Thu, Jan 25, 2001 at 06:32:47PM -0500, Scott Gifford wrote:
> > Markus Stumpf <[EMAIL PROTECTED]> writes:
> > > If AOL or hotmail would decide to change their MX records to your mailserver
> > > this will for sure also cause you problems.
> > 
> > No it won't.  qmail will give an error that the MX records points back
> > to itself, and bounce the message.
> 
> I don't think that any mailserver out there will be able to handle
> the load if AOL or Hotmail will change the MX record to point at that
> system (without prior notice).
> This would be a DOS just like the 0.0.0.0 is.

  Oh, I see.  Yes, that's  correct.  There are all kinds of DOS
attacks against any public Internet service.  The ones to worry about
are the ones that let a single user with a slow Internet connection
deny service to a large number of people.  The ones that require being
singled out for destruction by large ISPs, there's nothing that can
really be done about.

-----ScottG.




"D. J. Bernstein" <[EMAIL PROTECTED]> writes:

> Patrick Bihan-Faou writes:
> > If you don't count that as a bug in qmail, then I don't know what is a
> > bug...
> 
> In fact, it's not a bug; it's a portability problem. If you were using
> OpenBSD, you'd see outgoing connections to 0.0.0.0 rejected with EINVAL.

  Although the proposed fix, adding 0.0.0.0 to ipme, doesn't pose any
kind of compatibility problem.

-----ScottG.





On Thu, 25 Jan 2001, Markus Stumpf wrote:

> If AOL or hotmail would decide to change their MX records to your mailserver
> this will for sure also cause you problems.

Actually, Qmail works fine as an incoming MX for Hotmail.com.
mail.hotmail.com, one of Hotmail's incoming mx machines, runs Qmail. [1]

While not quite on the same scale as hotmail/AOL, egroups.com is not
exactly a low-traffice mail server.  egroups has a single incoming mail
exchanger, which runs Qmail.

This is one of the reasons I like Qmail--it can scale up to just about any
level of mail traffic out there.

- Sam

[1] Qmail's fingerprint is that it accepts the
    MAIL FROM: <[EMAIL PROTECTED]> in the SMTP session being shortened
    to MAIL <[EMAIL PROTECTED]>





On Thu, Jan 25, 2001 at 06:05:48PM +0100, Massimiliano Santarelli wrote:
> modifying the  locals/rcpthost files ,
                        ^^^^^^^^
> and in virtualdomain file (newvirtualdomain:newuser).
         ^^^^^^^^^^^^^
> How can i solve this problem and split different users with different
> virtualdomain??

Maybe in just using the right filenames... you missed the last s each.
virtualdomains and rctphosts are right.

-- 
Henning Brauer     | BS Web Services
Hostmaster BSWS    | Roedingsmarkt 14
[EMAIL PROTECTED] | 20459 Hamburg
http://www.bsws.de | Germany




On Thu, 25 Jan 2001, you wrote:
> Your virtualdomain is not called 'virtualdomain' so stop lying about
> that.
> 
> Show us the contents of your configfiles, especially locals and
> virtualdomains, please.
> 
> Greetz, Peter.

Well , now i put  "avatar.yi.org:alias-avatar" into virtualdomains file, 
and made a: touch ~alias/.qmail-avatar-pluto
Into my locals file i've: cikosub.yi.org
but if i send a mail to [EMAIL PROTECTED] and [EMAIL PROTECTED]
it seems there's no difference between the two domains for the same user.

thanks 
Massimiliano




On Fri, Jan 26, 2001 at 12:05:18PM +0100, Massimiliano Santarelli wrote:
> Well , now i put  "avatar.yi.org:alias-avatar" into virtualdomains file, 
> and made a: touch ~alias/.qmail-avatar-pluto
> Into my locals file i've: cikosub.yi.org
> but if i send a mail to [EMAIL PROTECTED] and [EMAIL PROTECTED]
> it seems there's no difference between the two domains for the same user.

Did you   kill -HUP pidof(qmail-send)

        \Maex

-- 
SpaceNet AG            | Joseph-Dollinger-Bogen 14 | Fon: +49 (89) 32356-0
Research & Development |       D-80807 Muenchen    | Fax: +49 (89) 32356-299
Stress is when you wake up screaming and you realize you haven't fallen
asleep yet.




Brian Longwe <[EMAIL PROTECTED]> wrote
 
>>Is there a filter that I can use to scan incoming & outgoing message headers
>>and reject messages based on pre-defined criteria (text string)?
>You've assumed that I haven't already been there...I have...I've already looked at qmail-scanner and I'm >afraid that the overhead will be too much on my system. I don't want a full-fledged virus-guard, is there >something more lightweight that can do regex filtering on the subject line?
 
 
You don't have to use the scanning features of qmail-scanner; you can disable the scanner features just by commenting out some calls to the scanning functions. hell, you can write you own 20-30 lines of perl script based on qmail-scanner, all you have to do is to read the message from pipe 1 and the envelope from pipe 2, rewrite them and reinject into qmail-queue, all of the code is there ...

__________________________________________________
IncrediMail - Email has finally evolved - Click Here





If I knew how to write perl I probably wouldn't be asking....thanks for the tip anyway
-----Original Message-----
From: Alex Kramarov [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 26, 2001 2:22 PM
To: Qmail list
Subject: Fw: RE: is there a filter to scan message header and reject accordingly

Brian Longwe <[EMAIL PROTECTED]> wrote
 
>>Is there a filter that I can use to scan incoming & outgoing message headers
>>and reject messages based on pre-defined criteria (text string)?
>You've assumed that I haven't already been there...I have...I've already looked at qmail-scanner and I'm >afraid that the overhead will be too much on my system. I don't want a full-fledged virus-guard, is there >something more lightweight that can do regex filtering on the subject line?
 
 
You don't have to use the scanning features of qmail-scanner; you can disable the scanner features just by commenting out some calls to the scanning functions. hell, you can write you own 20-30 lines of perl script based on qmail-scanner, all you have to do is to read the message from pipe 1 and the envelope from pipe 2, rewrite them and reinject into qmail-queue, all of the code is there ...

__________________________________________________
IncrediMail - Email has finally evolved - Click Here





On Thu, 25 Jan 2001, Marcilio Jorgensen Cassella wrote:

>       How to fix it, please ?

does support your server open relay throu smtp?

Piotr
---
Piotr Kasztelowicz                 <[EMAIL PROTECTED]>
[http://www.am.torun.pl/~pekasz]





Hi,

this might seem like a stupid question but I really *did* bother quite a
while with the subject before asking here. Someone else asked me what
exactly the qmail license ist about. So I was looking for "the license".
I searched LWQ and google but everything I found is a statement about
limitaions for qmail-distributors and DJB's opinion about licenses.
Well, This does no have something to do with the qmail license, does it?
Is there a statement anywhere on the aouthors website that grants the
right to use qmail for any purpose as long as you just do not
redistribute it? Is there a statement that qmail can be used free of
charge? I did not fint a hint in "Running qmail" either (but there I
might have overseen it).

thanks for any explanation

/ch




Clemens Hermann <[EMAIL PROTECTED]> wrote:
> 
> this might seem like a stupid question but I really *did* bother quite a
> while with the subject before asking here.

Except that this has been discussed to death many times in the past on the
list.  Look through the qmail list archives; you'll find everything you
need there.

Charles
-- 
-----------------------------------------------------------------------
Charles Cazabon                            <[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
-----------------------------------------------------------------------




Am 26.01.2001 um 08:39:04 schrieb Charles Cazabon:

Hi Charles,

> > this might seem like a stupid question but I really *did* bother quite a
> > while with the subject before asking here.
> 
> Except that this has been discussed to death many times in the past on the
> list.  

perhaps it might be an idea to lose some words about this in the
qmail-FAQ or on the website to avoid people (as mine ;-) asking the same
question over and over again.

> Look through the qmail list archives; you'll find everything you
> need there.

I did exactly this and I looked at the archive again for a long time
back. My Problem is this: DJB says as the first words in his statement 
about Software user's rights:

In the United States, once you own a copy of a program......
2 Problems:
a) I am not within the United States and the *much *bigger problem is:
b) When Do I own a copy of a program? If I burn a CD of M$ Windows I own
the CD but this still does not grant the right to me to use the program
on it. The part I need is: Where is said, that if I download qmail from
DJB's website, I *DO OWN* the copy of qmail? 
There are lots of examples where by just having the source of a pice of 
software you do not own this software by any means. You can even receive
the software legally but you are just not allowed to use them e.g. for
commercial purpose.
So: Where is said that I own qmail as soon as I download it? This would
be necessary to apply DJBs statement to any existing situation.

thanks in advance

/ch




Clemens Hermann <[EMAIL PROTECTED]> wrote:

>My Problem is this: DJB says as the first words in his statement 
>about Software user's rights:
>
>In the United States, once you own a copy of a program......
>2 Problems:
>a) I am not within the United States

Good question... I suppose your rights would be determined by your
countries copyright law.

>and the *much *bigger problem is:
>b) When Do I own a copy of a program?

IANAL, but you own a copy of a program when you possess a legally
obtained copy. You don't have to hold the copyright to the original to 
own a copy.

>There are lots of examples where by just having the source of a pice of 
>software you do not own this software by any means.

No, but you own the copy.

>You can even receive
>the software legally but you are just not allowed to use them e.g. for
>commercial purpose.

Only when the copyright holder distributes the software under a
license that restricts its use. qmail is not distributed with a
license.

>So: Where is said that I own qmail as soon as I download it?

You don't "own qmail", you own a copy of it.

-Dave




Got a basic out of the box qmail install.  Invoked via rc.local using
tcpserver.  I compiled the amavis and installed.  did my links as directed
qmail-local > /usr/sbin/scanmails yadda yadda yadda
Before I put the links in place qmail works great.  
Using Maildir 
As soon as I put the links in place I get this crap.


Jan 26 06:36:24 mail qmail: 980512584.520058 info msg 489162: bytes 727
from <[EMAIL PROTECTED]> qp 6559 uid 101
Jan 26 06:36:24 mail qmail: 980512584.567272 starting delivery 3: msg
489162 to local [EMAIL PROTECTED]
Jan 26 06:36:24 mail qmail: 980512584.567352 status: local 1/10 remote 0/20
Jan 26 06:36:24 mail qmail-local[6569]: execution started
Jan 26 06:36:25 mail modprobe: Note: /etc/conf.modules is more recent than
/lib/modules/2.2.15-4mdksmp/modules.dep
Jan 26 06:36:25 mail modprobe: modprobe: Can't locate module binfmt-0064
Jan 26 06:36:25 mail  modprobe: Note: /etc/conf.modules is more recent than
/lib/modules/2.2.15-4mdksmp/modules.dep
Jan 26 06:36:25 mail modprobe: modprobe: Can't locate module binfmt-0064
Jan 26 06:36:25 mail qmail-local[6635]: terminating
Jan 26 06:36:25 mail qmail: 980512585.364156 delivery 3: success:
fgrep:_conflicting_matchers_specified/procmail:_Unrecognised_options:_"-"/Us
age:_procmail_[-vptoY]_[-f_fromwhom]_[parameter=value_|_rcfile]_.../___Or:_p
rocmail_[-toY]_[-f_fromwhom]_[-a_argument]_-d_recipient_.../___Or:_procmail_
[-ptY]_[-f_fromwhom]_-m_[parameter=value]_..._rcfile_[arg]_.../Processing_co
ntinued/procmail:_Couldn't_read_"/home/dale/dale"/bin/qmail-local:_/var/log/
qmail-local/logfile:_Permission_denied/

Okay I can handle the modules 2.2.15-4mdksmp  and the etc/conf.modules.....
not a problem there
what is binfmt-0064 and what program installs it?
and why am I getting the rest of this message.
Mail dont get delivered btw.. just kind of sits in limbo someplace.




Dale Herring wrote:

> 
> Jan 26 06:36:24 mail qmail: 980512584.520058 info msg 489162: bytes 727
> from <[EMAIL PROTECTED]> qp 6559 uid 101
> Jan 26 06:36:24 mail qmail: 980512584.567272 starting delivery 3: msg
> 489162 to local [EMAIL PROTECTED]
> Jan 26 06:36:24 mail qmail: 980512584.567352 status: local 1/10 remote 0/20
> Jan 26 06:36:24 mail qmail-local[6569]: execution started
That's a message from scanmails, so I assume the following stuff is
cause by your anti-virus scanner which is called from scanmails. Which
anti virus product do you use?

> Jan 26 06:36:25 mail modprobe: Note: /etc/conf.modules is more recent than
> /lib/modules/2.2.15-4mdksmp/modules.dep
> Jan 26 06:36:25 mail modprobe: modprobe: Can't locate module binfmt-0064
> Jan 26 06:36:25 mail  modprobe: Note: /etc/conf.modules is more recent than
> /lib/modules/2.2.15-4mdksmp/modules.dep
> Jan 26 06:36:25 mail modprobe: modprobe: Can't locate module binfmt-0064
> Jan 26 06:36:25 mail qmail-local[6635]: terminating
Here terminats scanmails

> Jan 26 06:36:25 mail qmail: 980512585.364156 delivery 3: success:
> fgrep:_conflicting_matchers_specified/procmail:_Unrecognised_options:_"-"/Us
> age:_procmail_[-vptoY]_[-f_fromwhom]_[parameter=value_|_rcfile]_.../___Or:_p
> rocmail_[-toY]_[-f_fromwhom]_[-a_argument]_-d_recipient_.../___Or:_procmail_
> [-ptY]_[-f_fromwhom]_-m_[parameter=value]_..._rcfile_[arg]_.../Processing_co
> ntinued/procmail:_Couldn't_read_"/home/dale/dale"/bin/qmail-local:_/var/log/
> qmail-local/logfile:_Permission_denied/

Why is procmail called here? Which ./configure did you use for AMaViS
0.2.1 ?

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/




MDaemon has an option very similar to fetchmail's 'qvirtual' option
(for stripping prefixes off Delivered-To lines). It's in the
'DomainPOP Mail Collection' config box, tab 'Processing'. Bottom box
named 'Address Processing'. Tick first box ('Strip Text From Left')
and enter text to be stripped in the textbox.

Some of your customers may be interested in this. I now hacked my
forward-wrapper to fix up DTLINE without the prefix, because some of
our customers have severely broken mailers.

Greetz, Peter.




I am planning to use smtproutes to route email from a qmail server
to an internal Microsoft Exchange 5.5 server. 
If the Exchange server goes down for a period of time, will the
qmail server cache (for lack of a better word) the routed emails
locally until the Exchange server comes back up? or will the
qmail server bounce the email back (after a given amount of time)?

Steve Woolley
[EMAIL PROTECTED]





On Fri, Jan 26, 2001 at 08:31:49AM -0500, Steve Woolley wrote:
> I am planning to use smtproutes to route email from a qmail server
> to an internal Microsoft Exchange 5.5 server. 
> If the Exchange server goes down for a period of time, will the
> qmail server cache (for lack of a better word) the routed emails
> locally until the Exchange server comes back up? or will the
> qmail server bounce the email back (after a given amount of time)?

It will keep retrying for upto a week (with growing intervals). After
that week, it will bounce the mail.

Read up on queuelifetime in man qmail-send to see how to increase that
period even more.

Greetz, Peter.




[EMAIL PROTECTED] writes:
> I'd like to get a bit of advice on this one. I know that NFS
> is a big no-no when using qmail due to the way it handles the
> queue. I also know that qmail may have trouble with certain
> journaling filesystems (for example, reiserfs) because qmail 
> assumes that link() and unlink() are syncronous operations
> (according to the reiserfs FAQ).

I knew I'd seen the requirements explicitly mentioned somewhere. Then
I had occasion to build qmail from scratch the other day and found it:

  % cat conf-qmail
  /var/qmail

  This is the qmail home directory. It must be a local directory, not
  shared among machines. This is where qmail queues all mail messages. 

  The queue (except for bounce message contents) is crashproof, if the
  filesystem guarantees that single-byte writes are atomic and that
  directory operations are synchronous. These guarantees are provided by
  fixed-block filesystems such as UFS and by journaling filesystems. Under
  Linux, make sure that all mail-handling filesystems are mounted with
  synchronous metadata.

ie. semantics that local Unix filesystems are supposed to conform to
(but which Reiserfs apparently doesn't).

Does GFS? That's the question.. 

James.




James R Grinter <[EMAIL PROTECTED]> wrote:
> 
> ie. semantics that local Unix filesystems are supposed to conform to
> (but which Reiserfs apparently doesn't).

I believe there's a small patch to qmail somewhere on the ReiserFS site
which makes qmail as safe on that filesystem as on ext2 with synchronous
metadata.

A page with various tips:
http://www.jedi.claranet.fr/qmail-tuning.html

The actual qmail patch for ReiserFS:
http://www.jedi.claranet.fr/qmail-link-sync.patch

Russell, I don't think this is on qmail.org.  Care to add it?

Charles
-- 
-----------------------------------------------------------------------
Charles Cazabon                            <[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
-----------------------------------------------------------------------




 
 
-------Original Message-------
 
Charles Cazabon <[EMAIL PROTECTED]> wrote
 

>I believe there's a small patch to qmail somewhere on the ReiserFS site
>which makes qmail as safe on that filesystem as on ext2 with synchronous
>metadata.

The patch info says :

Qmail was designed for BSD-like filesystems. And it is unreliable under Linux because it assumes that link() is a synchronous operation. This is not the case with EXT2 and ReiserFS. So you have to apply this patch to avoid losing messages due system crashes

 

Is this really true, about EXT2 being unreliable as well ?



 

__________________________________________________
IncrediMail - Email has finally evolved - Click Here





Alex Kramarov <[EMAIL PROTECTED]> wrote:
> 
> >I believe there's a small patch to qmail somewhere on the ReiserFS site
> >which makes qmail as safe on that filesystem as on ext2 with synchronous
> >metadata.

> The patch info says : 
> Qmail was designed for BSD-like filesystems. And it is unreliable under Linux
> because it assumes that link() is a synchronous operation. This is not the
> case with EXT2 and ReiserFS. So you have to apply this patch to avoid losing
> messages due system crashes
 
> Is this really true, about EXT2 being unreliable as well ?

Not necessarily.  ext2 doesn't sync the metadata of a file when the file is
synced; instead, it is synced when the directory it is in is synced.

So for safety, you either have to mount the filesystem with synchonous
metadata (as I said above), or have your program sync the directory of a file
after syncing the file.  Bruce Guenter's SRPM of qmail includes a patch 
which does the directory sync, so you don't have to mount the filesystem
with synchronous metadata for safety.

Charles
-- 
-----------------------------------------------------------------------
Charles Cazabon                            <[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
-----------------------------------------------------------------------




On Fri, Jan 26, 2001 at 04:44:55PM +0200, Alex Kramarov wrote:
[snip]
> Is this really true, about EXT2 being unreliable as well ?

Yes.

Greetz, Peter.




On Fri, Jan 26, 2001 at 08:52:01AM -0600, Charles Cazabon wrote:
> So for safety, you either have to mount the filesystem with synchonous
> metadata (as I said above), or have your program sync the directory of a file
> after syncing the file.  Bruce Guenter's SRPM of qmail includes a patch 
> which does the directory sync, so you don't have to mount the filesystem
> with synchronous metadata for safety.

That's actually not a patch.  It's a small object file that replaces the
libc open, link, rename, and unlink routines.  The replacement routines
call the syscall as usual, but after making the call do a fsync on the
directory leading up to the given filename.
-- 
Bruce Guenter <[EMAIL PROTECTED]>                       http://em.ca/~bruceg/

PGP signature





On Thu, Jan 25, 2001 at 06:27:12AM -0600, Matthew Patterson wrote:
> On Thu, 25 Jan 2001, Alex Pennace wrote:
> >Sure it is. The recipient address for that local delivery is stored in
> >the environment variable RECIPIENT. Additionally if instructions for
> >the delivery are in a .qmail-...-default file the part of the address
> >covered by the -default wildcard is in the environment variable
> >DEFAULT. See man qmail-command.
> 
> Sounds like just what I needed. The man page doesn't specify it the enviornment
> variables are set locally to the program or are globally set, I assume local to
> the program, but I want to make absolutely sure

They are set up in the environment prior to the execution of any
program lines.




[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> 
> The other big gotcha is that qmail binaries have the uids of the qmail users
> hard coded in them.

Bruce Guenter has a very useful patch to qmail which makes it take its various
UIDs and GIDs from the ownership of a set of files in /var/qmail/owners -- so
if you want to reassign UIDs by searching through the filesystem and
piping the results to chmod scripts, qmail will continue to work just
fine, providing of course that you stop qmail before doing this, and re-start
it after.

The patch is included in his SRPM.

Charles
-- 
-----------------------------------------------------------------------
Charles Cazabon                            <[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
-----------------------------------------------------------------------




Sure..
 
Read the INSTALL file that came with Qmailadmin
 
-Sumith
----- Original Message -----
From: info
To: qmail
Sent: Friday, January 26, 2001 1:42 AM
Subject: qmailadmin

Hello!!!
is there a way to set max number of account for each different domain name?
 
Thanks
 




> Hello everybody!!!
>
> I am using qmail1.03 on a rh7.0.
> I would like to use qmailadmin 0.39. <--

check the site for updates regulary

> but I can't log in, I need 'postmaster' but I don't know who is he.

He is the default which you get when you do a ./home/vpopmail/bin/vadddomain
somedomain.com

so .. the password you gave it there is the postmaster's password.  Does
this look familiar?  It is in the INSTALL document for the latest (at the
time I wrote this) version.

6. Add a virtual domain

        For this example, we will add a domain "test.com"

        # cd /home-dir-of-vpopmail/bin

        # ./vadddomain test.com
                or
        # ./vadddomain test.com password-for-postmaster <-- YO CHECK ME OUT

        vadddomain will modify the following qmail files
                (default locations used)
        /var/qmail/control/locals
        /var/qmail/control/rcpthosts
        /var/qmail/control/morercpthosts (if rcpthosts > than 50 lines)
        /var/qmail/control/virtualdomains
        /var/qmail/users/assign
        /var/qmail/users/cdb

        It will also create a domains directory
                ~vpopmail/domains/test.com
                ~vpopmail/domains/test.com/postmaster/Maildir ...
                ~vpopmail/domains/test.com/vpasswd
                ~vpopmail/domains/test.com/vpasswd.cdb

        If you do not specify a password on the command line, it
        will prompt for a password for the postmaster.

        Then it will send a kill -HUP signal to qmail-send telling it
        to re-read the control files.

        Note: setting up DNS MX records for the virtual domain is not
        covered in this INSTALL file.

> however I use omail and it run very wel.

I use qmailadmin and I think the name fits, and it runs very well now that
all of those annoying images are gone : )   I do wish the mailing list
manager would get fixed sometime soon however.  I am going to have to take a
programming class one of these days.

> Thanks fo your support.
>





Which version of qmailadmin are you using? I am planning to install 0.39 as
evrybody now is complaining about bugs in 0.42

Regards
Sumith
----- Original Message -----
From: Rick Updegrove <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: fred <[EMAIL PROTECTED]>
Sent: Saturday, January 27, 2001 5:24 AM
Subject: Re: Qmailadmin


> > Hello everybody!!!
> >
> > I am using qmail1.03 on a rh7.0.
> > I would like to use qmailadmin 0.39. <--
>
> check the site for updates regulary
>
> > but I can't log in, I need 'postmaster' but I don't know who is he.
>
> He is the default which you get when you do a
./home/vpopmail/bin/vadddomain
> somedomain.com
>
> so .. the password you gave it there is the postmaster's password.  Does
> this look familiar?  It is in the INSTALL document for the latest (at the
> time I wrote this) version.
>
> 6. Add a virtual domain
>
>         For this example, we will add a domain "test.com"
>
>         # cd /home-dir-of-vpopmail/bin
>
>         # ./vadddomain test.com
>                 or
>         # ./vadddomain test.com password-for-postmaster <-- YO CHECK ME
OUT
>
>         vadddomain will modify the following qmail files
>                 (default locations used)
>         /var/qmail/control/locals
>         /var/qmail/control/rcpthosts
>         /var/qmail/control/morercpthosts (if rcpthosts > than 50 lines)
>         /var/qmail/control/virtualdomains
>         /var/qmail/users/assign
>         /var/qmail/users/cdb
>
>         It will also create a domains directory
>                 ~vpopmail/domains/test.com
>                 ~vpopmail/domains/test.com/postmaster/Maildir ...
>                 ~vpopmail/domains/test.com/vpasswd
>                 ~vpopmail/domains/test.com/vpasswd.cdb
>
>         If you do not specify a password on the command line, it
>         will prompt for a password for the postmaster.
>
>         Then it will send a kill -HUP signal to qmail-send telling it
>         to re-read the control files.
>
>         Note: setting up DNS MX records for the virtual domain is not
>         covered in this INSTALL file.
>
> > however I use omail and it run very wel.
>
> I use qmailadmin and I think the name fits, and it runs very well now that
> all of those annoying images are gone : )   I do wish the mailing list
> manager would get fixed sometime soon however.  I am going to have to take
a
> programming class one of these days.
>
> > Thanks fo your support.
> >
>
>





* Sumith Ail <[EMAIL PROTECTED]> writes:

> Which version of qmailadmin are you using? I am planning to install
> 0.39 as evrybody now is complaining about bugs in 0.42

0.42 works like a charm. Besides, qmailadmin has its own mailing list.
-- 
Robin S. Socha <http://socha.net/>




Hi,

how does i reach, so that qmail will send mail to different users
in the same domain as bundle?
e.g. [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
with one connection, so that only one mail must be send over the net
with the information to the smtp server, that this mail is for more
user.

the background is:
I've a mailing list server, and we pay for traffic.
On the server ist installed qmail, vpopmail and ezmlm.

any ideas?

tom




Thomas König <[EMAIL PROTECTED]> wrote:
> 
> how does i reach, so that qmail will send mail to different users
> in the same domain as bundle?
> e.g. [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
> with one connection, so that only one mail must be send over the net
> with the information to the smtp server, that this mail is for more
> user.

You don't.  qmail was designed not to do this.  You could do major surgery
on the source, or use another MTA.

Charles
-- 
-----------------------------------------------------------------------
Charles Cazabon                            <[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
-----------------------------------------------------------------------






> >  Sorry if this is a repeat to the list but I just subscribed
>
> > The install went just find but I have a problem
>
> > 1.)  I can't seem to to set the enviroment variable to allow me to have
> > certain hosts relay.  Below is the contents of my tcp.smtp
> >
> > 127.0.0.1:allow,RELAYCLIENT=""
> > 192.168.1.:allow,RELAYCLIENT=""
>
> This allows anything in the 192.168.1.* subnet to relay through
> your host.
>
> > 192.:allow,RELAYCLIENT=""

Isn't 192.* a non routable Class A that will not route on the net?  ( I use
it internally)


>
> This allows anything in the 192.* net to relay through your host.
> I'm sure
> you do not mean that.
>
> > 65.193.90.:allow,RELAYCLIENT=""

I own most of this class C.  How can I specify a range  ie
65.193.90.129-200    ?


>
> And I have a feeling yo do not mean this, either (all hosts in
> 65.193.90.*?
> Do you trust them all to relay through you?)
>
> > :allow
> >
> > Then I ran the
>
> > tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp
> >
> > And here is my tcpserver startup line which is in
> > /var/qmail/supervise/qmail-smtp/run
> >
> > exec /usr/local/bin/softlimit -m 2000000
> /usr/local/bin/tcpserver -v -p -x
> > /etc/tcp.smtp.cdb -u 1003 -g 102 0 smtp rblsmtpd
> > /var/qmail/bin/qmail-smtpd 2>&1
>
> You're only using rbl.maps.vix.com for rblsmtpd (since you don't
> supply any
> options).

Where can I find out more about these options?

>
> You do not need to restart tcpserver to activate changes to
> /etc/tcp.smtp.cdb.
K thanks


> However, you're not telling us what the problem is; from which IP you're
> connecting to the smtpd, or what the error message was, or what the logs
> say.

When I try to relay mail to a remote host I get the error message
"sorry that domain isn't in my list of allowed hosts in the rcpthosts file"
This is when I try to relay from 192.168.1.147


> Can you connect to port 25 on that machine? Can you send mail to a user
> local to that machine (via smtp)?

I have have the host in rcpthosts it will even relay it remotely


Miles





> From:  "Miles Scruggs" <[EMAIL PROTECTED]>
> Date:  Fri, 26 Jan 2001 10:07:46 -0600
>
> 
> 
> > >  Sorry if this is a repeat to the list but I just subscribed
> >
> > > The install went just find but I have a problem
> >
> > > 1.)  I can't seem to to set the enviroment variable to allow me to have
> > > certain hosts relay.  Below is the contents of my tcp.smtp
> > >
> > > 127.0.0.1:allow,RELAYCLIENT=""
> > > 192.168.1.:allow,RELAYCLIENT=""
> >
> > This allows anything in the 192.168.1.* subnet to relay through
> > your host.
> >
> > > 192.:allow,RELAYCLIENT=""
> 
> Isn't 192.* a non routable Class A that will not route on the net?  ( I use
> it internally)

Not true at all.  192 is where class C addresses start.  Once upon a time, 
they were all in 192.

Chris

-- 
Chris Garrigues                 http://www.DeepEddy.Com/~cwg/
virCIO                          http://www.virCIO.Com
4314 Avenue C                   
Austin, TX  78751-3709          +1 512 374 0500

  My email address is an experiment in SPAM elimination.  For an
  explanation of what we're doing, see http://www.DeepEddy.Com/tms.html 

    Nobody ever got fired for buying Microsoft,
      but they could get fired for relying on Microsoft.


PGP signature





Miles Scruggs <[EMAIL PROTECTED]> wrote:
> >
> > > 65.193.90.:allow,RELAYCLIENT=""
> 
> I own most of this class C.  How can I specify a range  ie
> 65.193.90.129-200    ?

If your subnet doesn't split on an octet boundary, list all the IPs
individually.  It all gets compiled into an efficient CDB anyway.
You only have to do this once; a four-line shellscript would make it
quick work.

Charles
-- 
-----------------------------------------------------------------------
Charles Cazabon                            <[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
-----------------------------------------------------------------------




Miles Scruggs wrote:
SNIP
> >
> > > 192.:allow,RELAYCLIENT=""
> 
> Isn't 192.* a non routable Class A that will not route on the net?  ( I use
> it internally)
> 
> >
> > This allows anything in the 192.* net to relay through your host.
> > I'm sure
> > you do not mean that.
> >
SNIP

<pedantic>
Please read up on IPv4 classes. Classes are not determined by the size
of 
the network address. 192.x.x.x is a class B address. 63.x.x.x (that you
mentioned in a part I snipped) is a class A address. They may hand these
out in /24 sizes, but the class remains the same. Also, non-routable is
a misnomer. Nothing prevents misconfigured routers from routing the
true private networks (10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16)
to anywhere in the world, and many routers do.
</pedantic>

Now that that's over, no, 192.0.0.0/8 is _not_ a private network. To
prove this to yourself, traceroute f.root-servers.net, or just do 
a 'dig' (or dnsqr ) on it:

;; ADDITIONAL SECTION:
a.root-servers.net.     5w6d16h IN A    198.41.0.4
f.root-servers.net.     5w6d16h IN A    192.5.5.241
j.root-servers.net.     5w6d16h IN A    198.41.0.10
k.root-servers.net.     5w6d16h IN A    193.0.14.129


HTH,

GW




>
> Miles Scruggs <[EMAIL PROTECTED]> wrote:
> > >
> > > > 65.193.90.:allow,RELAYCLIENT=""
> >
> > I own most of this class C.  How can I specify a range  ie
> > 65.193.90.129-200    ?
>
> If your subnet doesn't split on an octet boundary, list all the IPs
> individually.  It all gets compiled into an efficient CDB anyway.
> You only have to do this once; a four-line shellscript would make it
> quick work.

Ok all understood, but that doesn't solve the main problem.  I'm trying to
relay from one of the host that are under that relay umbrella and it won't
let me.  For some reason it looks like the variable isn't being set.

btw what is a good class address scheme that I can use for internal use and
won't route on the internet.  I think 10.* is one are there any others.

Miles





Ok I got it working.  I read another Howto and it said to load the tcp.smtp
with

/usr/local/sbin/qmail cdb

now the other one that I was using was

tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp

Which for some reason wasn't working.  In any event now everything works
just like I want it to.  I just have to learn about IPV4 some more.  Anyone
have some good references since I'm not understanding a whole lot about it.

Miles





Greg White wrote:
SNIP
> 
> <pedantic>
> Please read up on IPv4 classes. Classes are not determined by the size
> of
> the network address. 192.x.x.x is a class B address.
SNIP

Apologies to the OP and to the list for being both pedantic and
incorrect.
s/Class B/Class C/

Note to self -- never post before morning coffee.

GW




To anyone,
Return-Path: <[EMAIL PROTECTED]>
Received: from lance.sapcanada.org ([EMAIL PROTECTED]
[205.240.222.67])
        by mail.travel-net.com (8.9.3/8.9.3) with SMTP id LAA02916
        for <[EMAIL PROTECTED]>; Fri, 26 Jan 2001 11:09:59 -0500
Received: (qmail 5414 invoked by uid 1031); 26 Jan 2001 16:15:52 -0000
### This message was sent at 11:32am , any ideas
Date: 26 Jan 2001 16:15:52 -0000
###
Message-ID: <[EMAIL PROTECTED]>
From: "Corey Jarvis" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: test

I have checked all the time configurations and they are all set.
Any ideas





> Received: from lance.sapcanada.org ([EMAIL PROTECTED]
> [205.240.222.67])
>         by mail.travel-net.com (8.9.3/8.9.3) with SMTP id LAA02916
>         for <[EMAIL PROTECTED]>; Fri, 26 Jan 2001 11:09:59 -0500

-0500 the timezone.


> Received: (qmail 5414 invoked by uid 1031); 26 Jan 2001 16:15:52 -0000

The time was normalized to -0000 timezone.
which means plus five hours.

J.







and does it work ?

is it just something like s/\@foo.org/\@foo.fr/ at the right place to do
or is it very much more complicated ?

Cordialement,

Michel Boucey   Administrateur Système
> Société Norm@net +33 2 31 27 13 45 <


On Fri, 26 Jan 2001, Alex Kramarov wrote:

> Michel Boucey <[EMAIL PROTECTED]> wrote :
> 
> >I have installed an intranet qmail server on, say, foo.org ; and I want,
> >for all the mail which is send to an Internet domain, for all the outgoing
> >mail from the foo.org intranet domain, to rewrite the sender address from
> >the intranet domain foo.org to the Internet domain foo.fr . Is it possible
> >with the new qmail-inject from mess822 to rewrite the sender's domain name
> >for the outgoing intranet mail to a valid Internet domain name ?
> 
> I have asked this question here two weeks ago and no one answered, so I ended up 
>modifying qmail-scanner to rewrite the messages.





Yes, it's as simple as that (only you have to put it in two places - the read loop of the message and the envelope header). Right now I am in process of rewriting the qmail-scanner script to do only, and only that, without ANYTHING related to virus scanning.
 
-------Original Message-------
 
From: Michel Boucey <[EMAIL PROTECTED]>
Date: Friday, January 26, 2001 06:26:19 PM
To: Alex Kramarov <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Subject: Re: rewriting outgoing remote mail
 
and does it work ?

is it just something like s/\@foo.org/\@foo.fr/ at the right place to do
or is it very much more complicated ?

__________________________________________________
IncrediMail - Email has finally evolved - Click Here





if anyone is still interested in that rewritten and scaled down qmail-scanner, I have got it up and running, and can send it to anyone who is is interested.
 
-------Original Message-------
 
From: Alex Kramarov <[EMAIL PROTECTED]>
Date: Friday, January 26, 2001 06:35:04 PM
To: Qmail list <[EMAIL PROTECTED]>
Subject: Re: Re: rewriting outgoing remote mail
 
Yes, it's as simple as that (only you have to put it in two places - the read loop of the message and the envelope header). Right now I am in process of rewriting the qmail-scanner script to do only, and only that, without ANYTHING related to virus scanning.
 
-------Original Message-------
 
From: Michel Boucey <[EMAIL PROTECTED]>
Date: Friday, January 26, 2001 06:26:19 PM
To: Alex Kramarov <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
Subject: Re: rewriting outgoing remote mail
 
and does it work ?

is it just something like s/\@foo.org/\@foo.fr/ at the right place to do
or is it very much more complicated ?

 

__________________________________________________
IncrediMail - Email has finally evolved - Click Here





Well, now I have supervise, svscan, and apparently qmail up and running:

bash-2.03# ps -ef |grep qmail
  qmailq  8711  8704  1 10:11:47 pts/2    0:00 qmail-clean
  qmaill  8710  8703  1 10:11:47 pts/2    0:00 /usr/local/bin/multilog t
/var/lo
g/qmail/smtpd
  qmailr  8708  8704  1 10:11:47 pts/2    0:00 qmail-rspawn
  qmails  8704  8700  2 10:11:46 pts/2    0:00 qmail-send
    root  8715  8125  0 10:11:50 pts/2    0:00 grep qmail
    root  8702  8699  1 10:11:46 pts/2    0:00 supervise qmail-smtpd
  qmaill  8705  8704  0                   0:00 <defunct>
    root  8700  8699  0 10:11:46 pts/2    0:00 supervise qmail-send
  qmaill  8707  8701  1 10:11:47 pts/2    0:00 /usr/local/bin/multilog t
/var/lo
g/qmail
    root  8706  8704  1 10:11:47 pts/2    0:00 qmail-lspawn |preline
procmail
bash-2.03#

And yet when I try and use qmail-inject to test the delivery, nothing
happens -- no error messages, no syslogs, no mail. Very strange.

Furrfu. Any ideas? Thanks --

Fish.





Fish Flowers <[EMAIL PROTECTED]> wrote:
> 
> And yet when I try and use qmail-inject to test the delivery, nothing
> happens -- no error messages, no syslogs, no mail. Very strange.

qmail _always_ logs.  You're just looking in the wrong logfiles.  Look again,
based on your setup.

Charles
-- 
-----------------------------------------------------------------------
Charles Cazabon                            <[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
-----------------------------------------------------------------------




Hey all,
I have a really annoying spammer on my hands and just wonder if it is 
possible to use wildcards in badmailfrom?  Originally I added

        [EMAIL PROTECTED]

to badmailfrom and that blocked it for about a month.  Then he got 
halfway smart and changed his sender address to 

        [EMAIL PROTECTED]

for which I added 

        @tpts6.seed.net.tw

to badmailfrom.  This however, only worked for a few minutes as he is 
apparently starting to create random names for mail hosts.  Here is a 
list that I have collected so far

        @tpts4.seed.net.tw
        @mx.seed.net.tw
        @ara.seed.net.tw
        @tpts6.seed.net.tw
        @sky.seed.net.tw
        @iris.seed.net.tw
        @giga.net.tw
        @party.seed.net.tw
        @ksmail.seed.net.tw
        @saturn.seed.net.tw
        @tpts7.seed.net.tw

Now, my question is, would it be possible to block as in

        @*.seed.net.tw

Thanks.  I guess I could always try it to see what it does but I would 
rather know before hand---the man page doesn't mention anything about 
wildcards.

Andy





Andy Bradford <[EMAIL PROTECTED]> wrote:
> I have a really annoying spammer on my hands and just wonder if it is 
> possible to use wildcards in badmailfrom?

Someone posted a patch to do this some time ago.  You could search the
qmail list archives for it, or look at qmail.org for a pointer.  I think
it was called 'badrcptpatterns' or something similar.

Charles
-- 
-----------------------------------------------------------------------
Charles Cazabon                            <[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
-----------------------------------------------------------------------




On Fri, 26 Jan 2001 10:40:12 CST, Charles Cazabon wrote:

> Someone posted a patch to do this some time ago.  You could search the
> qmail list archives for it, or look at qmail.org for a pointer.  I think
> it was called 'badrcptpatterns' or something similar.

Yes, thanks to another poster I found the wildmat program/patch that 
will add this into it.  I seached for ``wildcard'' instead of ``regex'' 
on qmail.org which is why I didn't see it the first time...

Andy





Hi;

Is it possible to route incoming mails to different
machines for example
if a user name start with a to c abc.foo.org will
handle it or if a user name start with d to g 
defg.foo.org will handle that..
I think it must be possible.And all machines must be
aware of that configuration to handle right email.Of
course there is another problem grows how will end
user
know which machine is right machine to send mail and
RECEIVE(via pop3)

any comments? 

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices. 
http://auctions.yahoo.com/




Hello all,

I am having difficulty in getting my mailing lists to work.  I believe that
the lists addressed are not even being evaluated by ezmlm, but are being
reject by qmail due to a configuration mistake on my part.

The msg at the end of this email is a forward of the failure notice from
qmail.

Also, I am including my configs and other info below:

"aquinas.pp.asu.edu" is the host's real name, and "hdshc.asu.edu" is an alias
for this host.

All mailing lists are in the form "[EMAIL PROTECTED]" (virtual
domain) -- but seems to get reformatted to "[EMAIL PROTECTED]",
which is annoying but workable; This system used to work until I screwed
something up in the config files :( 

I would greatly appreciate any help on this.  I have been fighting this for a
day now and need to get the lists back up.  

BEGIN FILES:
--------------------users/assign---------------
+hdshc.asu.edu-:hdshc.asu.edu:1002:83:/home/vpopmail/domains/hdshc.asu.edu:-::
+aquinas.pp.asu.edu-:aquinas.pp.asu.edu:1002:83:/home/vpopmail/domains/aquinas.pp.asu.edu:-::
.

------------control/defaultdomain-------------
pp.asu.edu

-------------control/defaulthost--------------
hdshc.asu.edu

------------control/locals----------------------
localhost.asu.edu
aquinas.pp.asu.edu

-------------control/me-------------------------
aquinas.pp.asu.edu


--------------control/plusdomain-----------------
asu.edu


---------------control/rcpthosts-----------------
localhost.asu.edu
aquinas.pp.asu.edu
hdshc.asu.edu

----------------control/virtualdomains-----------
aquinas.pp.asu.edu:hdshc.asu.edu

END FILES


I know the problem is probably simple, but I can't see it.  It has deffinately
prompted me to want to learn more about email systems and qmail more
specifically.

Again, any assistance on this would be greatly appreciated.

------------------------------
Ben Trussell
Hugh Downs School of Human Communication
[EMAIL PROTECTED]

You can write a small letter to Grandma in the filename.
                -- Forbes Burkowski, CS, University of Washington


---------- Forwarded message ----------
Date: Fri, 26 Jan 2001 17:49:41 +0000
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: failure notice

Hi. This is the qmail-send program at aquinas.pp.asu.edu.
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.

<[EMAIL PROTECTED]>:
Sorry, no mailbox here by that name. (#5.1.1)

--- Below this line is a copy of the message.

Return-Path: <[EMAIL PROTECTED]>
Received: (qmail 424 invoked from network); 26 Jan 2001 17:49:41 -0000
Received: from post2.inre.asu.edu (129.219.110.73)
  by aquinas.pp.asu.edu with SMTP; 26 Jan 2001 17:49:41 -0000
Received: from conversion.post2.inre.asu.edu by asu.edu (PMDF V6.0-24 #47347)
 id <[EMAIL PROTECTED]> for [EMAIL PROTECTED]; Fri,
 26 Jan 2001 10:38:52 -0700 (MST)
Received: from general2.asu.edu (general2.asu.edu [129.219.10.242])
 by asu.edu (PMDF V6.0-24 #47347) with ESMTP id <[EMAIL PROTECTED]> for
 [EMAIL PROTECTED]; Fri, 26 Jan 2001 10:38:52 -0700 (MST)
Received: from localhost (localhost [127.0.0.1])
        by general2.asu.edu (8.9.3/8.9.3) with ESMTP id KAA00141        for
 <[EMAIL PROTECTED]>; Fri, 26 Jan 2001 10:38:48 -0700 (MST)
Date: Fri, 26 Jan 2001 10:38:48 -0700 (MST)
From: Ben <[EMAIL PROTECTED]>
X-Sender: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Message-id: <[EMAIL PROTECTED]>
MIME-version: 1.0
Content-type: TEXT/PLAIN; charset=US-ASCII



------------------------------
Ben Trussell
Hugh Downs School of Human Communication
[EMAIL PROTECTED]

Dishonor will not trouble me, once I am dead.
                -- Euripides







On Fri, Jan 26, 2001 at 11:08:49AM -0700, Ben wrote:
> All mailing lists are in the form "[EMAIL PROTECTED]" (virtual
> domain) -- but seems to get reformatted to "[EMAIL PROTECTED]",

This is because of
    hdshc.asu.edu.          IN CNAME     aquinas.pp.asu.edu.
hdshc.asu.edu will be rewritten to aquinas.pp.asu.edu by mailservers
as a CNAME says kinda "this host does not exist and is really called
aquinas.pp.asu.edu".

> ------------control/locals----------------------
> localhost.asu.edu
> aquinas.pp.asu.edu
> ----------------control/virtualdomains-----------
> aquinas.pp.asu.edu:hdshc.asu.edu


A host may not be in locals and virtualdomains at the same time
(i.e. it may, but locals takes precedence to virtualdomains).

Another problem might be that if the ezmlm mailinglist is configured
to be [EMAIL PROTECTED] it will not accept beeing called
[EMAIL PROTECTED]

The easiest way to fix your problem is probably to change
    hdshc.asu.edu.      IN      CNAME   aquinas.pp.asu.edu.
to
    hdshc.asu.edu.      IN      A       129.219.125.101

        \Maex

-- 
SpaceNet AG            | Joseph-Dollinger-Bogen 14 | Fon: +49 (89) 32356-0
Research & Development |       D-80807 Muenchen    | Fax: +49 (89) 32356-299
Stress is when you wake up screaming and you realize you haven't fallen
asleep yet.




On Fri, Jan 26, 2001 at 11:08:49AM -0700, Ben wrote:
> I am having difficulty in getting my mailing lists to work.  I believe that
> the lists addressed are not even being evaluated by ezmlm, but are being
> reject by qmail due to a configuration mistake on my part.
> 
> The msg at the end of this email is a forward of the failure notice from
> qmail.
> 
> Also, I am including my configs and other info below:
> 
> "aquinas.pp.asu.edu" is the host's real name, and "hdshc.asu.edu" is an alias
> for this host.
> 
> All mailing lists are in the form "[EMAIL PROTECTED]" (virtual
> domain) -- but seems to get reformatted to "[EMAIL PROTECTED]",
> which is annoying but workable;

Remove the CNAME record and make it an A or an MX record. That's what's causing
the rewriting of the host name.

> BEGIN FILES:
> --------------------users/assign---------------
> +hdshc.asu.edu-:hdshc.asu.edu:1002:83:/home/vpopmail/domains/hdshc.asu.edu:-::
> 
>+aquinas.pp.asu.edu-:aquinas.pp.asu.edu:1002:83:/home/vpopmail/domains/aquinas.pp.asu.edu:-::
> .
> 
> ------------control/defaultdomain-------------
> pp.asu.edu
> 
> -------------control/defaulthost--------------
> hdshc.asu.edu
> 
> ------------control/locals----------------------
> localhost.asu.edu
> aquinas.pp.asu.edu
> 
> -------------control/me-------------------------
> aquinas.pp.asu.edu
> 
> 
> --------------control/plusdomain-----------------
> asu.edu
> 
> 
> ---------------control/rcpthosts-----------------
> localhost.asu.edu
> aquinas.pp.asu.edu
> hdshc.asu.edu
> 
> ----------------control/virtualdomains-----------
> aquinas.pp.asu.edu:hdshc.asu.edu
> 
> END FILES
> 
> 
> I know the problem is probably simple, but I can't see it.  It has deffinately
> prompted me to want to learn more about email systems and qmail more
> specifically.

You have aquinas.pp.asu.edu in both locals and virtualdomains. Having a domain
in both files is always a mistake. To fix your problem, get rid of the CNAME,
and add hdshc.asu.edu to virtualdomains and remove it from locals.

Chris




On 26 Jan 2001, James R Grinter wrote:

> On the subject of notifications, it's becoming more of a problem
> because of "similar" domains - you should have typed
> "[EMAIL PROTECTED]" and instead type "[EMAIL PROTECTED]". The
> latter doesn't even accept mail deliveries, so it hangs around in the
> queue for too long.

I have had emails that took literally a month to get delivered.  It was
nice that Qmail kept the message in the queue that long, since the message
would have not been delivered to him if I was using a MTA that gives up
after five days.

The problem with "there is a delay in delivering the message"-type mails
is that the average user never takes the time to read those messages, and
thinks that they mean that the mail has bounced.

- Sam





On Fri, Jan 26, 2001 at 10:13:28AM -0800, [EMAIL PROTECTED] wrote:
> The problem with "there is a delay in delivering the message"-type mails
> is that the average user never takes the time to read those messages, and
> thinks that they mean that the mail has bounced.

No, the problem is that while they may be helpful if sent by a server
under your control (where you can delete the message if you like)
they are a nightmare if sent by remote systems where you have no chance
to control them.
As I said before, if you will get one every hour for a whole week
(and then the message was bounced with a undelivery notice) you will
surely start to hate this "feature".

        \Maex

-- 
SpaceNet AG            | Joseph-Dollinger-Bogen 14 | Fon: +49 (89) 32356-0
Research & Development |       D-80807 Muenchen    | Fax: +49 (89) 32356-299
Stress is when you wake up screaming and you realize you haven't fallen
asleep yet.




Trying to send to a mailing list on our server, I get this error:

Jan 26 11:12:33 chub qmail: 980532753.765862 delivery 33222: deferral:
Unable_to_open_.qmail/LISTNAME/qmail-default:_access_denied._(#4.3.0)/

.qmail/LISTNAME/q-mail-default is a pointer to
/home/accountname/listname/manager and this file and directory both have RX
permission for user, group, and world. What else could be going on?
Thanks...

Emily Witcher
Crytech Inc.
406-655-0501
[EMAIL PROTECTED]





Hi,
How i can personalise the failure notice and add
X-Complaint-to:[EMAIL PROTECTED] in headers ?

I have a server with a name ndsoftware.net when i make a lookup on ip. How
force qmail to use mail.ndsoftware.net ? And how apply this in headers ?

Thanks

Nicolas DEFFAYET, NDSoftware
http://www.ndsoftware.net - [EMAIL PROTECTED]
France: Tel +33 671887502 - Fax N/A
UK: Tel +44 8453348750 - Fax +44 8453348751
USA: Tel N/A - Fax N/A





I had my /var/qmail/users/assign file lost.
but i want to recover this file and the relatived cdb file by my-self
what can i do?
 




On Sat, Jan 27, 2001 at 04:02:48AM +0800, maxen wrote:
> I had my /var/qmail/users/assign file lost.
> but i want to recover this file and the relatived cdb file by my-self
> what can i do?

Lost? You mean someone deleted them or the disk got trashed, right?

The usual thing is to get it off of your backup. Does this not work
for you?

If you're asking for a magic way to get a file back that has been
deleted/trashed and which you have no backup, then you're out of
luck. This is not a qmail problem though, this is a system management
problem.


Regards.




THX, I do recover it.
I means that:

I build a server support abt 100 virtual domains, with vpopmail of course.
last morning, i add another two virtual domains, and somewhat is wrong,
unfortunately lost
that CDB file, but all users' DIR is there and virtual domain also stand
there.
rebuild the ASCII file $PATHqmail/users/assign
and run $qmailbin/qmail-newu
thx Live With qmail
thx Mark Delany  also



>Lost? You mean someone deleted them or the disk got trashed, right?


yes, i means that rebuild the CDB file

>The usual thing is to get it off of your backup. Does this not work
>for you?


net yet, but will be done from today's on


>If you're asking for a magic way to get a file back that has been
>deleted/trashed and which you have no backup, then you're out of
>luck. This is not a qmail problem though, this is a system management
>problem.

yep, i am that unfortunately guys

Best Regards Michael Moore





Have you checked your tcpserver logs to see what it thinks is going on? If
there is no record of your attempt to connect, it means it is not listening
on port 25. Otherwise it may tell you why you are being refused. Just in
case--did you re/compile the rules file? You could also use tcprulescheck to
test the rules file.

-K

"Do not meddle in the affairs of wizards, for they are subtle and quick to
anger."


> From: Curtis Collicutt <[EMAIL PROTECTED]>
> Date: Thu, 25 Jan 2001 22:54:52 -0800 (PST)
> To: [EMAIL PROTECTED]
> Subject: can't connect to smtp
> 
> Hi,
> 
> I'm trying to diagnose the reason why I can't connect
> to port 25 on the localhost. I've tried with #telnet
> localhost 25 and #mconnect and I get:
> 
> tcpclient: unable to connect to 127.0.0.1 port 25:
> connection refused
> 
> with both.
> 
> I've just installed qmail following the howto found at
> http://www.flounder.net/qmail/qmail-howto.html.
> 
> $ ps ax | grep qmail
> 22825 ??  S       8:39.46 supervise qmail-smtpd
> 25256 p0  R+      0:00.00 grep qmail (sh)
> 20531 C0- S      10:04.16 supervise qmail-send
> 
> Shows that qmail-smtpd is running, but I can't
> connect.
> 
> tcpserver rules are:
> 127.0.0.1:allow,RELAYCLIENT=""
> :allow
> 
> So I should be able to connect, as far as I know.
> 
> Anything else I can look at? I'm so stumped.
> 
> Thanks for any help.
> Curtis.
> 
> 
> 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - Buy the things you want at great prices.
> http://auctions.yahoo.com/
> 





OK, I lied, qmail is logging -- I just wasn't clueful enough to figure out
where. But now I have! (Thanks James and Charles.) But it didn't help.
/var/log/qmail/smtpd/current shows the following:

@400000003a71e0a43872189c tcpserver: fatal: unable to figure out port
number for smtp
... repeat ad nauseam

OK, fair enough... how do I open the port? Or point tcpserver to
it? Ack! Lack of unix training coming back to bite me in the butt!

Fish.






Fish Flowers wrote:
> @400000003a71e0a43872189c tcpserver: fatal: unable to figure out port
> number for smtp
>
> OK, fair enough... how do I open the port? Or point tcpserver to
> it? Ack! Lack of unix training coming back to bite me in the butt!

Looks like you're calling tcpserver with a port argument of "smtp".  You
have two options: either use a port argument of "25" instead (a number
instead of a name), or define a port number for smtp in /etc/services or
similar file.

---Kris Kelley





On Fri, 26 Jan 2001, Kris Kelley wrote:

> Looks like you're calling tcpserver with a port argument of "smtp".  You
> have two options: either use a port argument of "25" instead (a number
> instead of a name), or define a port number for smtp in /etc/services or
> similar file.

Hmm -- but smtp is assigned a port number (25) in /etc/services...

When and where is tcpserver called? I'll try passing it an explicit port
argument...

Fish.





Fish Flowers wrote:
> Hmm -- but smtp is assigned a port number (25) in /etc/services...
>
> When and where is tcpserver called? I'll try passing it an explicit port
> argument...

That depends.  If you followed the "Life with qmail" way of doing things,
tcpserver is called from /var/qmail/supervise/qmail-smtpd/run.  At any rate,
qmail should be fired up during the machine's boot sequence, so the call to
tcpserver, or at least the script it's hiding in, should be somewhere in
your start-up scripts.

---Kris Kelley






>  "Life with qmail"

I have seen this mentioned severa, times lately.  Where can I find this
document?





http://www.lifewithqmail.org/

HIH,
Laurence

--
Laurence Brockman
Unix Administrator
Videon Cablesystems Alberta Inc
10450-178 St.
Edmonton, AB
T5S 1S2
[EMAIL PROTECTED]
(780) 486-6527


-----Original Message-----
From: Virginia Chism [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 26, 2001 3:12 PM
To: QMail Mailing List
Subject: RE: tcpserver unable to figure out port number for smtp



>  "Life with qmail"

I have seen this mentioned severa, times lately.  Where can I find this
document?




* Virginia Chism <[EMAIL PROTECTED]> [010126 17:16]:

> >  "Life with qmail"
> 
> I have seen this mentioned severa, times lately.  Where can I find
> this document?

Webmaster, huh? http://www.google.com/search?q=%22life+with+qmail%22





On Fri, Jan 26, 2001 at 04:12:03PM -0600, Virginia Chism wrote:
> 
> >  "Life with qmail"
> 
> I have seen this mentioned severa, times lately.  Where can I find this
> document?
 
Apart from the fact that the url is mentioned on qmail.org, it is
http://www.lifewithqmail.org 

-- 
Henning Brauer     | BS Web Services
Hostmaster BSWS    | Roedingsmarkt 14
[EMAIL PROTECTED] | 20459 Hamburg
http://www.bsws.de | Germany




Hi there,

i'm getting this msg at my mail log:

 delivery 13: deferral:
 message_transmission_failed_(451_See_http://pobox.com/~djb/docs/smtplf.html.)/

i have already read it (http://pobox.com/~djb/docs/smtplf.html).

i'm using, fetchmail to retrieve my mail.

could any one help me please.

./bras
--
Jorge Bras
Support Engineer
kpnQwest Portugal
GPG Fingerprint: 9DE5 F4E7 FB38 01CB 9F54  E7EC C6FA 3A8C 2E0E 54EB




Jorge Bras wrote:
> i'm getting this msg at my mail log:
>
>  delivery 13: deferral:
>
message_transmission_failed_(451_See_http://pobox.com/~djb/docs/smtplf.html.
)/
>
> i have already read it (http://pobox.com/~djb/docs/smtplf.html).

Did you read or skim? :)

That page says what to do when you see this problem with fetchmail: make
sure you are using the forcecr option when fetching.

---Kris Kelley







Jorge Bras <[EMAIL PROTECTED]> wrote:
> 
>  delivery 13: deferral:
>  message_transmission_failed_(451_See_http://pobox.com/~djb/docs/smtplf.html.)/
> 
> i have already read it (http://pobox.com/~djb/docs/smtplf.html).

Which part didn't you understand?  You're injecting mail with bare linefeeds.
That's a no-no.  Don't do it.

> i'm using, fetchmail to retrieve my mail.

Then fetchmail is broken.  Use something else.  I wrote getmail because of
issues like this.  You can find it from the link below, and best of all,
it doesn't even do delivery by SMTP re-injection.

Charles
-- 
-----------------------------------------------------------------------
Charles Cazabon                            <[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
-----------------------------------------------------------------------




Charles Cazabon wrote:
> Which part didn't you understand?  You're injecting mail with bare
linefeeds.
> That's a no-no.  Don't do it.
>
> > i'm using, fetchmail to retrieve my mail.
>
> Then fetchmail is broken.  Use something else.

I wouldn't say fetchmail is broken.  The bare LFs weren't inserted by
fetchmail, they're being passed on unchanged from the original source.
Alternatively, fetchmail provides an option, forcecr, that will make sure
every line ends with a CRLF.  http://cr.yp.to/docs/smtplf.html covers this.

> I wrote getmail because of
> issues like this.  You can find it from the link below, and best of all,
> it doesn't even do delivery by SMTP re-injection.

I like that feature.  At any rate, fetchmail also offers delivery straight
to an MDA.

---Kris Kelley





Sorry for being such a dunce.  I have been there many times and just didn't
pay attention to the title.  Please ignore and don't flame . . .(hiding)

>  "Life with qmail"

I have seen this mentioned several, times lately.  Where can I find this
document?





On Fri, 26 Jan 2001, Virginia Chism wrote:

> >  "Life with qmail"
>
> I have seen this mentioned several, times lately.  Where can I find this
> document?

http://www.lifewithqmail.org

And, oh, while I am here, I would like to inform everyone that, to
unsubscribe from the list, send email to [EMAIL PROTECTED]
I've mentioned this before, and I will mention this again.


- Sam






At 03:16 PM 1/26/2001, you wrote:
>Sorry for being such a dunce.  I have been there many times and just didn't
>pay attention to the title.  Please ignore and don't flame . . .(hiding)

heh too late... there are some on this list who are simply laying in wait for
an opportunity to flame at any sign of weakness or silly questions... a bit
like jackals in that respect, aren't we, Mr. Socha? ;o)


smartass on a Friday

Jer





Hi,
Where is the tcpserver config ?
Can you help me tou configure this ?
Thanks



From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: qqrbl
Date: Wed, 27 Dec 2000 16:52:06 -0800

----Next_Part(Wed_Dec_27_16:52:06_2000_747)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


Russ,

Find attached a quick script I hacked up to use with Bruce Guenter's
QMAILQUEUE patch. I have it installed on my system as
/var/qmail/libexec/qqrbl and run it via
':allow,QMAILQUEUE="/var/qmail/libexec/qqrbl"' in my tcpserver config
file.

Uses the Mail::RBL module (note that Mail::RBL thinks it requires a
really recent version of Perl, but if you change the 'our $VERSION'
variable to 'use vars qw($VERSION)' and get rid of the 'use
warnings.pm', it runs just fine under 5.005_03.

Real simple script, basically, it groks the IP's out of every
Received: line and runs them through all three RBL's at mail-abuse.org
(easy enough to edit the script to change that) and adds an 'X-RBL:'
header for every match, making filtering down the line easier.

I considered just using a simple bourne shell script with Bruce's
qmail-qfilter and rblcheck, but this seems more elegant. :)

Please post on qmail.org as you see fit.

Thanks.

j.


----Next_Part(Wed_Dec_27_16:52:06_2000_747)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=qqrbl

#!/usr/bin/perl
#
# Id     : qqrbl
# Author : Jay Soffian <[EMAIL PROTECTED]>
# Purpose: Runs IP's found in message Received: lines through rblcheck
#          and notes any positive hits by adding X-RBL: headers.
# History: Dec 27, 2000 - Initial.

use strict;
use Mail::RBL;

sub qqrbl {
  my $qmail_queue = "/var/qmail/bin/qmail-queue";
  my %rbls;
  foreach my $rbl (@_) {
    $rbls{$rbl} = new Mail::RBL($rbl);
  }

  # We get our message contents on fd0 from qmail-smtpd or ofmipd.
  open(SMTPEIN, "<&=0") or fail(54, "dup(fd0) failed (#4.3.0) - $!");

  # Create a pipe so we can wedge ourselves between qmail-smtpd/ofmipd and
  # qmail-queue. We pass fd1 (the message envelope) straight through since
  # we don't care about it for purposes of rblchecks.
  pipe (QQEIN, QQEOUT)  or fail(51, "pipe() failed (#4.3.0) - $!");

  my $qq_pid = fork;
  fail(51, "fork() failed (#4.3.0) - $!") unless defined $qq_pid;

  if ($qq_pid == 0) { # child (exec qmail-queue)
    # unset QMAILQUEUE so that we don't get executed again by accident,
    # causing an infinite loop.
    delete $ENV{QMAILQUEUE};
    close QQEOUT;     # don't need this half of the pipe
    # wedge between stdin and the pipe
    open (STDIN, "<&QQEIN") or fail(54, "dup(pipe) failed (#4.3.0) - $!");
    exec $qmail_queue       or fail(51, "exec($qmail_queue) failed
(#4.3.0) - $!");

  } else { # parent
    $SIG{'PIPE'} = 'IGNORE';
    close QQEIN;# don't need this half of the pipe.

    my %ips;
    while(<SMTPEIN>) {
      if (1 .. /^$/) {
        map {$ips{$_} = 1} /(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/g if
/^Received:/;
        if (/^$/) {
          foreach my $rbl (sort keys %rbls) {
            foreach my $ip (keys %ips) {
              print QQEOUT "X-RBL: $ip is listed by $rbl\n" if
$rbls{$rbl}->check($ip);
            }
          }
        }
      }
      print QQEOUT $_;      # pass message along to qmail-queue
    }

    # close everything properly
    close SMTPEIN or fail(54,"close(smtp in) failed (#4.3.0) - $!");
    close QQEOUT  or fail(53,"close(qq out) failed (#4.3.0) - $!");

    # make sure qmail-queue exits okay
    waitpid ($qq_pid,0);
    my ($status) = ($? >> 8);
    fail($status, "qmail-queue failed ($status). (#4.3.0)") unless $status
== 0;
  }
}
qqrbl(qw(    relays.mail-abuse.org
            dialups.mail-abuse.org
         blackholes.mail-abuse.org
        )
     );
exit 0;

sub fail {
  my ($exitval, $msg) = @_;
  warn $msg,"\n";
  exit($exitval);
}

----Next_Part(Wed_Dec_27_16:52:06_2000_747)----



Nicolas DEFFAYET, NDSoftware
http://www.ndsoftware.net - [EMAIL PROTECTED]
France: Tel +33 671887502 - Fax N/A
UK: Tel +44 8453348750 - Fax +44 8453348751
USA: Tel N/A - Fax N/A





Hi,
Where is the tcpserver config ?
Can you help me tou configure this ?
Thanks



From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: qqrbl
Date: Wed, 27 Dec 2000 16:52:06 -0800

----Next_Part(Wed_Dec_27_16:52:06_2000_747)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


Russ,

Find attached a quick script I hacked up to use with Bruce Guenter's
QMAILQUEUE patch. I have it installed on my system as
/var/qmail/libexec/qqrbl and run it via
':allow,QMAILQUEUE="/var/qmail/libexec/qqrbl"' in my tcpserver config
file.

Uses the Mail::RBL module (note that Mail::RBL thinks it requires a
really recent version of Perl, but if you change the 'our $VERSION'
variable to 'use vars qw($VERSION)' and get rid of the 'use
warnings.pm', it runs just fine under 5.005_03.

Real simple script, basically, it groks the IP's out of every
Received: line and runs them through all three RBL's at mail-abuse.org
(easy enough to edit the script to change that) and adds an 'X-RBL:'
header for every match, making filtering down the line easier.

I considered just using a simple bourne shell script with Bruce's
qmail-qfilter and rblcheck, but this seems more elegant. :)

Please post on qmail.org as you see fit.

Thanks.

j.


----Next_Part(Wed_Dec_27_16:52:06_2000_747)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=qqrbl

#!/usr/bin/perl
#
# Id     : qqrbl
# Author : Jay Soffian <[EMAIL PROTECTED]>
# Purpose: Runs IP's found in message Received: lines through rblcheck
#          and notes any positive hits by adding X-RBL: headers.
# History: Dec 27, 2000 - Initial.

use strict;
use Mail::RBL;

sub qqrbl {
  my $qmail_queue = "/var/qmail/bin/qmail-queue";
  my %rbls;
  foreach my $rbl (@_) {
    $rbls{$rbl} = new Mail::RBL($rbl);
  }

  # We get our message contents on fd0 from qmail-smtpd or ofmipd.
  open(SMTPEIN, "<&=0") or fail(54, "dup(fd0) failed (#4.3.0) - $!");

  # Create a pipe so we can wedge ourselves between qmail-smtpd/ofmipd and
  # qmail-queue. We pass fd1 (the message envelope) straight through since
  # we don't care about it for purposes of rblchecks.
  pipe (QQEIN, QQEOUT)  or fail(51, "pipe() failed (#4.3.0) - $!");

  my $qq_pid = fork;
  fail(51, "fork() failed (#4.3.0) - $!") unless defined $qq_pid;

  if ($qq_pid == 0) { # child (exec qmail-queue)
    # unset QMAILQUEUE so that we don't get executed again by accident,
    # causing an infinite loop.
    delete $ENV{QMAILQUEUE};
    close QQEOUT;     # don't need this half of the pipe
    # wedge between stdin and the pipe
    open (STDIN, "<&QQEIN") or fail(54, "dup(pipe) failed (#4.3.0) - $!");
    exec $qmail_queue       or fail(51, "exec($qmail_queue) failed
(#4.3.0) - $!");

  } else { # parent
    $SIG{'PIPE'} = 'IGNORE';
    close QQEIN;# don't need this half of the pipe.

    my %ips;
    while(<SMTPEIN>) {
      if (1 .. /^$/) {
        map {$ips{$_} = 1} /(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/g if
/^Received:/;
        if (/^$/) {
          foreach my $rbl (sort keys %rbls) {
            foreach my $ip (keys %ips) {
              print QQEOUT "X-RBL: $ip is listed by $rbl\n" if
$rbls{$rbl}->check($ip);
            }
          }
        }
      }
      print QQEOUT $_;      # pass message along to qmail-queue
    }

    # close everything properly
    close SMTPEIN or fail(54,"close(smtp in) failed (#4.3.0) - $!");
    close QQEOUT  or fail(53,"close(qq out) failed (#4.3.0) - $!");

    # make sure qmail-queue exits okay
    waitpid ($qq_pid,0);
    my ($status) = ($? >> 8);
    fail($status, "qmail-queue failed ($status). (#4.3.0)") unless $status
== 0;
  }
}
qqrbl(qw(    relays.mail-abuse.org
            dialups.mail-abuse.org
         blackholes.mail-abuse.org
        )
     );
exit 0;

sub fail {
  my ($exitval, $msg) = @_;
  warn $msg,"\n";
  exit($exitval);
}

----Next_Part(Wed_Dec_27_16:52:06_2000_747)----



Nicolas DEFFAYET, NDSoftware
http://www.ndsoftware.net - [EMAIL PROTECTED]
France: Tel +33 671887502 - Fax N/A
UK: Tel +44 8453348750 - Fax +44 8453348751
USA: Tel N/A - Fax N/A






> Hi,
> Where is the tcpserver config ?
> Can you help me tou configure this ?
> Thanks

Look at the documentation for tcpserver, which is part of the ucspi-tcp
package.  http://cr.yp.to has a link to the ucspi-tcp documentation.

- Sam





David Dyer-Bennet wrote:

> Um, most reporting measured results from optimizing high-traffic
> qmail-based mail servers have found that disk activity on the queue
> disk is the first limit they hit.


How about, if the first delivery fails, pass it off to a server with
some disks.  Why not pre-process with qmail-remote before queueing?



-- 
                      David Nicol 816.235.1187 [EMAIL PROTECTED]
                            Five seconds of light is a lot of data.





On Fri, Jan 26, 2001 at 05:46:51PM -0600, David L. Nicol wrote:
> David Dyer-Bennet wrote:
> 
> > Um, most reporting measured results from optimizing high-traffic
> > qmail-based mail servers have found that disk activity on the queue
> > disk is the first limit they hit.
> 
> 
> How about, if the first delivery fails, pass it off to a server with
> some disks.  Why not pre-process with qmail-remote before queueing?

qmail-remote is way too late as most of the I/O load is putting the
mail in the queue, not getting it off.  Besides, the symptom isn't
delivery failure, it's slowness.


Regards.





On Fri, Jan 26, 2001 at 11:56:54PM +0000, Mark Delany wrote:
> On Fri, Jan 26, 2001 at 05:46:51PM -0600, David L. Nicol wrote:
> > David Dyer-Bennet wrote:
> > 
> > > Um, most reporting measured results from optimizing high-traffic
> > > qmail-based mail servers have found that disk activity on the queue
> > > disk is the first limit they hit.
> > 
> > 
> > How about, if the first delivery fails, pass it off to a server with
> > some disks.  Why not pre-process with qmail-remote before queueing?
> 
> qmail-remote is way too late as most of the I/O load is putting the
> mail in the queue, not getting it off.  Besides, the symptom isn't
> delivery failure, it's slowness.

Actually. I was little hasty on the first point. I now see what you're
getting at. One question is, how far do you let qmail-remote go before
deciding it will work. It it's past the MAIL FROM/RCPT TO part, then
why not complete the delivery rather than incur the double load and
double latency?

If you mean to try and completely do the remote delivery prior to
placing it in the queue, then this is the passthru idea that people
have suggest previously. It potentially has merit with an amount of
added complexity.

One problem is that a busy system, such as a mailing list system may
be at full concurrencyremote for extended periods of time, in which
case, new submissions should not attempt qmail-remote delivery so
you're back to square one.

Another problem is that the mail has to be stored somewhere while
qmail-remote attempts delivery. Well, unless you want the submitting
client to wait - that may create a lot of confusing latency for, eg,
people sitting on a PC using Eudora. If the mail is stored somewhere,
you're starting to get back to a disk queue.

But it's not necessarily a silly idea. I believe that sendmail tries
to do something like this in certain circumstances. A monolithic
design has an advantage in this regard. Doing this is a nice
compartmentalized way with the current qmail wouldn't be a lot of fun.


Regards.




Suppose my concurrencylocal and concurrencyremote will never be
greater than, say, 50.  Is there then any penalty in setting
conf-spawn to 100?  More to the point, is there any reason not to set
conf-spawn to the largest value possible, other than portability?


paul




HI
 
I have applied Russ Nelsons Big TO DO Patch and Big concurency patch
 
Is this enough for qmail to handle a large number of simultaneous deliveries or I need to specify it in qmail-control
 
Please explain me as I have just started with Qmail.
 
also i see that Dave Smith of Xoom.com has updated the Big-to-do patch... Is the updated one recommended or the original is good enough.
 
Regards
Sumith




Hello,

I see in the log file a strange warning. what does it mean ?

# cat /var/log/qmail/current | grep 67391
@400000003a72a5f52ec6ad94 new msg 67391
@400000003a72a5f52ec6c504 warning: unknown record type in todo/67391
@400000003a72a5f53015af4c new msg 67391
@400000003a72a5f53015b71c warning: unknown record type in todo/67391
@400000003a72a5fb0597adc4 new msg 67391
@400000003a72a5fb0597b97c warning: unknown record type in todo/67391
@400000003a72a5fb0776260c new msg 67391
@400000003a72a5fb07762ddc warning: unknown record type in todo/67391

Octave

Illegal division by zero ?!! Aaah ? I'm _root_ !!


Reply via email to