qmail Digest 31 Aug 2000 10:00:01 -0000 Issue 1109

Topics (messages 47595 through 47675):

Qmail tuning
        47595 by: Angelo Gelmi [iWM]

Re: Help getting Qmail to run with tcpserver
        47596 by: Vince Vielhaber

Mail Protocol Issue: BCC only?
        47597 by: Scott Sharkey
        47598 by: Jost Krieger
        47599 by: Len Budney

fastforward and :include:
        47600 by: Brett Randall
        47612 by: oliver.koch.jk.uni-linz.ac.at
        47613 by: Brett Randall
        47643 by: Chris, the Young One

Sendmail problem...BUG !
        47601 by: Audouy Jérôme
        47602 by: markd.bushwire.net
        47615 by: Audouy Jérôme

RBL/MAPS/DUL etc. without rblsmtpd?
        47603 by: John Gonzalez/netMDC admin
        47604 by: Petr Novotny
        47605 by: John Gonzalez/netMDC admin
        47606 by: Timothy L. Mayo

Re: Problems with "Life with qmail"
        47607 by: Dave Sill

Re: [maildropl] upper and lower case
        47608 by: Charles Cazabon
        47616 by: Daniel Augusto Fernandes
        47622 by: Dave Sill
        47626 by: Jeremy Stanley
        47630 by: Dave Sill

Re: Changing mail deliver program to MAILDROP
        47609 by: Charles Cazabon
        47610 by: Daniel Augusto Fernandes
        47663 by: David Benfell

Re: Timezone
        47611 by: Daniel Augusto Fernandes
        47636 by: David Dyer-Bennet
        47642 by: Chris, the Young One
        47650 by: Russ Allbery

Re: QMail not allways online
        47614 by: Bernd Stroessenreuther
        47617 by: Bernd Stroessenreuther

QmailAdmin: Invalid Login
        47618 by: swapna
        47619 by: Marco
        47657 by: swapna

Re: Strange Problems with tcprules.
        47620 by: Dave Sill

Problems with rblsmtpd again..
        47621 by: John Gonzalez/netMDC admin

TCPSERVER + RBLSMTPD
        47623 by: Michael T. Babcock

Re: Timezone]
        47624 by: Stephen F. Bosch
        47625 by: Daniel Augusto Fernandes

Slooooooooowwww attachment upload
        47627 by: Daniel Ceregatti
        47628 by: Alexander Pennace
        47631 by: Ricardo Cerqueira
        47635 by: Daniel Ceregatti
        47638 by: Daniel Ceregatti

Upper/lower case
        47629 by: Petr Novotny
        47632 by: Alexander Pennace

.qmail-default contents incorrect
        47633 by: Timothy Lorenc
        47634 by: Alexander Pennace
        47637 by: Dave Sill

Re: few Qs from newbie
        47639 by: jakubski.poczta.arena.pl
        47640 by: Chris, the Young One

SUMMARY: .qmail-default contents incorrect
        47641 by: Timothy Lorenc

qmail-queue wrapper (like qmail-qfilter)
        47644 by: Ricardo Albano
        47647 by: Peter Samuel

Detailed log for SMTP transaction
        47645 by: net admin
        47646 by: Ihnen, David

queue problem
        47648 by: çééí äìôøï
        47649 by: markd.bushwire.net

Relaying and /control/rcpthosts
        47651 by: net admin
        47652 by: Brett Randall
        47653 by: Dale Miracle
        47670 by: James Raftery

Stupid question. SMTP gateways from dynamic IP.
        47654 by: Barrie Bremner
        47655 by: Ben Beuchler
        47656 by: markd.bushwire.net

virtual domain error.
        47658 by: Muhammad Yusuf
        47659 by: Jason J. Czerak

Alias Support Question
        47660 by: Tom Sarratt Jr.

partially local
        47661 by: Petre Rodan
        47662 by: Tom Sarratt Jr.

Qmail 1.03
        47664 by: Bob Ross
        47669 by: Fat Toolz
        47675 by: Vince Vielhaber

clustered qmail  solution
        47665 by: reach_prashant.zeenext.com

smtproutes syntax
        47666 by: John Conover
        47667 by: Charles Warwick

Pop authentication problem
        47668 by: Michel Carpentier

unscribe
        47671 by: yavuz

Telnet 110
        47672 by: Marco
        47673 by: Brett Randall
        47674 by: Hazy Xu

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]


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


I've succesfully installaed qmail on a 486dx2 66 named tulip into 
my local network (its domain name equal to DOMINIO).
That means that when I write an email to [EMAIL PROTECTED], all 
works correctly and the email reaches the right pop account.
I've read many documentation both in English than in Italian language
but really I've not realized yet deeply the  philosophy stands behind 
Qmail: my goal is to (in some way) link internal mail with that of my 
ISP (based on a registered domain). Using fetchmail an 
procmail to receive and configuring qmail with serial mail to throw out
my outgoing mail. 
My questions are: how can I achieve this goal? and what virtualdomain
means and how can be used?

Hoping that someone can help me,
Thank You, 
Angelo Gelmi









On Tue, 29 Aug 2000, Peter Janett wrote:

> I really can't seem to get Qmail to run with tcpserver as far as the pop
> service goes.
> 
> I've followed all the directions on LWQ, with the exception of Paul Gregg's
> checkpasswd.  Inetd will probably work for me, but I need to setup
> pop-before SMTP, and I can't seem to get the IP address of the calling
> client when I run Qmail through inetd.
> 
> I'm wondering if my startup scripts are wrong, or in the wrong order, etc.
> I've included all the relevant file contents below, including the inetd
> lines that work.  I'm looking to get tcpserver to work, or finding a way to
> pass the IP address of the calling client to pass through checkpassword
> using inetd.  I'm on a Sun Sparc 2.6.

I no longer run inetd, however I had an hpux machine that couldn't live
without running telnetd thru it (FreeBSD does it just fine).  That said..

It depends on what you're using for pop before smtp.  I'm using smtp-poplock 
by David Harris (http://www.davideous.com/smtp-poplock/) and have had no
problems at all with it.  I'm starting everything thru rc.local, here's
how I start the pop3 service:

/usr/local/bin/tcpserver 0 110 /usr/local/sbin/spop3d 2> /var/log/poplog &

and here's how I start qmail-smtpd:

/usr/local/bin/tcpserver -x /etc/tcp.smtp.cdb -g 1001 -u 1004 0 25 \
 /usr/sbin/relaylock /var/qmail/bin/qmail-smtpd &

The -x /etc/tcp.smtp.cdb isn't really needed in my case as it only has
the 127. line in it.

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







Hi everyone,

I asked a few weeks ago about known issues with qmail not delivering
BCC messages.  After investigating further, the client is claiming 
that the messages that are not delivered have ONLY a BCC (no to, no
cc).  In a quick reading of RFC822, it appears that there is some
ambiguity to the spec (surprise!)... a "destination" is required, 
where destination is defined as a To:, CC: or Bcc:.  But, it also 
says that the Bcc: can be put only on the author's copy, or on
all Bcc recipients copies, but NOT on To: or CC: recipient copies
of the message.  It's optional in the first two cases.

So, in theory, a message with a BCC only would have no To:, CC:,
or Bcc: headers, at least in some cases.  Question is, is the
message then a "legal" message, or would qmail just drop it since
there is no "destination"?  I know Dan is a stickler for observing
correct protocol (I agree with him), but I'm not sure if this is
a bug or "expected behavior".

Thanks!

-Scott




On Wed, Aug 30, 2000 at 08:10:29AM -0400, Scott Sharkey wrote:

> I asked a few weeks ago about known issues with qmail not delivering
> BCC messages.

I don't think that there is such a problem *in general*.
Unfortunately, I don't have your previous message handy.

> After investigating further, the client is claiming 
> that the messages that are not delivered have ONLY a BCC (no to, no
> cc).  In a quick reading of RFC822, it appears that there is some
> ambiguity to the spec (surprise!)... a "destination" is required, 
> where destination is defined as a To:, CC: or Bcc:.  But, it also 
> says that the Bcc: can be put only on the author's copy, or on
> all Bcc recipients copies, but NOT on To: or CC: recipient copies
> of the message.  It's optional in the first two cases.

Your analysis is correct. The only part of qmail that handles this
is qmail-inject, and it handles this case correctly by always removing
the Bcc: header and inserting a dummy, but valid Cc: header if no
Addresses are left:

   if (!htypeseen[H_TO] && !htypeseen[H_CC])
     puts("Cc: recipient list not shown: ;\n");

The rest of qmail couldn't care less about the contents of
previous headers. qmail will happily deliver an incoming mail with no
headers at all. It will insert its own Received: headers, of course.

The only way I can think of that qmail may drop a Bcc: mail is the
following:

An external Bcc mail comes in without any destination headers and
is fed to some script that tries to reinsert the mail without giving
new destination addresses, but that would be nonsensical, I think.

> So, in theory, a message with a BCC only would have no To:, CC:,
> or Bcc: headers, at least in some cases.  Question is, is the
> message then a "legal" message, or would qmail just drop it since
> there is no "destination"?  I know Dan is a stickler for observing
> correct protocol (I agree with him), but I'm not sure if this is
> a bug or "expected behavior".

There's also the important point of "being liberal in what you accept".

Could you please (re-)provide some more details, maybe it is a MUA problem.

Jost
-- 
| [EMAIL PROTECTED]      Please help stamp out spam! |
| Postmaster, JAPH, resident answer machine          am RZ der RUB |
| Pluralitas non est ponenda sine necessitate                      |
|                                 William of Ockham (1285-1347/49) |




Scott Sharkey <[EMAIL PROTECTED]> wrote:
> 
> I asked a few weeks ago about known issues with qmail not delivering
> BCC messages.

None I know of.

> After investigating further, the client is claiming that the messages
> that are not delivered have ONLY a BCC (no to, no cc)...So, in theory,
> a message with a BCC only would have no To:, CC:, or Bcc: headers,
> at least in some cases.

Dan thought of this. He puts an empty list in the "cc:" field, so his
messages are definitely valid. It is possible that the client's MTA is
broken, and can't handle empty recipient lists; they look like this:
"CC: recipient list not shown: ;".

Len.

--
Moral: Don't assume that you can omit random pieces of punctuation.
                                -- Dan Bernstein




Hi all

I am trying to use :include: lines in /etc/aliases with fastforward, but
aren't getting very far and the man pages aren't helping me. I think I'm
just going through some kind of mental dropout here...Anyway could someone
please brief me on the usage of :include: files with fastforward and qmail?
Thanks!

/BR

Manager
InterPlanetary Solutions
http://ipsware.com/






On Mit, 30 Aug 2000, Brett Randall wrote:
> Hi all
> 
> I am trying to use :include: lines in /etc/aliases with fastforward, but
> aren't getting very far and the man pages aren't helping me. I think I'm
> just going through some kind of mental dropout here...Anyway could someone
> please brief me on the usage of :include: files with fastforward and qmail?
> Thanks!

Have you read the file ALIAS in the fastforwarrd-package? After
newinclude and newaliases everything works fine for me. 

The :include: line looks like this:

<name>:         :include: </path/to/file>

The file is just a list of email-adresses.

Don't forget to run newinclude and don't forget to put 

| fastforward -d /etc/aliases.cdb 

in your ~alias/.qmail-default. 

hih,

-- 
Oliver Koch                           Registered Linux User 163952

Oh, I am a C programmer and I'm okay
        I muck with indices and structs all day
And when it works, I shout hoo-ray
        Oh, I am a C programmer and I'm okay




> The :include: line looks like this:
>
> <name>:               :include: </path/to/file>
        ^         ^
What does the <name> signify? And are there meant to be two colons
immediately after each other (shown)? Also, is the /path/to/file meant to be
to the .bin file or the un-binarised version?

Thanks again

/BR


Manager
InterPlanetary Solutions
http://ipsware.com/


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 31, 2000 1:02 AM
> To: qmail
> Subject: Re: fastforward and :include:
>
>
> On Mit, 30 Aug 2000, Brett Randall wrote:
> > Hi all
> >
> > I am trying to use :include: lines in /etc/aliases with fastforward, but
> > aren't getting very far and the man pages aren't helping me. I think I'm
> > just going through some kind of mental dropout here...Anyway
> could someone
> > please brief me on the usage of :include: files with
> fastforward and qmail?
> > Thanks!
>
> Have you read the file ALIAS in the fastforwarrd-package? After
> newinclude and newaliases everything works fine for me.
>
>
> The file is just a list of email-adresses.
>
> Don't forget to run newinclude and don't forget to put
>
> | fastforward -d /etc/aliases.cdb
>
> in your ~alias/.qmail-default.
>
> hih,
>
> --
> Oliver Koch                           Registered Linux User 163952
>
> Oh, I am a C programmer and I'm okay
>       I muck with indices and structs all day
> And when it works, I shout hoo-ray
>       Oh, I am a C programmer and I'm okay





Quoted from Brett Randall:
> > The :include: line looks like this:
> >
> > <name>:             :include: </path/to/file>
>         ^         ^
> What does the <name> signify?

Whichever address you want to have expanded.

>                               And are there meant to be two colons
> immediately after each other (shown)?

Yes, just like sendmail.

>                                       Also, is the /path/to/file meant to be
> to the .bin file or the un-binarised version?

Quoted from newaliases(1):
       A  recipient  address  of  the  form  :include:file  means
       ``every address listed in file.''   (Actually  fastforward
       reads file.bin; see newinclude(1) for further details.)

Conclude as appropriate.

        ---Chris K.
-- 
 Chris, the Young One |_ If you can't afford a backup system, you can't 
  Auckland, New Zealand |_ afford to have important data on your computer. 
http://cloud9.hedgee.com/ |_ ---Tracy R. Reed  




> I have a problem with the /var/qmail/bin/sendmail program
> i try to send a mail via a script (AMaViS) but the command line doesn't work :
> #!/bin/sh
> cat <<EOF | /usr/lib/sendmail -i -t
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: test
>
> my test text.
> EOF

i find my problem !
there is a little bug in qmail !

if you use qmail-inject as a link to datemail (to put the date)
AND try to use sendmail with any option you want it add the -H or -a option 
(sgetopt.c) ...

so when i want to call sendmail, it call qmail-inject which call datemail
which call sendmail with not recognized options -H or -a ...


BUG (or bad utilisation) reported :)

Dji
--
Audouy Jérôme - 3rd year student in E.S.S.I. (Ecole Supérieure en Sciences 
Informatiques)
e-mail : [EMAIL PROTECTED] / [EMAIL PROTECTED]
www    : http://djidji.citeweb.net / http://www.essi.fr/~audouy






On Wed, Aug 30, 2000 at 03:14:19PM +0200, Audouy J?r?me wrote:
> > I have a problem with the /var/qmail/bin/sendmail program
> > i try to send a mail via a script (AMaViS) but the command line doesn't work :
> > #!/bin/sh
> > cat <<EOF | /usr/lib/sendmail -i -t
> > From: [EMAIL PROTECTED]
> > To: [EMAIL PROTECTED]
> > Subject: test
> >
> > my test text.
> > EOF
> 
> i find my problem !
> there is a little bug in qmail !
> 
> if you use qmail-inject as a link to datemail (to put the date)

If I understand you correctly, then this is not the way you are
meant to arrange these programs.

You might link /var/qmail/bin/datemail to sendmail or maybe
link /var/qmail/bin/sendmail to sendmail but definitely *do not* link
anything to /var/qmail/bin/qmail-inject.

Show us the output of: ls -l /var/qmail/bin

> BUG (or bad utilisation) reported :)

If I understand you correctly, then "bad utilisation".


Regards.




Le mercredi 30 août 2000 à 4:11:49 PM, [EMAIL PROTECTED] a écris:
> On Wed, Aug 30, 2000 at 03:14:19PM +0200, Audouy J?r?me wrote:
>> > I have a problem with the /var/qmail/bin/sendmail program
>> > i try to send a mail via a script (AMaViS) but the command line doesn't work :
>> > #!/bin/sh
>> > cat <<EOF | /usr/lib/sendmail -i -t
>> > From: [EMAIL PROTECTED]
>> > To: [EMAIL PROTECTED]
>> > Subject: test
>> >
>> > my test text.
>> > EOF
>> 
>> i find my problem !
>> there is a little bug in qmail !
>> 
>> if you use qmail-inject as a link to datemail (to put the date)

> If I understand you correctly, then this is not the way you are
> meant to arrange these programs.

> You might link /var/qmail/bin/datemail to sendmail or maybe
> link /var/qmail/bin/sendmail to sendmail but definitely *do not* link
> anything to /var/qmail/bin/qmail-inject.

> Show us the output of: ls -l /var/qmail/bin
now i have (normal way):
/var/qmail/bin:
...
-rwxr-xr-x   1 root     qmail         126 Aug 30 15:30 datemail
...
-rwxr-xr-x   1 root     qmail        33244 Aug 30 15:34 qmail-inject
...
-rwxr-xr-x   1 root     qmail        8700 Aug 30 15:35 sendmail
...


but when i had the problem, i had (wrong way):
/var/qmail/bin:
...
-rwxr-xr-x   1 root     qmail         126 Aug 30 15:30 datemail
...
lrwxrwxrwx   1 root     qmail        33244 Aug 30 15:34 qmail-inject -> datemail
...
-rwxr-xr-x   1 root     qmail        8700 Aug 30 15:35 sendmail
...

and i try :

cat << EOF | /usr/sbin/sendmail -i -t
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: test

test text.
EOF


of course in /usr/sbin :

...
lrwxrwxrwx   1 root     root           23 Aug 24 16:25 sendmail -> 
/var/qmail/bin/sendmail
...

it tells me:
sendmail: illegal option -- H
sendmail: usage: sendmail [ -t ] [ -fsender ] [ -Fname ] [ -bp ] [ -bs ] [ arg ... ]


>> BUG (or bad utilisation) reported :)
> If I understand you correctly, then "bad utilisation".
no really because if i want to put the local date in all mails i could use:

ln -s /var/qmail/bin/datemail /var/qmail/bin/qmail-inject

without any problem with /var/qmail/bin/sendmail no ?
(i saw this solution somewhere but i don't remind where exactly)


Dji.
-- 
Audouy Jérôme - 3rd year student in E.S.S.I. (Ecole Supérieure en Sciences 
Informatiques)
e-mail : [EMAIL PROTECTED] / [EMAIL PROTECTED]
www    : http://djidji.citeweb.net / http://www.essi.fr/~audouy






Am i to understand that rblsmtpd's devlopment has ceased? I think DJB's
page says some mention of that, and also instructs that the functionality
has been introduced into tcpserver now.

LWQ still makes mention of using rblsmtpd, and i'm trying to set this up
on a new server i'm toying with. Anybody know any good instructions on
setting these black hole lists up with tcpserver?

-- 
  _    __   _____      __   _________      
______________  /_______ ___  ____  /______  John Gonzalez/Net.Tech
__  __ \ __ \  __/_  __ `__ \/ __  /_  ___/ MDC Computers/netMDC!
_  / / / `__/ /_  / / / / / / /_/ / / /__ (505)439-0200/fax-437-3052
/_/ /_/\___/\__/ /_/ /_/ /_/\__,_/  \___/ http://www.netmdc.com
[---------------------------------------------[system info]-----------]
  8:20am  up 111 days, 14:23,  2 users,  load average: 0.06, 0.10, 0.13





-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 30 Aug 2000, at 8:24, John Gonzalez/netMDC admin wrote:

> Am i to understand that rblsmtpd's devlopment has ceased? I think
> DJB's page says some mention of that, and also instructs that the
> functionality has been introduced into tcpserver now.

You're reading it wrong. It says that rblsmtpd became part of
ucspi-tcp package, not of tcpserver. Get the newest ucspi-tcp from 
http://cr.yp.to/ucspi-tcp.html and when you build the programs, 
rblsmtpd gets built, too.

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.2 -- QDPGP 2.61a
Comment: http://community.wow.net/grt/qdpgp.html

iQA/AwUBOa0MpFMwP8g7qbw/EQIeCwCeISpDc9PqtjQ5X7T1yhFm1KziuH4AoLCK
1MRn3AB81jPQ7emD89XZuYj1
=4DGc
-----END PGP SIGNATURE-----
--
Petr Novotny, ANTEK CS
[EMAIL PROTECTED]
http://www.antek.cz
PGP key ID: 0x3BA9BC3F
-- Don't you know there ain't no devil there's just God when he's drunk.
                                                             [Tom Waits]




On Wed, 30 Aug 2000, Petr Novotny wrote:

| -----BEGIN PGP SIGNED MESSAGE-----
| Hash: SHA1
| 
| On 30 Aug 2000, at 8:24, John Gonzalez/netMDC admin wrote:
| 
| > Am i to understand that rblsmtpd's devlopment has ceased? I think
| > DJB's page says some mention of that, and also instructs that the
| > functionality has been introduced into tcpserver now.
| 
| You're reading it wrong. It says that rblsmtpd became part of
| ucspi-tcp package, not of tcpserver. Get the newest ucspi-tcp from 
| http://cr.yp.to/ucspi-tcp.html and when you build the programs, 
| rblsmtpd gets built, too.

Ahhhhh :) no wonder i cant find any information on anything but rblsmtpd
:) I thought perhaps everybody was being lazy and hadnt switched over to
the 'new method' yet :)


-- 
  _    __   _____      __   _________      
______________  /_______ ___  ____  /______  John Gonzalez/Net.Tech
__  __ \ __ \  __/_  __ `__ \/ __  /_  ___/ MDC Computers/netMDC!
_  / / / `__/ /_  / / / / / / /_/ / / /__ (505)439-0200/fax-437-3052
/_/ /_/\___/\__/ /_/ /_/ /_/\__,_/  \___/ http://www.netmdc.com
[---------------------------------------------[system info]-----------]
  8:30am  up 111 days, 14:33,  3 users,  load average: 0.11, 0.13, 0.13





You misunderstood the statement.  rblsmtpd is now part of the ucspi-tcp
package.  See: http://cr.yp.to/ucspi-tcp.html

On Wed, 30 Aug 2000, John Gonzalez/netMDC admin wrote:

> Am i to understand that rblsmtpd's devlopment has ceased? I think DJB's
> page says some mention of that, and also instructs that the functionality
> has been introduced into tcpserver now.
> 
> LWQ still makes mention of using rblsmtpd, and i'm trying to set this up
> on a new server i'm toying with. Anybody know any good instructions on
> setting these black hole lists up with tcpserver?
> 
> -- 
>   _    __   _____      __   _________      
> ______________  /_______ ___  ____  /______  John Gonzalez/Net.Tech
> __  __ \ __ \  __/_  __ `__ \/ __  /_  ___/ MDC Computers/netMDC!
> _  / / / `__/ /_  / / / / / / /_/ / / /__ (505)439-0200/fax-437-3052
> /_/ /_/\___/\__/ /_/ /_/ /_/\__,_/  \___/ http://www.netmdc.com
> [---------------------------------------------[system info]-----------]
>   8:20am  up 111 days, 14:23,  2 users,  load average: 0.06, 0.10, 0.13
> 
> 

---------------------------------
Timothy L. Mayo                         mailto:[EMAIL PROTECTED]
Senior Systems Administrator
localconnect(sm)
http://www.localconnect.net/

The National Business Network Inc.      http://www.nb.net/
One Monroeville Center, Suite 850
Monroeville, PA  15146
(412) 810-8888 Phone
(412) 810-8886 Fax





<[EMAIL PROTECTED]> wrote:

>I read all intructions and I did all them steps of "LWQ" 
>but have a problem ....
>when I run "qmail start"  It show me :
>11084:/sbin/loader: Fatal Error: cannot malloc
>11087:/sbin/loader: Fatal Error: cannot malloc
>11090:/sbin/loader: Fatal Error: cannot malloc
>11096:/sbin/loader: Fatal Error: cannot malloc
>why?  

In the /var/qmail/supervise/qmail-smtpd/run script, change the memory
limit to 3000000 or 4000000. There's a note about this in LWQ, but
it's easy to miss.

-Dave




Daniel Augusto Fernandes <[EMAIL PROTECTED]> wrote:
> 
> I didn't find how to make qmail lowecase the username... How do I do
> that?

qmail folds the case on the local part of email addresses automatically.
You don't need to do anything.  Mail received for "JoeBob" will automatically
be delivered to local user "joebob".

Charles
-- 
--------------------------------------------------------------
Charles Cazabon                           <[EMAIL PROTECTED]>
QCC Communications Corporation                   Saskatoon, SK
My opinions do not necessarily represent those of my employer.
--------------------------------------------------------------




Charles Cazabon wrote:
> 
> .
> .
> .
> 
> qmail folds the case on the local part of email addresses automatically.
> You don't need to do anything.  Mail received for "JoeBob" will automatically
> be delivered to local user "joebob".

So I thing I am not understanding something...
Attached is part of my mailog in which we can see local trying to
deliver usernames in caps.

I was just wondering if maildrop searches the userdb in case sensitive!
Mr. Sam?

--------------------------------------------------------------------
Daniel Augusto Fernandes (DAF tm)               [EMAIL PROTECTED]
GCSNet                                    http://www.gcsnet.com.br/
--------------------------------------------------------------------
                     Se você não encontra
                     o sentido das coisas
                     é porque este não
                     se encontra, se cria.
                                   Antoine Saint-Exupéry
Aug 29 09:36:56 catope qmail: 967552616.126485 starting delivery 587: msg 731434 to 
local [EMAIL PROTECTED]
Aug 29 09:36:56 catope qmail: 967552616.126979 status: local 1/10 remote 0/20
Aug 29 09:36:56 catope maildrop[2888]: Invalid user specified.
Aug 29 09:36:56 catope qmail: 967552616.520117 delivery 587: deferral: 
maildrop:_Invalid_user_specified./
Aug 29 09:36:56 catope qmail: 967552616.520589 status: local 0/10 remote 0/20
Aug 29 13:04:34 catope qmail: 967565074.621529 starting delivery 588: msg 731442 to 
local [EMAIL PROTECTED]
Aug 29 13:04:34 catope qmail: 967565074.622024 status: local 1/10 remote 0/20
Aug 29 13:04:34 catope qmail: 967565074.871207 starting delivery 590: msg 731437 to 
local [EMAIL PROTECTED]
Aug 29 13:04:34 catope qmail: 967565074.871584 status: local 2/10 remote 1/20
Aug 29 13:04:35 catope qmail: 967565075.036302 starting delivery 593: msg 731446 to 
local [EMAIL PROTECTED]
Aug 29 13:04:35 catope qmail: 967565075.036676 status: local 3/10 remote 3/20
Aug 29 13:04:35 catope qmail: 967565075.039107 starting delivery 595: msg 731450 to 
local [EMAIL PROTECTED]
Aug 29 13:04:35 catope qmail: 967565075.039577 status: local 4/10 remote 4/20
Aug 29 13:04:35 catope qmail: 967565075.042744 starting delivery 596: msg 731445 to 
local [EMAIL PROTECTED]
Aug 29 13:04:35 catope qmail: 967565075.285302 delivery 588: deferral: 
maildrop:_Invalid_user_specified./
Aug 29 13:04:35 catope qmail: 967565075.285778 status: local 5/10 remote 6/20
Aug 29 13:04:35 catope maildrop[2900]: Invalid user specified.
Aug 29 13:04:36 catope qmail: 967565076.068265 delivery 590: deferral: 
maildrop:_Invalid_user_specified./
Aug 29 13:04:36 catope qmail: 967565076.068745 status: local 9/10 remote 11/20
Aug 29 13:04:36 catope qmail: 967565076.069135 delivery 593: deferral: 
maildrop:_Invalid_user_specified./
Aug 29 13:04:36 catope qmail: 967565076.069501 status: local 8/10 remote 11/20
Aug 29 13:04:36 catope qmail: 967565076.069867 delivery 595: success: did_0+0+1/
Aug 29 13:04:35 catope maildrop[2908]: Invalid user specified.
Aug 29 13:04:36 catope qmail: 967565076.070304 status: local 7/10 remote 11/20
Aug 29 13:04:36 catope qmail: 967565076.070698 delivery 596: deferral: 
maildrop:_Invalid_user_specified./




Daniel Augusto Fernandes <[EMAIL PROTECTED]> wrote:

>I didn't find how to make qmail lowecase the username... How do I do
>that?

qmail-local does it automatically.

-Dave




On Wed, 30 Aug 2000, Dave Sill wrote:

> Daniel Augusto Fernandes <[EMAIL PROTECTED]> wrote:
> 
> >I didn't find how to make qmail lowecase the username... How do I do
> >that?
> 
> qmail-local does it automatically.
[snip]

I have to say that we are having a similar problem with qMail+Cyrus (a
system I inherited some months back and have been toying with converting
to qMail+Courier instead).  I'm begining to think it has something to do
with case sensitivity in the alias assignments within users/assign (all
real-world addresses are assigned to the cyrus user for local
delivery).  I get regular complaints from people who continue to give out
capitalized versions of their E-mail address (or set them as authoritative 
addresses in their mail clients), regardless of how often we tell them not
to do that.

--------------------------------------------------------------------------
Jeremy Stanley, Information Security Specialist         Foveon Corporation
--------------------------------------------------------------------------





Jeremy Stanley <[EMAIL PROTECTED]> wrote:

>On Wed, 30 Aug 2000, Dave Sill wrote:
>
>> Daniel Augusto Fernandes <[EMAIL PROTECTED]> wrote:
>> 
>> >I didn't find how to make qmail lowecase the username... How do I do
>> >that?
>> 
>> qmail-local does it automatically.
>[snip]
>
>I have to say that we are having a similar problem with qMail+Cyrus (a
>system I inherited some months back and have been toying with converting
>to qMail+Courier instead).  I'm begining to think it has something to do
>with case sensitivity in the alias assignments within users/assign (all
>real-world addresses are assigned to the cyrus user for local
>delivery).  I get regular complaints from people who continue to give out
>capitalized versions of their E-mail address (or set them as authoritative 
>addresses in their mail clients), regardless of how often we tell them not
>to do that.

I looked at the PIC's and realized qmail-lspawn checks users/cdb
before calling qmail-local, ,and thought I might be on to something,
but qmail-lspawn lowercases the local part before looking for it in
users/cdb, so we're back to square one.

Is this repeatable? Do mixed-case local parts always fail?

-Dave




David Benfell <[EMAIL PROTECTED]> wrote:
> 
> Perhaps someone can help me to see the light here.  I'm given to
> understand that people here complain about fetchmail's handing off of
> mail to the MTA as being flawed.

It is.  It causes mail loops, bogus bounces, bogus double-bounces, and
generally creates headaches for any postmaster which cares about the stuff
that ends up in their inbox.  Note that I'm biased; I'm the author of
getmail.

>  I had trouble with it when I was still using sendmail, blamed it on sendmail
>  (another "Lost in Space" episode), and bypassed the problem by having
>  fetchmail hand off directly to procmail.

This is a good solution to many of the problems with fetchmail.
 
> These days, having had way too many sendmail adventures, I've switched
> to qmail.  Calling the MDA (now maildrop) directly from fetchmail is
> an inherited arrangement from a resolution to earlier troubles.  And,
> with this arrangement, I've had no trouble with fetchmail.
> 
> I would consider switching to getmail, but I didn't see a way to run
> this via ssh.  Is this possible?

As in, run getmail in a shell which happens to be communicating over an SSH
session?  I don't see the problem.  This isn't particularly germane to qmail,
so contact me in private email for further info.

Charles
-- 
--------------------------------------------------------------
Charles Cazabon                   <[EMAIL PROTECTED]>
--------------------------------------------------------------




David Benfell wrote:
> 
> On Wed, Aug 23, 2000 at 08:08:44PM -0200, Daniel Augusto Fernandes wrote:
> >
> > Could you help me on how to change my qmail start scripts to use
> > maildrop as the deliver program?
> >
> This isn't how it's done.  Each user chooses to use maildrop, as he
> would procmail.  I guess you can use the .qmail file to do this, but I
> call it directly from fetchmail in my .fetchmailrc file with:
> 
>         mda "/usr/local/bin/maildrop"

Well, I would like to use maildrop to be my MDA not just like a
replacement to procmail. But, thanks...

> .
> .
> .

--------------------------------------------------------------------
Daniel Augusto Fernandes (DAF tm)               [EMAIL PROTECTED]
GCSNet                                    http://www.gcsnet.com.br/
--------------------------------------------------------------------
                     Se você não encontra
                     o sentido das coisas
                     é porque este não
                     se encontra, se cria.
                                   Antoine Saint-Exupéry




On Wed, Aug 30, 2000 at 11:53:11AM -0300, Daniel Augusto Fernandes wrote:
> 
> Well, I would like to use maildrop to be my MDA not just like a
> replacement to procmail. But, thanks...
> 
It appears you are confusing a mail transfer agent (MTA, e.g. qmail)
with a mail delivery agent (MDA, e.g. maildrop or procmail).  There's
only one other item I can think of in the M's of the e-mail alphabet
soup -- that would be a mail user agent (MUA, e.g. mutt or pine).

This makes it really unclear what you are really attempting to
accomplish; I'm assuming you aren't really trying to replace qmail
with maildrop, but this is what it sounds like.

-- 
David Benfell
[EMAIL PROTECTED]
ICQ 59438240 [e-mail first for access]
---
There are no physicists in the hottest parts of hell, because the
existence of a "hottest part" implies a temperature difference, and
any marginally competent physicist would immediately use this to
run a heat engine and make some other part of hell comfortably cool.
This is obviously impossible.
                                -- Richard Davisson
 
                                        [from fortune]

                 

PGP signature





"Stephen F. Bosch" wrote:
> 
> Eric Cox wrote:
> >
> > "Stephen F. Bosch" wrote:
> > >
> > > Daniel Augusto Fernandes wrote:
> > > >
> > > > Yes, I agree with the MUA being responsible for doing the translation.
> > > > But some doesn't do that.
> > >
> > > Like Mickeysoft's Outlook Excess, for example. Outlook is not standards
> > > compliant.
> > > What you're essentially asking for a way to break qmail so that it will
> > > work with Microsoft's mediocre product. =)
> >
> > Actually neither Netscape 4.72 nor Pine 4.10 do it either.
> 
> Then why does my version of 4.72 do it correctly?
> 

As far as I know Netscape show the localtime in the message list but
doesn't change anything in the header. But, in some cases it doesn't
show it correctly.

--------------------------------------------------------------------
Daniel Augusto Fernandes (DAF tm)               [EMAIL PROTECTED]
GCSNet                                    http://www.gcsnet.com.br/
--------------------------------------------------------------------
                     Se você não encontra
                     o sentido das coisas
                     é porque este não
                     se encontra, se cria.
                                   Antoine Saint-Exupéry




Stephen F. Bosch <[EMAIL PROTECTED]> writes on 29 August 2000 at 22:00:15 +0000
 > Daniel Augusto Fernandes wrote:
 > > 
 > > > qmail uses UTC for the timezone in headers, as it should.  Set the timezone
 > > > in your MUA/mail reader, and it should automatically translate timestamps
 > > > to local time, if it's intelligent enough.
 > > 
 > > Yes, I agree with the MUA being responsible for doing the translation.
 > > But some doesn't do that.
 > 
 > Like Mickeysoft's Outlook Excess, for example. Outlook is not standards
 > compliant.
 > What you're essentially asking for a way to break qmail so that it will
 > work with Microsoft's mediocre product. =)

In my years of working with computers, networks, and email, I don't
think I've *ever* seen an MUA that performs this theoretically
desirable function.  I'm sure people can cite several, but it doesn't
appear to be at all common.  I'm all for it; I think MUA's *should* do
that.  But in practice, I don't think they mostly parse the headers at
all, they just filter which to display and which to not display, and
display the actual text of any chosen.
-- 
Photos: http://dd-b.lighthunters.net/ Minicon: http://www.mnstf.org/minicon
Bookworms: http://ouroboros.demesne.com/ SF: http://www.dd-b.net/dd-b 
David Dyer-Bennet / Welcome to the future! / [EMAIL PROTECTED]




Quoted from David Dyer-Bennet:
[Re: timezone translation in Date fields]
> In my years of working with computers, networks, and email, I don't
> think I've *ever* seen an MUA that performs this theoretically
> desirable function.

Well, I can name one: mutt. You can use %D, or %[...] (where ... is
replaced by a strftime(3)-format string). Not that I know how to make
this affect the actual display of the header when reading a message,
but you can definitely tweak the index this way.

I sometimes wish mutt has a conversion for ``adjust to UTC''. Oh well.

        ---Chris K.
-- 
 Chris, the Young One |_ but what's a dropped message between friends? 
  Auckland, New Zealand |_ this is UDP, not TCP after all ;) ---John H. 
http://cloud9.hedgee.com/ |_ Robinson, IV  




David Dyer-Bennet <[EMAIL PROTECTED]> writes:

> In my years of working with computers, networks, and email, I don't
> think I've *ever* seen an MUA that performs this theoretically
> desirable function.

Gnus does, of course.

-- 
Russ Allbery ([EMAIL PROTECTED])             <http://www.eyrie.org/~eagle/>




-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

> Try serial mail. I have similar setup and it works fine.

I installed serialmail and now everything is good. Thanks to you and
all other who answered...

Bye,
  *B* erny





-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.0.2i

iQA/AwUBOa0WHSpywmLWA7OwEQLougCfRywsz1eC2S3qo79L1sYyuXE1rn4AoJTu
jIIYYa6ZyK6meVnYUsNdpK41
=ja75
-----END PGP SIGNATURE-----





-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

> Try serial mail. I have similar setup and it works fine.

I installed serialmail and now everything is good. Thanks to you and
all other who answered...

Bye,
  *B* erny





-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.0.2i

iQA/AwUBOa0WHSpywmLWA7OwEQLougCfRywsz1eC2S3qo79L1sYyuXE1rn4AoJTu
jIIYYa6ZyK6meVnYUsNdpK41
=ja75
-----END PGP SIGNATURE-----





Hi,
 
On Linux 6.0, using
vadduser dominname postmaster_password
account for domian is created, but when I try to login QMailAdmin screen:
POP Account : postmaster
Password : <postmaster_password>
Domain : domainname.com
 
gives me Invalid Login
 
Does anyone had this problem and found solution?
 




Hi
I had this problem and the solution was to put the option
 
--enable-vpopuser=vpopmail
 
in the ./config phase of the installation, where vpopmail is the user belonging to vchkpw group previously created.
It worked.
Bye
----- Original Message -----
From: swapna
Sent: Wednesday, August 30, 2000 5:48 PM
Subject: QmailAdmin: Invalid Login

Hi,
 
On Linux 6.0, using
vadduser dominname postmaster_password
account for domian is created, but when I try to login QMailAdmin screen:
POP Account : postmaster
Password : <postmaster_password>
Domain : domainname.com
 
gives me Invalid Login
 
Does anyone had this problem and found solution?
 




Hello Marco,
 
I just want to say thank you for this tip.  I had to give this command at both vpopmail and at qmail.
It started working..
 
Swapna
 
 
 
 
 
 
----- Original Message -----
From: Marco
Sent: Wednesday, August 30, 2000 12:03 PM
Subject: Re: QmailAdmin: Invalid Login

Hi
I had this problem and the solution was to put the option
 
--enable-vpopuser=vpopmail
 
in the ./config phase of the installation, where vpopmail is the user belonging to vchkpw group previously created.
It worked.
Bye
----- Original Message -----
From: swapna
Sent: Wednesday, August 30, 2000 5:48 PM
Subject: QmailAdmin: Invalid Login

Hi,
 
On Linux 6.0, using
vadduser dominname postmaster_password
account for domian is created, but when I try to login QMailAdmin screen:
POP Account : postmaster
Password : <postmaster_password>
Domain : domainname.com
 
gives me Invalid Login
 
Does anyone had this problem and found solution?
 




"TD" <[EMAIL PROTECTED]> wrote:

>I am running qmail and vpopmail.
>
>Hi.  My qmail server has been humming along quite nicely.
>Its a small  server with a small amount of users.  I noticed logging
>in via POP had become very slow so I decided to talk a closer look.
>I notice that the tcprules process and the vchkpw process is sometimes
>using up to 90% of CPU consitently.  I also noticed a lot of large files in
>the
>/etc/tcprules.d directory with the following type of names:
>
>qmail-smtpd.tmp.24168
>qmail-smtpd.tmp.24105
>etc

Hmm. Using an SMTP-after-POP patch? Sounds like it's fubar'd.

-Dave




I'm sure it's something i'm doing, but for some reason, whenever i add
rblsmtpd stuff to my qmail-smtpd startup script, it gets fubar'ed.

I have the normal stuff commented out, which if i put it back it works
fine.

With the rblsmtpd stuff in there, when telnetting to port 25, it's just
dead... I'm sure it's some kind of syntax error, but i cant figure
it. This is also a patched rblsmtpd for the new MAPS no TXT records, i
dont think that has anything to do with it tho, any ideas?

Here's the relevant info:

oblivion:/var/qmail/supervise/qmail-smtpd# cat run
#!/bin/sh
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
exec /usr/local/bin/softlimit -m 4000000 \
/usr/local/bin/tcpserver -v -p -x /etc/tcp.smtp.cdb \
-u $QMAILUID -g $NOFILESGID 0 smtp \
/usr/local/bin/rblsmtpd -rrbl.maps.vix.com \
/usr/local/bin/rblsmtpd -rdul.maps.vix.com \
/usr/local/bin/rblsmtpd /var/qmail/bin/qmail-smtpd 2>&1


#    /usr/local/bin/tcpserver -v -p -x /etc/tcp.smtp.cdb \
#        -u $QMAILDUID -g $NOFILESGID 0 smtp /var/qmail/bin/qmail-smtpd
2>&1

-- 
  _    __   _____      __   _________      
______________  /_______ ___  ____  /______  John Gonzalez/Net.Tech
__  __ \ __ \  __/_  __ `__ \/ __  /_  ___/ MDC Computers/netMDC!
_  / / / `__/ /_  / / / / / / /_/ / / /__ (505)439-0200/fax-437-3052
/_/ /_/\___/\__/ /_/ /_/ /_/\__,_/  \___/ http://www.netmdc.com
[---------------------------------------------[system info]-----------]
 10:25am  up 111 days, 16:28,  3 users,  load average: 0.41, 0.22, 0.20





DJB: Are there any plans to release the official version of rblsmtpd (in
tcpserver) with the patch to work with the A records when TXT records aren't
available?





Eric Cox wrote:
> 
> > Return-Path: <[EMAIL PROTECTED]>
> > Delivered-To: [EMAIL PROTECTED]
> > Received: (qmail 8713 invoked from network); 30 Aug 2000 03:20:52 -0000
> > Received: from muncher.math.uic.edu (131.193.178.181)by 192.dsl7839.rcsis.com with 
>SMTP; 30 Aug 2000 03:20:52 -0000
> > Received: (qmail 31869 invoked by uid 1002); 30 Aug 2000 03:19:49 -0000
> > Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> > Precedence: bulk
> > Delivered-To: mailing list [EMAIL PROTECTED]
> > Received: (qmail 24239 invoked from network); 30 Aug 2000 03:19:48 -0000
> > Received: from dsl-cap-209-115-249-138-cgy.nucleus.com (HELO 
>dsl-ch-l15-c80-n249-i138-cgy.nucleus.com) (209.115.249.138)by muncher.math.uic.edu 
>with SMTP; 30 Aug 2000 03:19:48 -0000
> > Received: (qmail 19854 invoked from network); 29 Aug 2000 21:19:18 -0600
> > Received: from dsl-cap-209-115-249-136-cgy.nucleus.com (HELO vodacomm.ca) 
>([EMAIL PROTECTED])by dsl-cap-209-115-249-138-cgy.nucleus.com with SMTP; 29 Aug 
>2000 21:19:18 -0600
> > Sender: sfbosch
> > Message-ID: <[EMAIL PROTECTED]>
> > Date: Tue, 29 Aug 2000 21:14:15 -0600
> > From: "Stephen F. Bosch" <[EMAIL PROTECTED]>
> > X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.16 i586)
> > X-Accept-Language: en
> > MIME-Version: 1.0
> > CC: Qmail Mailing List <[EMAIL PROTECTED]>
> > Subject: Re: Timezone
> > References: <[EMAIL PROTECTED]> 
><[EMAIL PROTECTED]> <[EMAIL PROTECTED]> 
><[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
> > Content-Type: text/plain; charset=us-ascii
> > Content-Transfer-Encoding: 7bit
> > X-Mozilla-Status: 8011
> > X-Mozilla-Status2: 00000000
> > X-UIDL: 967605652.8716.dream

> Are you sure?  I've quoted the all the headers above to show you my
> Netscape clearly does not do it.  Here are some dates from other messages,
> all in Netscape:
> 
> Date: Tue, 29 Aug 2000 22:34:04 GMT
> Date: Tue, 29 Aug 2000 22:51:22 +0200
> Date: Tue, 29 Aug 2000 18:04:11 -0400 (EDT)
> 
> If Netscape is translating them, should they not all be a common timezone?

Okay, for outgoing messages, perhaps... right... we're getting confused
over what is where, etc...

The point is that Outlook incorrectly translates the header information
and shows the UTC time for mail that comes through a qmail server,
whereas Netscape properly translates and shows the local time of
arrival.

I'm curious -- how does my mail appear in your mailbox? Does it show UTC
or local time of arrival?

-Stephen-




"Stephen F. Bosch" wrote:
> 
> .
> .
> .
> Okay, for outgoing messages, perhaps... right... we're getting confused
> over what is where, etc...
> 
> The point is that Outlook incorrectly translates the header information
> and shows the UTC time for mail that comes through a qmail server,
> whereas Netscape properly translates and shows the local time of
> arrival.
> 
> I'm curious -- how does my mail appear in your mailbox? Does it show UTC
> or local time of arrival?
> 
> -Stephen-

As far as I know Netscape show the localtime in the message list but
doesn't change anything in the header. But, in some cases it doesn't
show it correctly.


--------------------------------------------------------------------
Daniel Augusto Fernandes (DAF tm)               [EMAIL PROTECTED]
GCSNet                                    http://www.gcsnet.com.br/
--------------------------------------------------------------------
                     Se você não encontra
                     o sentido das coisas
                     é porque este não
                     se encontra, se cria.
                                   Antoine Saint-Exupéry




Howdy,

I've sent this problem to the list once before and never got any responses that 
helped, so I'm trying again.

Whenever I send an email (To my Linux server running qmail-ldap) with an attachment, 
no matter how small, it gets to a certain point, and simply hangs. Here's the kicker 
though: When I use Linux Netscape as the client, this happens. When I use any Mac 
based email client, it's still abnormally slow, but it doesn't hang. Eventually it 
goes. I've determined that it's not a network problem, as I can download mail with 
attachments with no problems. I can also upload files via scp at a normal 10Mbps 
network rate.

This is the command line used to start the smtp server:

/usr/local/bin/tcpserver -x /etc/tcp.smtp.cdb -u 401 -g 417 0 smtp 
/var/qmail/bin/qmail-smtpd

Anyone have any insights? Thanks in advance.

--

Daniel Ceregatti

Systems and Technology Manager
Kick Media Corporation
(310)280-5421
(310)280-5440 Fax







On Wed, Aug 30, 2000 at 10:23:36AM -0700, Daniel Ceregatti wrote:
> Howdy,
> 
> I've sent this problem to the list once before and never got any responses that 
>helped, so I'm trying again.
> 
> Whenever I send an email (To my Linux server running qmail-ldap) with an attachment, 
>no matter how small, it gets to a certain point, and simply hangs. Here's the kicker 
>though: When I use Linux Netscape as the client, this happens. When I use any Mac 
>based email client, it's still abnormally slow, but it doesn't hang. Eventually it 
>goes. I've determined that it's not a network problem, as I can download mail with 
>attachments with no problems. I can also upload files via scp at a normal 10Mbps 
>network rate.

What do the logs say? Does this happen when you send a really long
message without attachments through qmail?

PGP signature





It's a MUA problem. Mails with attachments are still normal ascii mails. It
completely indifferent to the MTA (unless that MTA looks at the body. Do
you have some kind of filter, virus scanner, etc?)

RC

On Wed, Aug 30, 2000 at 10:23:36AM -0700, Daniel Ceregatti wrote:
> Howdy,
> 
> I've sent this problem to the list once before and never got any responses that 
>helped, so I'm trying again.
> 
> Whenever I send an email (To my Linux server running qmail-ldap) with an attachment, 
>no matter how small, it gets to a certain point, and simply hangs. Here's the kicker 
>though: When I use Linux Netscape as the client, this happens. When I use any Mac 
>based email client, it's still abnormally slow, but it doesn't hang. Eventually it 
>goes. I've determined that it's not a network problem, as I can download mail with 
>attachments with no problems. I can also upload files via scp at a normal 10Mbps 
>network rate.
> 
> This is the command line used to start the smtp server:
> 
> /usr/local/bin/tcpserver -x /etc/tcp.smtp.cdb -u 401 -g 417 0 smtp 
>/var/qmail/bin/qmail-smtpd
> 
> Anyone have any insights? Thanks in advance.
> 
> --
> 
> Daniel Ceregatti
> 
> Systems and Technology Manager
> Kick Media Corporation
> (310)280-5421
> (310)280-5440 Fax
> 
> 
> 

-- 
+-------------------
| Ricardo Cerqueira  
| PGP Key fingerprint  -  B7 05 13 CE 48 0A BF 1E  87 21 83 DB 28 DE 03 42 
| Novis  -  Engenharia ISP / Rede Técnica 
| Pç. Duque Saldanha, 1, 7º E / 1050-094 Lisboa / Portugal
| Tel: +351 21 0100000 - Fax: +351 21 0100001

PGP signature





Yes, I forgot to mention that I have Amavis scanning the emails for virii. But Amavis 
basically boils down to renaming qmail-remote and qmail-local to qmail-remote-real and 
qmail-local-real, respectively, and linking the Amavis virus scanner program to 
qmail-local and qmail-remote. I have conducted tests where I've removed these links 
and renamed the files back to their original names then restarted qmail, and this has 
not solved the problem. Since I did not do the original installation of qmail on this 
machine, I'm not aware of any other filters.

Also, the logs don't show anything out of the ordinary. I'm looking through 
/var/log/maillog. Is there some other log file that might help? I'm somewhat new to 
qmail. Where would I look for other filters?

Thanks

Ricardo Cerqueira wrote:

> It's a MUA problem. Mails with attachments are still normal ascii mails. It
> completely indifferent to the MTA (unless that MTA looks at the body. Do
> you have some kind of filter, virus scanner, etc?)
>
> RC
>
> On Wed, Aug 30, 2000 at 10:23:36AM -0700, Daniel Ceregatti wrote:
> > Howdy,
> >
> > I've sent this problem to the list once before and never got any responses that 
>helped, so I'm trying again.
> >
> > Whenever I send an email (To my Linux server running qmail-ldap) with an 
>attachment, no matter how small, it gets to a certain point, and simply hangs. Here's 
>the kicker though: When I use Linux Netscape as the client, this happens. When I use 
>any Mac based email client, it's still abnormally slow, but it doesn't hang. 
>Eventually it goes. I've determined that it's not a network problem, as I can 
>download mail with attachments with no problems. I can also upload files via scp at a 
>normal 10Mbps network rate.
> >
> > This is the command line used to start the smtp server:
> >
> > /usr/local/bin/tcpserver -x /etc/tcp.smtp.cdb -u 401 -g 417 0 smtp 
>/var/qmail/bin/qmail-smtpd
> >
> > Anyone have any insights? Thanks in advance.
> >
> > --
> >
> > Daniel Ceregatti
> >
> > Systems and Technology Manager
> > Kick Media Corporation
> > (310)280-5421
> > (310)280-5440 Fax
> >
> >
> >
>
> --
> +-------------------
> | Ricardo Cerqueira
> | PGP Key fingerprint  -  B7 05 13 CE 48 0A BF 1E  87 21 83 DB 28 DE 03 42
> | Novis  -  Engenharia ISP / Rede Técnica
> | Pç. Duque Saldanha, 1, 7º E / 1050-094 Lisboa / Portugal
> | Tel: +351 21 0100000 - Fax: +351 21 0100001
>
>                                                   
>-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>    Part 1.2Type: application/pgp-signature

--

Daniel Ceregatti

Systems and Technology Manager
Kick Media Corporation
(310)280-5421
(310)280-5440 Fax







This seems to happen to emails with large messages and no attachments as well. The 
logs say nothing.

Alexander Pennace wrote:

> On Wed, Aug 30, 2000 at 10:23:36AM -0700, Daniel Ceregatti wrote:
> > Howdy,
> >
> > I've sent this problem to the list once before and never got any responses that 
>helped, so I'm trying again.
> >
> > Whenever I send an email (To my Linux server running qmail-ldap) with an 
>attachment, no matter how small, it gets to a certain point, and simply hangs. Here's 
>the kicker though: When I use Linux Netscape as the client, this happens. When I use 
>any Mac based email client, it's still abnormally slow, but it doesn't hang. 
>Eventually it goes. I've determined that it's not a network problem, as I can 
>download mail with attachments with no problems. I can also upload files via scp at a 
>normal 10Mbps network rate.
>
> What do the logs say? Does this happen when you send a really long
> message without attachments through qmail?
>
>                                                   
>-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>    Part 1.2Type: application/pgp-signature

--

Daniel Ceregatti

Systems and Technology Manager
Kick Media Corporation
(310)280-5421
(310)280-5440 Fax







-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

following the current debate, could anyone please give a simple 
true/false to each of the following questions (and, hopefully, point 
out the right manpage)? Some are trivial, some I could not find.

1. Matching a username, qmail-local smashes the case to lower.
1a. Consequence or 1: BoB never gets mail.
2. Matching an extension, qmail-local smashes the case to lower.
2a. Consequence: .qmail-ExTension is useless.
3. $DEFAULT contains the string as typed by sender, not the 
lowercased version.
4. Dtto for $EXT, $EXT2 etc.
5. Dtto for $HOST, $HOST2 etc.
5. Dtto for $LOCAL.


Anyone?

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.2 -- QDPGP 2.61a
Comment: http://community.wow.net/grt/qdpgp.html

iQA/AwUBOa02xlMwP8g7qbw/EQJrIQCdH9qbjGeORBqm8Yb1lnuLmVhMy04AoNcg
GUoy1C8DdSvOf8pIVap9/gzd
=aUYw
-----END PGP SIGNATURE-----
--
Petr Novotny, ANTEK CS
[EMAIL PROTECTED]
http://www.antek.cz
PGP key ID: 0x3BA9BC3F
-- Don't you know there ain't no devil there's just God when he's drunk.
                                                             [Tom Waits]




On Wed, Aug 30, 2000 at 07:31:01PM +0200, Petr Novotny wrote:
> following the current debate, could anyone please give a simple 
> true/false to each of the following questions (and, hopefully, point 
> out the right manpage)? Some are trivial, some I could not find.
> 
> 1. Matching a username, qmail-local smashes the case to lower.

True.

> 1a. Consequence or 1: BoB never gets mail.

True, but many Internet users assume that email addresses are case
insensitive. BoB might have mail problems in any case.

PGP signature






Qmailers:

I have the following in my /var/qmail/etc/.qmail-default file:
(all on one line)

| RESPONSE=`/var/qmail/bin/fastforward -nd /etc/aliases.cdb`;
STRING='Sorry, no mailbox here by that name. (#5.1.1)';
if [ $RESPONSE = $STRING ];
then /var/qmail/bin/forward "$EXT"~"$HOST"@smtp.bigmaildomain.com;
else /var/qmail/bin/fastforward -d /etc/aliases.cdb; fi

I am getting the following error message in /var/log/syslog

Aug 30 10:38:44 smtp01.load.com qmail: [ID 748625 mail.info]
967657124.271047 starting delivery 1: msg 972173 to local
[EMAIL PROTECTED]
Aug 30 10:38:44 smtp01.load.com qmail: [ID 748625 mail.info]
967657124.273059 status: local 1/10 remote 0/20
Aug 30 10:38:44 smtp01.load.com qmail: [ID 748625 mail.info]
967657124.328453 delivery 1: deferral:
Sorry,_no_mailbox_here_by_that_name._(#5.1.1)//bin/sh:_test:_unknown_operato
r_Sorry,/

Now I have an /etc/aliases.cdb file which does not contain the email
address: [EMAIL PROTECTED]
and I want to check if it will be able to be passed through to a default
forward line.

The reason for this is that it seems that using fastforward with
/etc/aliases.cdb and virtualdomains are kind
of mutually exclusive. The virtualdomains file gets processed before any
check of the /etc/aliases.cdb file is
performed thus bypassing fastforward. And if there are several (100's) of
emails which don't stay local, then
I have hundreds of .qmail files for the exceptions.... seems to me that
would be very inefficient.

Here is an example of my environment:

I have some very fast front-end smtp (qmail) systems that receive mail to be
either forwarded to an external
email address or forwarded to an internal email database. So....

Say I have a virtual domain: virtdom.com and most mail gets delivered
internally and forwarded to the mail database
system in the format of username~[EMAIL PROTECTED] and some
other emails get forwarded via an aliases file to an external email address.
Would the above .qmail-default file work if correctly formatted.

Thanks.

-- Specializing in computer and network consulting...

Timothy Lorenc          USmail:  Lorenc Advantage, Inc.
Consultant/President             6732 E. State Blvd.
                                 PMB 304
Email: [EMAIL PROTECTED]              Fort Wayne, IN  46815-7762





On Wed, Aug 30, 2000 at 01:13:20PM -0500, Timothy Lorenc wrote:
> 
> Qmailers:
> 
> I have the following in my /var/qmail/etc/.qmail-default file:
> (all on one line)
> 
> | RESPONSE=`/var/qmail/bin/fastforward -nd /etc/aliases.cdb`;
> STRING='Sorry, no mailbox here by that name. (#5.1.1)';
> if [ $RESPONSE = $STRING ];
> then /var/qmail/bin/forward "$EXT"~"$HOST"@smtp.bigmaildomain.com;
> else /var/qmail/bin/fastforward -d /etc/aliases.cdb; fi

Put the $RESPONSE and $STRING in quotes. Also note that if fastforward
is sending the error on standard error it might not be caught.

PGP signature





"Timothy Lorenc" <[EMAIL PROTECTED]> wrote:

>Now I have an /etc/aliases.cdb file which does not contain the email
>address: [EMAIL PROTECTED]
>and I want to check if it will be able to be passed through to a default
>forward line.
>
>The reason for this is that it seems that using fastforward with
>/etc/aliases.cdb and virtualdomains are kind
>of mutually exclusive. The virtualdomains file gets processed before any
>check of the /etc/aliases.cdb file is
>performed thus bypassing fastforward. And if there are several (100's) of
>emails which don't stay local, then
>I have hundreds of .qmail files for the exceptions.... seems to me that
>would be very inefficient.

Yeah, it would. So why not handle them in /etc/aliases? Did you catch
the part in the ALIASES file that describes how to do that? Or am I
missing something?

-Dave




On Sat, Aug 26, 2000 at 11:59:17PM +1200, Chris, the Young One wrote:
> 
> Did you change MAIL_DIR , or QMAIL_DIR ? If MAIL_DIR, then the solution
> is obvious (change QMAIL_DIR instead). Otherwise, well... you might want
> to upgrade your login program.

I changed both MAIL_DIR and QMAIL_DIR to Maildir and still nothing.
What do you mean by saying "upgrade login program"? Upgrade it to what?
And how am I to know what login program I have now?
> 
> Note that this does not mean your shell will support Maildir folders, so
> don't expect notification from the shell when new mail arrives. If you
> want that functionality, use qbiff.
> 
What is qbiff? 
Thank you 4 help.
qba




Quoted from [EMAIL PROTECTED]:
> I changed both MAIL_DIR and QMAIL_DIR to Maildir and still nothing.
> What do you mean by saying "upgrade login program"? Upgrade it to what?
> And how am I to know what login program I have now?

I presume you're dealing with some sort of Linux distribution here.
A Linux distribution is built up of many separate components, so that
each component is developed on its own. So, it doesn't surprise me that
there may be newer versions of the login program around.

The login program is in a package called ``shadow'', unless you use
Debian, in which case I think it's called ``login''.

Which distribution (e.g., Debian, Red Hat, SuSE, &c) do you use?

> What is qbiff? 

See qbiff(1). In short, it's a program you invoke in a .qmail file to
notify you whenever you get a new message.

        ---Chris K.
-- 
 Chris, the Young One |_ but what's a dropped message between friends? 
  Auckland, New Zealand |_ this is UDP, not TCP after all ;) ---John H. 
http://cloud9.hedgee.com/ |_ Robinson, IV  





Thanks to:

Alexander Pennace
Petr Novotny

They both stated:

> if [ $RESPONSE = $STRING ];

Make this "$RESPONSE" = "$STRING" and try again.

And Alexander noted:

Also note that if fastforward is sending the error on standard error it
might not be caught.

So my final .qmail-default contents are: (ALL ON ONE LINE)

| RESPONSE=`/var/qmail/bin/fastforward -nd /etc/aliases.cdb 2>&1`;
STRING='Sorry, no mailbox here by that name. (#5.1.1)';
if [ "$RESPONSE" = "$STRING" ];
then /var/qmail/bin/forward "$EXT"~"$HOST"@smtp.loadmail.com;
else /var/qmail/bin/fastforward -d /etc/aliases.cdb; fi

I tested it and it works great!

Thanks for all your help


-----Original Message-----
From: Timothy Lorenc [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 30, 2000 1:13 PM
To: qmail
Subject: .qmail-default contents incorrect



Qmailers:

I have the following in my /var/qmail/etc/.qmail-default file:
(all on one line)

| RESPONSE=`/var/qmail/bin/fastforward -nd /etc/aliases.cdb`;
STRING='Sorry, no mailbox here by that name. (#5.1.1)';
if [ $RESPONSE = $STRING ];
then /var/qmail/bin/forward "$EXT"~"$HOST"@smtp.bigmaildomain.com;
else /var/qmail/bin/fastforward -d /etc/aliases.cdb; fi

I am getting the following error message in /var/log/syslog

Aug 30 10:38:44 smtp01.load.com qmail: [ID 748625 mail.info]
967657124.271047 starting delivery 1: msg 972173 to local
[EMAIL PROTECTED]
Aug 30 10:38:44 smtp01.load.com qmail: [ID 748625 mail.info]
967657124.273059 status: local 1/10 remote 0/20
Aug 30 10:38:44 smtp01.load.com qmail: [ID 748625 mail.info]
967657124.328453 delivery 1: deferral:
Sorry,_no_mailbox_here_by_that_name._(#5.1.1)//bin/sh:_test:_unknown_operato
r_Sorry,/

Now I have an /etc/aliases.cdb file which does not contain the email
address: [EMAIL PROTECTED]
and I want to check if it will be able to be passed through to a default
forward line.

The reason for this is that it seems that using fastforward with
/etc/aliases.cdb and virtualdomains are kind
of mutually exclusive. The virtualdomains file gets processed before any
check of the /etc/aliases.cdb file is
performed thus bypassing fastforward. And if there are several (100's) of
emails which don't stay local, then
I have hundreds of .qmail files for the exceptions.... seems to me that
would be very inefficient.

Here is an example of my environment:

I have some very fast front-end smtp (qmail) systems that receive mail to be
either forwarded to an external
email address or forwarded to an internal email database. So....

Say I have a virtual domain: virtdom.com and most mail gets delivered
internally and forwarded to the mail database
system in the format of username~[EMAIL PROTECTED] and some
other emails get forwarded via an aliases file to an external email address.
Would the above .qmail-default file work if correctly formatted.

Thanks.

-- Specializing in computer and network consulting...

Timothy Lorenc          USmail:  Lorenc Advantage, Inc.
Consultant/President             6732 E. State Blvd.
                                 PMB 304
Email: [EMAIL PROTECTED]              Fort Wayne, IN  46815-7762







Any had implemented qmail-qfilter sucefully or any qmail-queue wrapper ?

RDA.-




On Wed, 30 Aug 2000, Ricardo Albano wrote:

> Any had implemented qmail-qfilter sucefully or any qmail-queue wrapper ?
> 
> RDA.-
> 

I have a generic qmail-queue-wrapper program. It's written in perl and
in its standard form, does nothing but add another Received header to
the message before calling the real qmail-queue. If you can program in
perl you can get it to do whatever you want. I'm using it to do header
rewrites at one site.

It should be installed with no special permissions

    -rwx--x--x qmailq qmail /var/qmail/bin/qmail-queue

Program is attached.

You can also have a look at Jason Haar's scan4virus program. It too is
a perl qmail-queue-wrapper. Details at www.qmail.org.

-- 
Regards
Peter
----------
Peter Samuel                            [EMAIL PROTECTED]
http://www.e-smith.org (development)    http://www.e-smith.com (corporate)
Phone: +1 613 368 4398                  Fax: +1 613 564 7739
e-smith, inc. 1500-150 Metcalfe St, Ottawa, ON K2P 1P1 Canada

"If you kill all your unhappy customers, you'll only have happy ones left"
#!/pkgs/bin/perl -w
#
# $Id: qmail-queue-wrapper.pl,v 1.1 2000/05/31 07:20:37 psamuel Exp $
#
# qmail-queue wrapper program.
#
# This program should be used when you wish to manipulate a mail
# message BEFORE it is placed in the queue. Possible uses include:
#
#    - header rewriting
#    - Firstname.Lastname replacements
#    - virus scanning
#    - anything else you can think of
#
# There are at least 2 ways of using this program:
#
#    1) Replace the original qmail-queue with this program:
#
#       mv /var/qmail/bin/qmail-queue /var/qmail/bin/qmail-queue.orig
#       cp qmail-queue-wrapper /var/qmail/bin/qmail-queue
#
#    Change the value of $qmailqueue below, to reflect the new name of
#    the original qmail-queue program. For example
#
#       my $qmailqueue = "/var/qmail/bin/qmail-queue.orig";
#
#    2) Recompile qmail with Bruce Guenter's QMAILQUEUE patch. (See
#    http://www.qmail.org/qmailqueue-patch). Then any program that
#    needs to use this program can be called with the environment
#    variable QMAILQUEUE set to /var/qmail/bin/qmail-queue-wrapper
#
# How does it work? The interface to the real qmail-queue is simple:
#
#     - the body of the message is read from file descriptor 0
#     - the envelope details are read from file descriptor 1.
#
# qmail-queue-wrapper also adheres to the same interface. After doing
# whatever manipulations are necessary, it calls the real qmail-queue
# and provides the message body on file descriptor 0 and the envelope
# details on file descriptor 1.
#
# Exit codes conform to those mentioned in the qmail-queue(8) manual page.
#
###########################################################################

require 5;
use strict;

my $child;
my $debug = 0;
my $envelope;
my %errors;
my @months;
my $new_received_header;
my $qmailqueue = "/var/qmail/bin/qmail-queue.orig";
my @recipients;
my $sender;

###########################################################################

&initialise();

if ($child = fork())
{
    # Parent

    my $timeout = 86400;                # See qmail-queue.c, line 20

    alarm($timeout);

    &fatal(82) unless close MESSAGE_READER;
    &fatal(82) unless close ENVELOPE_READER;

    &process_message();
    &process_envelope();

    # Wait for the child to terminate

    waitpid($child, 0);

    # Return with the exit status of the child

    exit($? % 255);
}
elsif (defined $child)
{
    # Child

    &fatal(82) unless close MESSAGE_WRITER;
    &fatal(82) unless close ENVELOPE_WRITER;

    &fatal(82) unless defined open(STDIN, "<&MESSAGE_READER");
    &fatal(82) unless defined open(STDOUT, "<&ENVELOPE_READER");

    if ($debug)
    {
        &debug_message("$$: Reading message from STDIN\n\n");

        while (<STDIN>)
        {
            &debug_message("$$: $_");
        }

        &fatal(82) unless close MESSAGE_READER;

        &debug_message("\n$$: ####################\n\n");
        &debug_message("$$: Reading envelope from STDOUT\n");

        while (<ENVELOPE_READER>)
        {
            s/\0/ /g;
            &debug_message("$$: $_\n");
        }

        &fatal(82) unless close ENVELOPE_READER;

        exit(0);
    }
    else
    {
        unless (exec $qmailqueue)
        {
            # We shouldn't be here unless the exec failed

            &fatal(82);
        }
    }
}
else
{
    # Unable to fork

    &fatal(82);
}

###########################################################################

sub initialise
{
    &prepare_months();
    &prepare_error_messages();
    &ignore_signals();
    &catch_signals();
    &generate_new_received_header();
    &setup_pipes();
}

sub prepare_months
{
    @months = (
        "Jan",  "Feb",  "Mar",  "Apr",
        "May",  "Jun",  "Jul",  "Aug",
        "Sep",  "Oct",  "Nov",  "Dec",
    );
}

sub prepare_error_messages
{
    # These are the exit codes and their meanings, as defined by the
    # real qmail-queue manual page. Many are not used by either the
    # real qmail-queue or this wrapper program.

    %errors = (
        11      =>      "Address too long",

        31      =>      "Mail server permanently refuses to send " .
                        "the message to any recipients",

                        # Not used by qmail-queue, but can be used by
                        # programs offering the same interface

        51      =>      "Out of memory",

        52      =>      "Timeout",

        53      =>      "Write error; e.g., disk full",

        54      =>      "Unable to read the message or envelope",

        55      =>      "Unable to read a configuration file",

                        # Not used by qmail-queue

        56      =>      "Problem making a network connection from this host",

                        # Not used by qmail-queue

        61      =>      "Problem with the qmail home directory",

        62      =>      "Problem with the queue directory",

        63      =>      "Problem with queue/pid",

        64      =>      "Problem with queue/mess",

        65      =>      "Problem with queue/intd",

        66      =>      "Problem with queue/todo",

        71      =>      "Mail server temporarily refuses to send " .
                        "the message to any recipients",

                        # Not used by qmail-queue

        72      =>      "Connection to mail server timed out",

                        # Not used by qmail-queue

        73      =>      "Connection to mail server rejected",

                        # Not used by qmail-queue

        74      =>      "Connection to mail server succeeded, but " .
                        "communication failed",

                        # Not used by qmail-queue

        81      =>      "Internal bug; e.g., segmentation fault",

        82      =>      "System resource problem",

                        # Undefined in qmail-queue. Specific to this
                        # wrapper program.

        91      =>      "Envelope format error",
    );
}

sub ignore_signals
{
    # The real qmail-queue ignores a bunch of signals, so we will too.

    # Ensure all signals are not being blocked.

    foreach (keys %SIG)
    {
        $SIG{$_} = 'DEFAULT';
    }

    # Ignore those signals that the real qmail-queue ignores.

    $SIG{'PIPE'}   = 'IGNORE';
    $SIG{'VTALRM'} = 'IGNORE';
    $SIG{'PROF'}   = 'IGNORE';
    $SIG{'QUIT'}   = 'IGNORE';
    $SIG{'INT'}    = 'IGNORE';
    $SIG{'HUP'}    = 'IGNORE';
    $SIG{'XCPU'}   = 'IGNORE' if (defined $SIG{'XCPU'});
    $SIG{'XFSZ'}   = 'IGNORE' if (defined $SIG{'XFSZ'});
}

sub catch_signals
{
    # The real qmail-queue catches a few signals, so we will too.

    $SIG{'ALRM'} = \&timeout;

    $SIG{'ILL'}  = \&internal_bug;
    $SIG{'ABRT'} = \&internal_bug;
    $SIG{'FPE'}  = \&internal_bug;
    $SIG{'BUS'}  = \&internal_bug;
    $SIG{'SEGV'} = \&internal_bug;
    $SIG{'SYS'}  = \&internal_bug if (defined $SIG{'SYS'});
    $SIG{'EMT'}  = \&internal_bug if (defined $SIG{'EMT'});
}

sub timeout
{
    &fatal(52);
}

sub internal_bug
{
    &fatal(81);
}

sub generate_new_received_header
{
    # Generate a Received: header of the form:
    # Received: (qmail 28672 invoked by alias); 16 Feb 2000 03:49:51 -0000

    my @user = getpwuid($<);
    my @date = gmtime();

    my $user;

    if ($user[0] eq "alias")
    {
        $user = "by alias";
    }
    elsif ($user[0] eq "qmaild")
    {
        $user = "from network";
    }
    elsif ($user[0] eq "qmails")
    {
        $user = "for bounce";
    }
    elsif (scalar @user == 0)
    {
        # This should never happen - ie the real user id should
        # always have a password entry.

        $user = "by uid $<";
    }
    else
    {
        $user = "by uid $user[2]";
    }

    $date[5] += 1900;

    my $date = "$date[3] $months[$date[4]] $date[5]";
    my $time = sprintf("%02d:%02d:%02d", $date[2], $date[1], $date[0]);

    $new_received_header =
        "Received: (qmail-queue-wrapper $$ invoked $user); $date $time -0000";
}

sub setup_pipes
{
    &fatal(82) unless pipe(MESSAGE_READER, MESSAGE_WRITER);
    &fatal(82) unless pipe(ENVELOPE_READER, ENVELOPE_WRITER);
    select(MESSAGE_WRITER); $| = 1;
    select(ENVELOPE_WRITER); $| = 1;
}

sub debug_message
{
    my ($message) = @_;

    print STDERR "$message";
}

sub fatal
{
    my ($errno) = @_;

    &debug_message("$errors{$errno}\n") if $debug;
    exit($errno);
}

sub process_message
{
    # If you plan on doing serious massaging of the message body, such
    # as virus scanning or MIME conversions, you should probably write
    # the message to a temporary file here. Once you have finished your
    # massaging you can read from the file. You could slurp the message
    # into memory but that may be a resource problem for you. Caveat
    # emptor!

    print MESSAGE_WRITER "$new_received_header\n";

    while (<STDIN>)
    {
        print MESSAGE_WRITER;
    }

    &fatal(82) unless close MESSAGE_WRITER;
}

sub process_envelope
{
    &read_envelope();

    # If you don't want to do any rigourous checking of the envelope,
    # simply comment out the &check_envelope() statement. The real
    # qmail-queue will perform the same checks anyway.

    &check_envelope();

    &close_envelope();
    print ENVELOPE_WRITER "$envelope";
    &fatal(82) unless close ENVELOPE_WRITER;
}

sub read_envelope
{
    # Read the message envelope from file descriptor 1. At startup this is
    # already assigned to the Perl filehandle STDOUT.

    # Duplicate file descriptor 1 for reading

    &fatal(54) unless defined open(DUP_STDOUT, "<&STDOUT");

    # Extract the envelope details. The stripping of the leading 'F'
    # and 'T' characters will be performed later.

    $envelope = <DUP_STDOUT>;
}

sub check_envelope
{
    # There MUST be some envelope details.

    &fatal(54) unless defined $envelope;

    # The envelope details MUST be terminated by two NULLS.

    &fatal(54) if ($envelope !~ /\0\0$/);

    ($sender, @recipients) = split(/\0/, $envelope);

    # If there are no recipients, we should exit here. However, the
    # real qmail-queue will quite happily accept messages with no
    # recipients, so we will too.

    # The sender address MUST begin with an 'F' and the recipient
    # address(es) MUST begin with a 'T'.

    &fatal(91) if ($sender !~ /^F/);

    foreach (@recipients)
    {
        &fatal(91) if ($_ !~ /^T/);
    }

    # None of the addresses may be greater than $address_length
    # characters. (Remember that each address has an extra leading
    # character at this stage, so it's just a "greater than" test,
    # rather than a "greater than or equal to" test).

    my $address_length = 1003;          # See qmail-queue.c, line 21

    foreach ($sender, @recipients)
    {
        &fatal(11) if (length($_) > $address_length);
    }

    # The sender AND recipient address(es) should contain a username,
    # an @ sign and a fully qualified domain name. However, the real
    # qmail-queue does not enforce this, so we won't either.
}

sub close_envelope
{
    # Close duplicated STDOUT

    &fatal(54) unless close DUP_STDOUT;
}





Hi Folks;

Where can I locate the detailed log/SMTP transaction record for a mail
that was delevered to my mail server (qmail-1.03)?
Need to track the sender by IP address

Thanks 

Dan




Receipt IP info is found in the message headers.

David

> -----Original Message-----
> From: net admin [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 30, 2000 1:13 PM
> To: [EMAIL PROTECTED]
> Subject: Detailed log for SMTP transaction
> 
> 
> 
> Hi Folks;
> 
> Where can I locate the detailed log/SMTP transaction record for a mail
> that was delevered to my mail server (qmail-1.03)?
> Need to track the sender by IP address
> 
> Thanks 
> 
> Dan
> 




Hello all.
I have a strange problem.
I fiddled around with my qmail, and sent a message to a local domain, but the user doesnt exist, and i get a lot of deferal unable to change to mailbox errors!!
 
my question is: how can i delete this message from the quere?? i guess its a simple FAQ, but i cant seem to find it.
i see it when i type qmail-qstat i get:
messages in queue: 1
messages in queue but not yet preprocessed: 0
when i type qmail-qread i get:
24 Aug 2000 21:19:20 GMT  #669258  1819  <#@[]>
        local   [EMAIL PROTECTED]
i want to delete this message!!!
how can i do this??
 
thanks in advance!!
 




You're not serious are you?

"I fiddled around with qmail".

We're meant to deduce what you did from this?

On Wed, Aug 30, 2000 at 11:42:44PM +0200, çééí äìôøï wrote:
> Hello all.
> I have a strange problem.
> I fiddled around with my qmail, and sent a message to a local domain, but
> the user doesnt exist, and i get a lot of deferal unable to change to
> mailbox errors!!

You show us no logs. We're meant to deduce what qmail is trying to do from this?

> my question is: how can i delete this message from the quere?? i guess its a
> simple FAQ, but i cant seem to find it.

I'll bet you're guessing.

> i see it when i type qmail-qstat i get:
> messages in queue: 1
> messages in queue but not yet preprocessed: 0
> when i type qmail-qread i get:
> 24 Aug 2000 21:19:20 GMT  #669258  1819  <#@[]>
>         local   [EMAIL PROTECTED]

You purposely corrupt the output of this command. We're meant to deduce what is really
in the queue from this?

> i want to delete this message!!!
> how can i do this??

You need to use the -d option on the qmail-fiddle command. Don't forget to run
it from a special place reserved for people who are especially well suited to
using this command.


> thanks in advance!!

The pleasure is all yours.


Regards.





Hi;
I am trying to setup selective relaying for a client who wants to send
email through our Qmail server from his office LAN.
I allowed his office IP block in my /etc/tcp.smtp file as follows

xxx.yyy.zzz.:allow,RELAYCLIENT=""
.
.
.
:allow
This I assume this will let him relay as long as he comes from the IP address
pool above regardles of what his email address is.
But relay fails until I also put his domain in the /control/rcpthosts
file! I don't want everybody in his domain to relay just him.
How to do that?


Thanks 


Dan




Have you rebuilt the tcp.smtp.cdb file? See the cdb) entry in the qmail rc
file in Life With Qmail (links to it in www.qmail.org) for more...

/BR


Manager
InterPlanetary Solutions
http://ipsware.com/





net admin wrote:
> 
> Hi;
> I am trying to setup selective relaying for a client who wants to send
> email through our Qmail server from his office LAN.
> I allowed his office IP block in my /etc/tcp.smtp file as follows
> 
> xxx.yyy.zzz.:allow,RELAYCLIENT=""
> .
> .
> .
> :allow
> This I assume this will let him relay as long as he comes from the IP address
> pool above regardles of what his email address is.
> But relay fails until I also put his domain in the /control/rcpthosts
> file! I don't want everybody in his domain to relay just him.
> How to do that?

You could try a pop before smtp program that you use with qmail.  It
will in real time add and remove (based on a time limit) ip's to the
relay control file for people who have pop accounts your system.  The
way it works is a person would check their mail which involves their
mail client contacting the server's pop daemon.  The pop before smtp
program would let the user get verified and logged in then record their
IP address to the relay file so that when they go to send mail via smtp
it will allow his ip address.  I have it working with Vpopmail (which is
a virtual mail add-on to qmail but also has the above feature) and it
works fine.  Another program which doesn't do virtual mail it just does
the pop before smtp is by Bruce Guenter and can be downloaded and etc
from em.ca/~bruceg/relay-ctrl/  .  I haven't personally tried it but I
have heard it mentioned many times here in the list.
                        Take Care,
-- 

Dale Miracle
System Administrator
Teoi Virtual Web Hosting




Hi Dan,

On Wed, Aug 30, 2000 at 03:16:39PM -0700, net admin wrote:
> I allowed his office IP block in my /etc/tcp.smtp file as follows
> xxx.yyy.zzz.:allow,RELAYCLIENT=""
> This I assume this will let him relay as long as he comes from the IP address
> pool above regardles of what his email address is.

Yes, provided three things are true:
 - the source IP must be in the xxx.yyy.zzz network
 - you have used tcprules to make the rules into the cdb that tcpserver
   uses
 - your tcpserver process was started with the -x option which specifies
   the cdb file you made in the previous step

> But relay fails until I also put his domain in the /control/rcpthosts
> file! I don't want everybody in his domain to relay just him.

rcpthosts lists *destinations* you will accept mail for. Setting
RELAYCLIENT in the environment tells qmail-smtpd to accept mail for any
destination, in that session.


Regards,

james
-- 
James Raftery (JBR54)  -  Programmer Hostmaster  -  IE TLD Hostmaster
   IE Domain Registry  -  www.domainregistry.ie  -  (+353 1) 706 2375
  "Managing 4000 customer domains with BIND has been a lot like
   herding cats." - Mike Batchelor, on [EMAIL PROTECTED]





 I've been refused delievery from the qmail program running (from
inet.d) on my Linux box to a local ISP - the reason being I was sending
from a dialup account with dynamic IP - and mail-abuse.org have decided
that this is a bad thing and that I should use a feature called SMTP
gateways.

 Erm,

 (a) Could someone explain how this works and
 (b) How I get my qmail prog to use this, so I don't get nasty refused
headers from servers.


 Please, go easy on me...I'll need the idiots guide version to doing
this.

I do not have a permanent ppp connection - it is up a few hours per day,
dynamic IP.

 Cheers.

 Baz.
--
Barrie J. Bremner

Email:     [EMAIL PROTECTED]
           (PGP public key available at pgp.mit.edu)

URL:       http://www.geocities.com/thefatenglishman

Telephone: UK 01672 811246
Mobile:    UK 07968 792975

Quis custodiet ipsos custodes?




On Thu, Aug 31, 2000 at 12:08:49AM +0100, Barrie Bremner wrote:

>  I've been refused delievery from the qmail program running (from
>  inet.d) on my Linux box to a local ISP - the reason being I was
>  sending from a dialup account with dynamic IP - and mail-abuse.org
>  have decided that this is a bad thing and that I should use a feature
>  called SMTP gateways.
> 
>  (a) Could someone explain how this works and (b) How I get my qmail
>  prog to use this, so I don't get nasty refused headers from servers.

The easy solution would be to set up your ISPs mail server as a global
smtproute.  Do that by putting a line in /var/qmail/control/smtproutes
that looks like this:

:mail.myisp.com

That will send all outbound mail through that server.

If you want to be a bit more spiffy and set it up to queue outbound
mail, etc. you can use serialmail to do all sorts of neat things:

http://cr.yp.to/serialmail.html

Ben

-- 
Ben Beuchler                                         [EMAIL PROTECTED]
MAILER-DAEMON                                         (612) 321-9290 x101
Bitstream Underground                                   www.bitstream.net




On Thu, Aug 31, 2000 at 12:08:49AM +0100, Barrie Bremner wrote:
> 
>  I've been refused delievery from the qmail program running (from
> inet.d) on my Linux box to a local ISP - the reason being I was sending
> from a dialup account with dynamic IP - and mail-abuse.org have decided
> that this is a bad thing and that I should use a feature called SMTP
> gateways.
> 
>  Erm,
> 
>  (a) Could someone explain how this works and
>  (b) How I get my qmail prog to use this, so I don't get nasty refused
> headers from servers.

Assuming you have access to your ISPs mail server, place this into
/var/qmail/control/smtproutes

:YourISPsmailserver

And all remote deliveries will be sent to YourISPsmailserver which hopefully isn't
in any of those relay lists. 


Regards.




hi..

I've set up a virtual domain, say domain1.
before setting up that virtual domain, I use domain0.
I put domain0 in rcpthosts and virtualdomains.
but when I try to send an e-mail to domain1 from another machine.
 it sent to domain0.

is there anyone can help me with this??

thx in advance.

yusuf





Look at vpopmail

http://www.inter7.com/vpopmail/

It's the perfect utility to set up vdomains...

I would first erase any files you started messing around with. Reset them
back to orignal state and then install.. It's almost tooooo simple 

On 31-Aug-2000 Muhammad Yusuf wrote:
> hi..
> 
> I've set up a virtual domain, say domain1.
> before setting up that virtual domain, I use domain0.
> I put domain0 in rcpthosts and virtualdomains.
> but when I try to send an e-mail to domain1 from another machine.
>  it sent to domain0.
> 
> is there anyone can help me with this??
> 
> thx in advance.
> 
> yusuf



--
Jason J. Czerak ([EMAIL PROTECTED])
  Linux Systems Evangelist
  
Jasnik Services, LLC
  http://www.Jasnik.net





I have a QMAIL-alias problem.  Can you please show me the way?

Thanks!

QMAIL Problem Summary
I am attempting to setup the postmaster alias, and as the FAQ of the site
http://www.flounder.net/qmail/qmail-howto.html instructs me, I have done.

Following is the contents of the ~alias/.qmail-postmaster script:

john.doe.jr

In the users/assign file, there is an entry:

=<organization>-<com>-john.doe.jr:pop3ctrl:508:503:/popboxes/organization/do
ej2

When I attempt to send EMAIL to the postmaster account, I receive the
dreaded 'no mailbox here...' message as a return EMAIL.

I can send and receive EMAIL from the john.doe.jr account.

The ~alias directory has the following attribs:

drwxr-sr-x     2     alias   qmail     4096    June 22  12:12   alias/

And the .qmail-postmaster file has the following attribs:

-rw-rw-r--      1     alias   qmail     8     Aug 24  05:33
.qmail-postmaster

I am using ./Maildir/

***

I have searched the Archive for someone else that may have had a similar
problem, and so far, I found one thread that was close.

Thread Title:  .qmail-USER fails

In this thread dated 5 March, 1998, instructions were given to the reader to
complete the following test:

/var/qmail/bin/qmail-getpw postmaster | tr '\0' '\012'

The output that I received was:

alias
501
501
/var/qmail/alias
-
postmaster


***

Can you please help?

Thanks!

Tom Sarratt






Hi folks!

  I would like to know how can I make the address '[EMAIL PROTECTED]'
local and to be delivered to the user joe(@localhost).
 I've tried this config:

/users/assign
[EMAIL PROTECTED]:joe:503:78:/home/joe:::

/control/locals
[..]
yahoo.com
# silly ain't it?

/control/rcpthosts
[..]
yahoo.com

/control/virtualdomains
fixme:fixup
:alias-ppp

I don't run a dns server.

This way joe gets the message but all the yahoo can't be local, right ;)
Any help would be greatly appreciated.

Thanks for your time,
        Peter

BTW I would like to congratulate the person who wrote LWQ. It's the best
doc I've ever read.





Pete,

The only way your gonna achieve this is to contact YAHOO (probably at the
home page), and set up a dot forward function on that mail account.  This
will instruct Yahoo to forward the messages bound for [EMAIL PROTECTED] to
another mail account (which you will specify).

Configuring QMAIL as you are attempting to do will have no effect.  DO NOT
attempt to research and configure a DNS to approach this problem.
Attempting to "masquerade" as YAHOO.COM will get you in a heap of trouble,
not to mention cause a lot of trouble on the internet.

Regards,
Tom

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Petre Rodan
Sent: Wednesday, August 30, 2000 11:27 PM
To: [EMAIL PROTECTED]
Subject: partially local



Hi folks!

  I would like to know how can I make the address '[EMAIL PROTECTED]'
local and to be delivered to the user joe(@localhost).
 I've tried this config:

/users/assign
[EMAIL PROTECTED]:joe:503:78:/home/joe:::

/control/locals
[..]
yahoo.com
# silly ain't it?

/control/rcpthosts
[..]
yahoo.com

/control/virtualdomains
fixme:fixup
:alias-ppp

I don't run a dns server.

This way joe gets the message but all the yahoo can't be local, right ;)
Any help would be greatly appreciated.

Thanks for your time,
        Peter

BTW I would like to congratulate the person who wrote LWQ. It's the best
doc I've ever read.






Something I have not noticed in many years has started the last few weeks.

Qmail has been getting very slow at responding. I also noticed in the logs
that it is handling a lot of email that can't be returned(spam.)

Is there a way to clear out the old mail if this is the cause.

Customers have been receiving a lot of errors that the server has not
responded in 60 seconds do they want to wait or stop.

Thanks
Bob Ross


Thanks
Bob Ross





Hi Bob, People told me that possible causes are ident service (port 113)
closed on somewhat firewall, and tcpserver could be run without
hostname-lookups, qmail is getting faster by that. actually, after having
eliminated these things, you'll remark that not the POP-Service but
qmail-smtpd is the task that takes long for authorizing. But I still have no
solution for that.

Stef
----- Original Message -----
From: "Bob Ross" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 31, 2000 8:00 AM
Subject: Qmail 1.03


> Something I have not noticed in many years has started the last few weeks.
>
> Qmail has been getting very slow at responding. I also noticed in the logs
> that it is handling a lot of email that can't be returned(spam.)
>
> Is there a way to clear out the old mail if this is the cause.
>
> Customers have been receiving a lot of errors that the server has not
> responded in 60 seconds do they want to wait or stop.
>
> Thanks
> Bob Ross
>
>
> Thanks
> Bob Ross
>





On Wed, 30 Aug 2000, Bob Ross wrote:

> Something I have not noticed in many years has started the last few weeks.
> 
> Qmail has been getting very slow at responding. I also noticed in the logs
> that it is handling a lot of email that can't be returned(spam.)
> 
> Is there a way to clear out the old mail if this is the cause.
> 
> Customers have been receiving a lot of errors that the server has not
> responded in 60 seconds do they want to wait or stop.

Make sure your reverse DNS lookups are working.  We had the same thing
earlier in the week.

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







 
   hello friends 


     what does "clustered qmail solution " mean , i have sen this term many
times on this list but didt know any thing about it , i am suppose to
implement qmail solution to send and receive millions of mails a day  ,so
it may ne useful to me , 

  so , please tell me what do exactly it mean ?

thanks 
Prashant Desai








Is it legal to use the ip address in smtproutes, somthing like:

    :123:234:123:234

        Thanks,

        John

-- 

John Conover        Tel. 408.370.2688  [EMAIL PROTECTED]
631 Lamont Ct.      Cel. 408.772.7733
Campbell, CA 95008  Fax. 408.379.9602  http://www.johncon.com





try

:[123.234.123.234]

-----Original Message-----
From: John Conover [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 31 August 2000 4:36 PM
To: [EMAIL PROTECTED]
Subject: smtproutes syntax



Is it legal to use the ip address in smtproutes, somthing like:

    :123:234:123:234

        Thanks,

        John

-- 

John Conover        Tel. 408.370.2688  [EMAIL PROTECTED]
631 Lamont Ct.      Cel. 408.772.7733
Campbell, CA 95008  Fax. 408.379.9602  http://www.johncon.com





Hello,


I've a strange problem to submit...
I installed qmail on my linux server with pop-3 (using
cdb-0.55, checkcdb and checkpassword-0.81).
It worked fine until now...
I just installed a tacacs server on the same server,
and now, users cannot get their mail via pop-3.
I know it could be tacacs, but what can I do ???
I already reinstall the pop packages, no success.
I tryed this (according INSTALL file)

[root@xxx checkpassword-0.81]#
/var/qmail/bin/qmail-popup xxx /bin/checkpassword pwd
+OK <3195.967655569@xxx>
user avaliduser
+OK
pass hispass
-ERR authorization failed       


Somebody can help ?

Many thanks,

Mike.



___________________________________________________________
Do You Yahoo!?
Achetez, vendez! À votre prix! Sur http://encheres.yahoo.fr




 




Hi,
my trouble with qmail is that I can't telnet port 110 (connection refused).
A complete list of the configuration would be a bit annoying.
Any idea at this level of what can be done?
Thanks in advance for any suggestion.




OK normally we would like...

1. the line you are using to start the pop3 daemon (and which one you're
using)
2. any other files that are being used to run it (eg tcp.smtp)
3. if you are using tcpserver or inetd
4. the log entries (there 99% will be an error in one of the logs when you
try telnet)

Not much good we can do without this, no matter how annoying it is for you
to provide it...

/BR


Manager
InterPlanetary Solutions
http://ipsware.com/
  -----Original Message-----
  From: Marco [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, August 31, 2000 6:57 PM
  To: qmail-mailing list
  Subject: Telnet 110


  Hi,
  my trouble with qmail is that I can't telnet port 110 (connection
refused).
  A complete list of the configuration would be a bit annoying.
  Any idea at this level of what can be done?
  Thanks in advance for any suggestion.





if u are using tcp wrapper, please check /etc/hosts.allow.


On Thu, 31 Aug 2000, Marco wrote:

> Hi,
> my trouble with qmail is that I can't telnet port 110 (connection refused).
> A complete list of the configuration would be a bit annoying.
> Any idea at this level of what can be done?
> Thanks in advance for any suggestion.
> 



Reply via email to