RE: off site mail delivery for virt domain

1999-01-29 Thread Gary Joyce

Try:

biblicalstudies.com:alias-bibli in virtualdomains

and place this file,

.qmail-bibli-default in /var/qmail/alias

containing,

&[EMAIL PROTECTED] in .qmail-bibli-default

works for me.

gary

> -Original Message-
> From: Paul Farber [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 29, 1999 6:24 PM
> To: qmail mailing list
> Subject: off site mail delivery for virt domain
>
>
> hello all..
>
> how can I set up a virtual domain that will automagically forward e-mail
> to an e-amil address off site???
>
> I have the biblicalstudies.com in rcpthosts and
> biblicalstudies.com:&[EMAIL PROTECTED] in virtualdomains.
>
> My searching of the faq's leads me to belive that I would be wrong, and
> that I need to put a .qmail-bibstudy in the qmail/alias with &[EMAIL PROTECTED],
> and change the virtualdomains to biblicalstudies.com:bibstudy.
>
> AM I getting warm?
>
> Paul D. Farber II
> Farber Technology
> 717-628-5303
> [EMAIL PROTECTED]
>
>



off site mail delivery for virt domain

1999-01-29 Thread Paul Farber

hello all..

how can I set up a virtual domain that will automagically forward e-mail
to an e-amil address off site???

I have the biblicalstudies.com in rcpthosts and
biblicalstudies.com:&[EMAIL PROTECTED] in virtualdomains.

My searching of the faq's leads me to belive that I would be wrong, and
that I need to put a .qmail-bibstudy in the qmail/alias with &[EMAIL PROTECTED],
and change the virtualdomains to biblicalstudies.com:bibstudy.

AM I getting warm?

Paul D. Farber II
Farber Technology
717-628-5303
[EMAIL PROTECTED]



Mangling From: headers by recipient domain

1999-01-29 Thread Paul Halliday

Hi folks,

I'm looking to upgrade my site's sendmail system to qmail, but a difficulty
I'm having is providing a robust mechanism for translating 'From: ' headers
of all mail (usually incoming from network) subject to the recipient domain.

This is a site requirement; sadly, although the world-wide company mail hubs
know how to route `@ourhost.companydomain' they don't know how to do handle 
our internet domain and it may not be feasible getting the other company sites 
(world-wide) to fix their routing for our domain. Therefore this header 
re-work is necessary (sendmail has been doing this for us for some time).

Therefore all mail to the internet would be stamped '@ourdomain', but all 
company mail to companydomain stamped '@ourhost.companydomain'; this is to 
avoid replied to sensitive company mail being routed via the internet. 

What's the best strategy to approach this with qmail? 

Thus far I'd decided on a virtualdomain as follows:

companydomain:alias-companydomain

and in ~alias/.qmail-company-domain:

| preline -d -f swap_from | qmail-remote relay.ourdomain $SENDER 
$RECIPIENT 

'swap_from' is obviously a program to explicitely change the From: field
to the company required one one. 

This solution works OK in normal circumstances but is not at all robust
because if the relay is down then the mail gets lost. It seems as though 
qmail-send isn't designed to listen to what a virtualdomain returns - it 
just deletes it from the queue and assumes the piped programs will know 
what to do with it(?)

I really do not wish to have to open a two-way pipe to qmail-remote just to 
read what it returns - even then if I re-inject failures using new-inject or
qmail-inject back in to the queue it will loop inefficiently (not using the 
usual defferal mechanism) and I'd have to hack sleeps in to it just to avoid 
the load sensible ... one of my arguments for using qmail is that it's 
massively simpler for an administrater to set up than sendmail (and it is, 
provided everyone else's domain is also set up properly).

I hope someone can tell me that I'm doing it all wrong and that there's a 
simpler and more robust way of solving this header re-writing problem 
efficiently!

Many thanks in advance,
Paul

--
Paul Halliday ([EMAIL PROTECTED])
MIS Department
Sony Manufacturing Co UK(BGD)
 __
| Disclaimer: Any opinions expressed in this message are not necessarily those |
| of the corporation and should therefore be assumed my own.   |
 ~~
* * * * * Notice Of Disclaimer & Confidentiality * * * * *

The contents of this E:Mail message does not in any way constitute 
the opinion of Sony Manufacturing Co. UK, but that of the individual 
person who composed it.

It is intended for the named addressee only and it contains 
information which may be confidential and privileged.

Unless you are the named addressee or authorised to receive it 
on their behalf, you may not use, copy or disclose it's contents to
anyone else.  

If you have received this message by mistake please contact:

Sony Manufacturing Co. UK., Bridgend Industrial Est.,
Bridgend, Mid Glam, CF31 3YH.

Tel (+44) 01656 767000, Fax (+44) 01656 767222

MIS Manager



Re: qmail eats up my memory

1999-01-29 Thread Mark Delany

At 07:22 PM 1/29/99 +0100, Harald Hanche-Olsen wrote:
>- Van Liedekerke Franky <[EMAIL PROTECTED]>:
>
>| qmail version: 1.03
>| 
>| after a couple of hours, the qmail-lspawn process became huge
>| (813M), eating up all my memory and of course blocking everything.
>| Anybody seen this before?
>
>[silence]
>
>Apparently, nobody has.  I certainly haven't.

I've never seen nor heard of it on this list.

> Apart from this, does
>it seem to behave normally?  Do the logs show local messages being
>delivered, etc?  If it happens again, could you trace system calls,
>and see if anything is out of the ordinary is happening (apart from a
>bunch of break()s, that is)?

Also tell us more about the OS, C compiler and libraries. What versions?


Regards.



Re: qmail eats up my memory

1999-01-29 Thread Keith Burdis

On Fri 1999-01-29 (15:04), Van Liedekerke Franky wrote:
> qmail version: 1.03
> 
> after a couple of hours, the qmail-lspawn process became huge (813M), eating
> up all my memory and of course blocking everything.
> Anybody seen this before?

I had a similar problem a while back, but it turned out not to be a qmail
problem at all. One of the other sysadmins had upgraded some libraries used
by qmail. After recompiling and reinstalling everything worked perfectly.

  - Keith
-- 
Keith Burdis - MSc (Com Sci) - Rhodes University, South Africa  
Email   : [EMAIL PROTECTED]
WWW : http://www.rucus.ru.ac.za/~keith/
IRC : Panthras  JAPH

"Any technology sufficiently advanced is indistinguishable from a perl script"

Standard disclaimer.
---



Re: qmail eats up my memory

1999-01-29 Thread Brian L. Gentry

Van Liedekerke Franky wrote:
> 
> qmail version: 1.03
> 
> after a couple of hours, the qmail-lspawn process became huge (813M), eating
> up all my memory and of course blocking everything.
> Anybody seen this before?

I've never heard of this before.

What OS are you running this on?
Did you install a binary distribution or compile from source?
If from source, what compiler did you use?
If from binary, what binary dist did you use?

Anything else "different" about your system?

-- 
Brian L. Gentry
Technical Analyst
Sprint Paranet
Seahawks Branch -- Boca Raton, FL



Re: qmail eats up my memory

1999-01-29 Thread Harald Hanche-Olsen

- Van Liedekerke Franky <[EMAIL PROTECTED]>:

| qmail version: 1.03
| 
| after a couple of hours, the qmail-lspawn process became huge
| (813M), eating up all my memory and of course blocking everything.
| Anybody seen this before?

[silence]

Apparently, nobody has.  I certainly haven't.  Apart from this, does
it seem to behave normally?  Do the logs show local messages being
delivered, etc?  If it happens again, could you trace system calls,
and see if anything is out of the ordinary is happening (apart from a
bunch of break()s, that is)?

- Harald



Re: If it's not in $HOME/Maildir, where is it?

1999-01-29 Thread Chris Johnson

On Fri, Jan 29, 1999 at 08:45:48AM -0800, Bob McLaren wrote:
> It's strange, I've noticed that when the system does automatic emails to the
> "[EMAIL PROTECTED]" account the maillog reflects the message successfully
> being sent to local [EMAIL PROTECTED]  Whereas when I try to send a message
> to any account using telnet on SMTP port 25 the maillog reports a succesful
> delivery to local @mydomain.com. It now appears to me that somehow
> qmail-smtpd is not recieving user information from the SMTP session.  Here is
> a sample SMTP session.
> 220 mydomain.com ESMTP
> helo dude
> 250 mydomain.com
> mail bob
> 250 ok
> rcpt bob
> 250 ok
> data
> 354 go ahead
> This is a test
> .
> 250 ok 917628297 qp 1514
> quit
> 221 mydomain.com

Try entering the SMTP stuff using the correct protocol:

220 mydomain.com ESMTP
helo dude.mydomain.com 
250 mydomain.com
mail from:<[EMAIL PROTECTED]>
250 ok
rcpt to:<[EMAIL PROTECTED]>
250 ok
data
354 go ahead
Subject: This is a test

This is a test.
.
250 ok 917628297 qp 1514
quit
221 mydomain.com

Chris



Re: On local sends, Bounce to sender(user), not to postmaster

1999-01-29 Thread Mate Wierdl

On Thu, Jan 28, 1999 at 09:54:10PM -0700, Joel Shellman wrote:
> I see. Thank you--that is good information to know.
> Unfortunately, I still need a solution for legacy stuff. In
> the future, I will remember that for new scripts we deploy.
> 
> Please comment on the following solution:
> I will make a .qmail-anonymous alias in the
> /var/qmail/alias/ directory and have it be a script that
> will resend it to whatever is in the From: header.
> 
> |forward $SENDER

But SENDER *is* the envelope sender , and in case of a bounce, it is
mailer-daemon.

Can you show me a full bounce ?  

Mate



Re: Multiple outgoing messages

1999-01-29 Thread Frank D. Cringle

Mark Delany <[EMAIL PROTECTED]> writes:
> At 10:14 AM 1/29/99 +0100, Frank D. Cringle wrote:
> >Hmmm... when I look at the headers of your message as received here, I
> >see that it reached me via UUCP/BSMTP.
>
> Ahh. But he might be being especially clever and saying that only sendmail
> is able to be arranged to issue an rmail with multiple recipients.

True.  I interpreted Joe's message as claiming "you can't use UUCP
with qmail".

> Is it F=m
> that enables this feature in the mailer definition?

Oh dear, I haven't a clue.  I have successfully erased sendmail.cf
from my memory.

I guess a MUA or mailing list running on a UUCP-connected host could
use a substitute qmail-queue program, to pipe the message directly into
uux instead of going via qmail-queue -> qmail-send -> uux.  That would
be easy if/when all callers of qmail-queue (qmail-inject in this case)
take its name from an environment variable.  No VERPs for the mailing
list then, of course.

-- 
Frank Cringle,  [EMAIL PROTECTED]
voice: (+49 2304) 467101; fax: 943357



Re: local queue delivery

1999-01-29 Thread Harald Hanche-Olsen

- Van Liedekerke Franky <[EMAIL PROTECTED]>:

| does anybody know how I can make qmail deliver messeages that are in
| queue/local, to a remote host?

Do they all have the same recipient?  If so, create a
~alias/.qmail-something file for that recipient which forwards the
mail to the remote host.

Or if you wish to do this for *every* message in the local queue, do
the same with a .qmail-default file.  Just remember that a .qmail file
in ~alias/ can never override an existing user; use the users/assign
mechanism for that.

It's hard to be more specific without more specific information.
Hopefully, this is enough to get you going.

- Harald



Re: On local sends, Bounce to sender

1999-01-29 Thread Mate Wierdl

Unfortunately, the correct behavior of an MTA is to bounce to the envelope
sender.  

But this behavior of qmail can be changed --- by modifying the cgi scripts.
In what sense is it impractical to modify them?  If they invoke sendmail,
just add the -f flag (with the appropriate address) and done.

If there are many cgi scripts, a single sed script might make the
modification for you.

Perhaps if you show the relevant part of a typical script, we could come up
with a sed(perl,awk) script.

Another possibility is to install wrappers to the scripts, and the wrapper
would set the appropriate qmail-inject(=sendmail) variables.

-- 
---
Mate Wierdl | Dept. of Math. Sciences | University of Memphis  



Re: If it's not in $HOME/Maildir, where is it?

1999-01-29 Thread Bob McLaren



Mirko Zeibig wrote:

> On Thu, 28 Jan 1999 13:29:45 -0800, Bob McLaren <[EMAIL PROTECTED]> wrote:
> >The MAIL=$HOME/Maildir environment variable in my /etc/profile is set
> >and verified.
> I think this should be MAIL=$HOME/Maildir/ with an ending slash.
>
> Regards
> Mirko
> --
> mailto:[EMAIL PROTECTED] myhome_aka_~:http://sites.inka.de/picard
> RedHat=~/rh52_isdn.htmlteles16.3c=~/teles163c/teles163c_contents.html
> life's a http://www.uni-karlsruhe.de/~etcetera

It's strange, I've noticed that when the system does automatic emails to the
"[EMAIL PROTECTED]" account the maillog reflects the message successfully
being sent to local [EMAIL PROTECTED]  Whereas when I try to send a message
to any account using telnet on SMTP port 25 the maillog reports a succesful
delivery to local @mydomain.com. It now appears to me that somehow
qmail-smtpd is not recieving user information from the SMTP session.  Here is
a sample SMTP session.
220 mydomain.com ESMTP
helo dude
250 mydomain.com
mail bob
250 ok
rcpt bob
250 ok
data
354 go ahead
This is a test
.
250 ok 917628297 qp 1514
quit
221 mydomain.com

After this I check the /var/log/maillog and get the following;
Jan 29 08:44:57 www qmail: 917628297.127658 new msg 1015872
Jan 29 08:44:57 www qmail: 917628297.127934 info msg 1015872: bytes 198 from
<>
qp 1514 uid 0
Jan 29 08:44:57 www qmail: 917628297.216379 starting delivery 29: msg 1015872
to
 local @mydomain.com
Jan 29 08:44:57 www qmail: 917628297.216568 status: local 1/10 remote 0/20
Jan 29 08:44:57 www qmail: 917628297.218447 delivery 29: success:
Jan 29 08:44:57 www qmail: 917628297.218631 status: local 0/10 remote 0/20
Jan 29 08:44:57 www qmail: 917628297.218761 end msg 1015872

See how it says "local @mydomain.com" shouldn't it say "local
[EMAIL PROTECTED]"?
--
Bob McLaren




Re: On local sends, Bounce to sender(user), not to postmaster

1999-01-29 Thread Joel Shellman

I see. Thank you--that is good information to know.
Unfortunately, I still need a solution for legacy stuff. In
the future, I will remember that for new scripts we deploy.

Please comment on the following solution:
I will make a .qmail-anonymous alias in the
/var/qmail/alias/ directory and have it be a script that
will resend it to whatever is in the From: header.

|forward $SENDER

After testing this, it seemed to work fine. Anyone see any
possible problems with this?

What would happen if somehow the From: header was from
anonymous and this kept sending to itself--it wouldn't go in
an infinite loop, would it? Qmail would break it out and
ship it to postmaster or something?


To consolidate messages, I just saw the post from Mike
Meyer, and one reason it's not practical to change the
cgi-scripts is because I do not know where they are--the
host's own them (which is another reason, I would need to
inform them of the action), some of them may be compiled,
etc. Setting up qmail was relatively easy for everyone
especially because it can be automated.

So far as I know, the cgi-scripts are running
/usr/lib/sendmail to put send the messages.

As for changing the environment for sendmail, that certainly
is a possibility, however if the above method works, it is
much simpler.

Thanks again for all the help--I must say this is a very
helpful list--and quick replies.

Joel Shellman
knOcean Interactive Corporation
http://corp.knOcean.com/

"Timothy L. Mayo" wrote:
> 
> Sendmail in this case was and is broken.  The RFCs REQUIRE the bounce to
> be sent to the envelope sender NOT the From: address in the mail headers.
> Fix your scripts.  qmail's behavior is correct.
> 
> On Thu, 28 Jan 1999, Joel Shellman wrote:
> 
> > I do appreciate everyone's responses, unfortunately they all
> > gave the same solution which is unacceptable. We run
> > numerous clients and it would not be proper to require the
> > cgi-script to do so and should not be necessary. I should
> > have said that changing the cgi scripts is impractical.
> >
> > Sendmail handled this situation fine by returning it to the
> > user who sent it. There must be some way to set up qmail so
> > it will use the From header for bounces instead of the
> > return-path, or set the return-path to the from. If you
> > notice in the headers below, the From: header is set
> > correctly to the one the bounce should be returned to.
> >
> > Thanks,
> >
> > Joel Shellman
> > knOcean Interactive Corporation
> > http://corp.knOcean.com/
> >
> > Mate Wierdl wrote:
> > >
> > > On Thu, Jan 28, 1999 at 11:18:53AM -0700, Joel Shellman wrote:
> > > > I am a recent convert from sendmail to qmail (of just
> > > > several days) and have run into a difficulty. Using
> > > > sendmail, if I automatically sent email from a cgi script,
> > > > and it bounced--it would bounce back to the user. However,
> > > > right now with the qmail setup, I (being the postmaster) am
> > > > getting all the returned mail. How can I fix this?
> > > >
> > > > Here is an example:
> > > >
> > > > Return-Path: <[EMAIL PROTECTED]>
> > > > Received: (qmail 7386 invoked by uid 60001); 29 Jan 1999
> > > > 03:42:13 -
> > > > Date: 29 Jan 1999 03:42:13 -
> > > > Message-ID: <[EMAIL PROTECTED]>
> > > > To: [EMAIL PROTECTED]
> > > > Reply-to: [EMAIL PROTECTED]
> > > > From: [EMAIL PROTECTED]
> > > > Subject: Life Styles Plus - Your submission & Info
> > > >
> > > > Those are the headers of the email that bounced. Apparently
> > > > [EMAIL PROTECTED] doesn't exist. Why was this
> > > > email not bounced back to [EMAIL PROTECTED]? I see the
> > > > [EMAIL PROTECTED] (which would indeed
> > > > go to me)--is that the problem?
> > >
> > > Yes, the bounce goes to the envelope sender which is the address in the
> > > Return-Path header.  Before you (the script) send the mail, set, for
> > > example, MAILUSER, MAILHOST and QMAILINJECT=f.  See man qmail-inject and FAQ.
> > >
> > > Or you can use qmail-inject directly to send the message and use the -f flag.
> > >
> > > Mate
> > > Mate
> >
> 
> -
> Timothy L. Mayo mailto:[EMAIL PROTECTED]
> Senior Systems Manager
> 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- Phone
> (412) 810-8886 Fax



Re: On local sends, Bounce to sender(user), not to postmaster

1999-01-29 Thread Sam

Joel Shellman writes:

> I am a recent convert from sendmail to qmail (of just
> several days) and have run into a difficulty. Using
> sendmail, if I automatically sent email from a cgi script,
> and it bounced--it would bounce back to the user. However,
> right now with the qmail setup, I (being the postmaster) am
> getting all the returned mail. How can I fix this?

Read the manual page for qmail-inject, and use the -f option.



Re: On local sends, Bounce to sender(user), not to postmaster

1999-01-29 Thread Mike Meyer

You left out a vital bit of information - what are the cgi scripts
doing to put the mail in the queue?

Assuming that they're just invoking the qmail sendmail interface
(since you can't change the cgi-scripts, that's reasonable), you could
change *that* to set the appropriate environment variables.

I do wonder how you managed to get to a state where you could install
qmail on all the clients, but can't changing the cgi scripts on those
same clients is impractical.

 Date: Thu, 28 Jan 1999 20:59:35 -0700
> From: Joel Shellman <[EMAIL PROTECTED]>
> To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> Subject: Re: On local sends, Bounce to sender(user), not to postmaster
> 
> I do appreciate everyone's responses, unfortunately they all
> gave the same solution which is unacceptable. We run
> numerous clients and it would not be proper to require the
> cgi-script to do so and should not be necessary. I should
> have said that changing the cgi scripts is impractical.
> 
> Sendmail handled this situation fine by returning it to the
> user who sent it. There must be some way to set up qmail so
> it will use the From header for bounces instead of the
> return-path, or set the return-path to the from. If you
> notice in the headers below, the From: header is set
> correctly to the one the bounce should be returned to.
> 
> Thanks,
> 
> Joel Shellman
> knOcean Interactive Corporation
> http://corp.knOcean.com/
> 
> Mate Wierdl wrote:
> > 
> > On Thu, Jan 28, 1999 at 11:18:53AM -0700, Joel Shellman wrote:
> > > I am a recent convert from sendmail to qmail (of just
> > > several days) and have run into a difficulty. Using
> > > sendmail, if I automatically sent email from a cgi script,
> > > and it bounced--it would bounce back to the user. However,
> > > right now with the qmail setup, I (being the postmaster) am
> > > getting all the returned mail. How can I fix this?
> > >
> > > Here is an example:
> > >
> > > Return-Path: <[EMAIL PROTECTED]>
> > > Received: (qmail 7386 invoked by uid 60001); 29 Jan 1999
> > > 03:42:13 -
> > > Date: 29 Jan 1999 03:42:13 -
> > > Message-ID: <[EMAIL PROTECTED]>
> > > To: [EMAIL PROTECTED]
> > > Reply-to: [EMAIL PROTECTED]
> > > From: [EMAIL PROTECTED]
> > > Subject: Life Styles Plus - Your submission & Info
> > >
> > > Those are the headers of the email that bounced. Apparently
> > > [EMAIL PROTECTED] doesn't exist. Why was this
> > > email not bounced back to [EMAIL PROTECTED]? I see the
> > > [EMAIL PROTECTED] (which would indeed
> > > go to me)--is that the problem?
> > 
> > Yes, the bounce goes to the envelope sender which is the address in the
> > Return-Path header.  Before you (the script) send the mail, set, for
> > example, MAILUSER, MAILHOST and QMAILINJECT=f.  See man qmail-inject and FAQ.
> > 
> > Or you can use qmail-inject directly to send the message and use the -f flag.
> > 
> > Mate
> > Mate
> 



qmail eats up my memory

1999-01-29 Thread Van Liedekerke Franky

qmail version: 1.03

after a couple of hours, the qmail-lspawn process became huge (813M), eating
up all my memory and of course blocking everything.
Anybody seen this before?



local queue delivery

1999-01-29 Thread Van Liedekerke Franky

does anybody know how I can make qmail deliver messeages that are in
queue/local, to a remote host?



Re: On local sends, Bounce to sender(user), not to postmaster

1999-01-29 Thread Joel Shellman

I do appreciate everyone's responses, unfortunately they all
gave the same solution which is unacceptable. We run
numerous clients and it would not be proper to require the
cgi-script to do so and should not be necessary. I should
have said that changing the cgi scripts is impractical.

Sendmail handled this situation fine by returning it to the
user who sent it. There must be some way to set up qmail so
it will use the From header for bounces instead of the
return-path, or set the return-path to the from. If you
notice in the headers below, the From: header is set
correctly to the one the bounce should be returned to.

Thanks,

Joel Shellman
knOcean Interactive Corporation
http://corp.knOcean.com/

Mate Wierdl wrote:
> 
> On Thu, Jan 28, 1999 at 11:18:53AM -0700, Joel Shellman wrote:
> > I am a recent convert from sendmail to qmail (of just
> > several days) and have run into a difficulty. Using
> > sendmail, if I automatically sent email from a cgi script,
> > and it bounced--it would bounce back to the user. However,
> > right now with the qmail setup, I (being the postmaster) am
> > getting all the returned mail. How can I fix this?
> >
> > Here is an example:
> >
> > Return-Path: <[EMAIL PROTECTED]>
> > Received: (qmail 7386 invoked by uid 60001); 29 Jan 1999
> > 03:42:13 -
> > Date: 29 Jan 1999 03:42:13 -
> > Message-ID: <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > Reply-to: [EMAIL PROTECTED]
> > From: [EMAIL PROTECTED]
> > Subject: Life Styles Plus - Your submission & Info
> >
> > Those are the headers of the email that bounced. Apparently
> > [EMAIL PROTECTED] doesn't exist. Why was this
> > email not bounced back to [EMAIL PROTECTED]? I see the
> > [EMAIL PROTECTED] (which would indeed
> > go to me)--is that the problem?
> 
> Yes, the bounce goes to the envelope sender which is the address in the
> Return-Path header.  Before you (the script) send the mail, set, for
> example, MAILUSER, MAILHOST and QMAILINJECT=f.  See man qmail-inject and FAQ.
> 
> Or you can use qmail-inject directly to send the message and use the -f flag.
> 
> Mate
> Mate



Re: On local sends, Bounce to sender(user), not to postmaster

1999-01-29 Thread Timothy L. Mayo

Sendmail in this case was and is broken.  The RFCs REQUIRE the bounce to
be sent to the envelope sender NOT the From: address in the mail headers.
Fix your scripts.  qmail's behavior is correct.

On Thu, 28 Jan 1999, Joel Shellman wrote:

> I do appreciate everyone's responses, unfortunately they all
> gave the same solution which is unacceptable. We run
> numerous clients and it would not be proper to require the
> cgi-script to do so and should not be necessary. I should
> have said that changing the cgi scripts is impractical.
> 
> Sendmail handled this situation fine by returning it to the
> user who sent it. There must be some way to set up qmail so
> it will use the From header for bounces instead of the
> return-path, or set the return-path to the from. If you
> notice in the headers below, the From: header is set
> correctly to the one the bounce should be returned to.
> 
> Thanks,
> 
> Joel Shellman
> knOcean Interactive Corporation
> http://corp.knOcean.com/
> 
> Mate Wierdl wrote:
> > 
> > On Thu, Jan 28, 1999 at 11:18:53AM -0700, Joel Shellman wrote:
> > > I am a recent convert from sendmail to qmail (of just
> > > several days) and have run into a difficulty. Using
> > > sendmail, if I automatically sent email from a cgi script,
> > > and it bounced--it would bounce back to the user. However,
> > > right now with the qmail setup, I (being the postmaster) am
> > > getting all the returned mail. How can I fix this?
> > >
> > > Here is an example:
> > >
> > > Return-Path: <[EMAIL PROTECTED]>
> > > Received: (qmail 7386 invoked by uid 60001); 29 Jan 1999
> > > 03:42:13 -
> > > Date: 29 Jan 1999 03:42:13 -
> > > Message-ID: <[EMAIL PROTECTED]>
> > > To: [EMAIL PROTECTED]
> > > Reply-to: [EMAIL PROTECTED]
> > > From: [EMAIL PROTECTED]
> > > Subject: Life Styles Plus - Your submission & Info
> > >
> > > Those are the headers of the email that bounced. Apparently
> > > [EMAIL PROTECTED] doesn't exist. Why was this
> > > email not bounced back to [EMAIL PROTECTED]? I see the
> > > [EMAIL PROTECTED] (which would indeed
> > > go to me)--is that the problem?
> > 
> > Yes, the bounce goes to the envelope sender which is the address in the
> > Return-Path header.  Before you (the script) send the mail, set, for
> > example, MAILUSER, MAILHOST and QMAILINJECT=f.  See man qmail-inject and FAQ.
> > 
> > Or you can use qmail-inject directly to send the message and use the -f flag.
> > 
> > Mate
> > Mate
> 

-
Timothy L. Mayo mailto:[EMAIL PROTECTED]
Senior Systems Manager
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- Phone
(412) 810-8886 Fax



checkpasswd using CDB file....

1999-01-29 Thread Dino Di Stefano

do you know where I can find a patch of checkpasswd  which uses a CDB
file?
In the qmail web page there is no link...

thanks
Dino




qmail Digest 29 Jan 1999 11:00:10 -0000 Issue 535

1999-01-29 Thread qmail-digest-help


qmail Digest 29 Jan 1999 11:00:10 - Issue 535

Topics (messages 21043 through 21135):

Bouncing specific users
21043 by: Anand Buddhdev <[EMAIL PROTECTED]>
21044 by: "Petr Novotny" <[EMAIL PROTECTED]>
21046 by: Anand Buddhdev <[EMAIL PROTECTED]>
21049 by: Mate Wierdl <[EMAIL PROTECTED]>
21050 by: Peter Gradwell <[EMAIL PROTECTED]>

"solutions for spam"
21045 by: [EMAIL PROTECTED]
21051 by: [EMAIL PROTECTED]
21056 by: "Chris Garrigues" <[EMAIL PROTECTED]>
21057 by: [EMAIL PROTECTED]
21060 by: Peter van Dijk <[EMAIL PROTECTED]>
21062 by: Chris Johnson <[EMAIL PROTECTED]>
21064 by: [EMAIL PROTECTED]
21067 by: Chris Johnson <[EMAIL PROTECTED]>
21070 by: [EMAIL PROTECTED]
21072 by: "Scott D. Yelich" <[EMAIL PROTECTED]>
21074 by: Russell Nelson <[EMAIL PROTECTED]>
21077 by: [EMAIL PROTECTED]
21120 by: "Luca Olivetti" <[EMAIL PROTECTED]>
21122 by: [EMAIL PROTECTED]

TCPServer and Relaying
21047 by: root <[EMAIL PROTECTED]>
21048 by: "Petr Novotny" <[EMAIL PROTECTED]>

convert netscape mails to qmail
21052 by: Van Liedekerke Franky <[EMAIL PROTECTED]>
21053 by: "Sam" <[EMAIL PROTECTED]>
21054 by: Van Liedekerke Franky <[EMAIL PROTECTED]>
21055 by: Bart Blanquart <[EMAIL PROTECTED]>
21059 by: Peter van Dijk <[EMAIL PROTECTED]>

checkpassword
21058 by: Chris Johnson <[EMAIL PROTECTED]>
21061 by: "Scott D. Yelich" <[EMAIL PROTECTED]>

Virtual domains using qmail
21063 by: Chris Johnson <[EMAIL PROTECTED]>

Best way to defer mail from an application
21065 by: Michael Amster <[EMAIL PROTECTED]>
21068 by: Chris Nelson <[EMAIL PROTECTED]>

I'm stuck
21066 by: Dave Hansen <[EMAIL PROTECTED]>
21078 by: Harald Hanche-Olsen <[EMAIL PROTECTED]>
21085 by: "Brian L. Gentry" <[EMAIL PROTECTED]>
21092 by: James Smallacombe <[EMAIL PROTECTED]>

Multiple outgoing messages
21069 by: "Mark Carpenter" <[EMAIL PROTECTED]>
21073 by: Chris Johnson <[EMAIL PROTECTED]>
21075 by: "Mark Carpenter" <[EMAIL PROTECTED]>
21076 by: Dave Sill <[EMAIL PROTECTED]>
21080 by: Chris Johnson <[EMAIL PROTECTED]>
21086 by: Russell Nelson <[EMAIL PROTECTED]>
21087 by: "Len Budney" <[EMAIL PROTECTED]>
21100 by: "Mark Carpenter" <[EMAIL PROTECTED]>
21101 by: "Mark Carpenter" <[EMAIL PROTECTED]>
21106 by: "cap" <[EMAIL PROTECTED]>
21109 by: "Joe Garcia" <[EMAIL PROTECTED]>
21110 by: "Mark Carpenter" <[EMAIL PROTECTED]>
2 by: Paul Schinder <[EMAIL PROTECTED]>
21115 by: Chris Johnson <[EMAIL PROTECTED]>
21117 by: "Sam" <[EMAIL PROTECTED]>
21118 by: Mark Delany <[EMAIL PROTECTED]>
21124 by: Mate Wierdl <[EMAIL PROTECTED]>
21125 by: Chris Johnson <[EMAIL PROTECTED]>
21134 by: [EMAIL PROTECTED] (Frank D. Cringle)
21135 by: Mark Delany <[EMAIL PROTECTED]>

Newbie configuration
21071 by: [EMAIL PROTECTED]
21083 by: Russell Nelson <[EMAIL PROTECTED]>

Pattern-matching and filtering
21079 by: Kai MacTane <[EMAIL PROTECTED]>
21084 by: "Len Budney" <[EMAIL PROTECTED]>
21089 by: Peter van Dijk <[EMAIL PROTECTED]>
21090 by: Russell Nelson <[EMAIL PROTECTED]>
21097 by: "Len Budney" <[EMAIL PROTECTED]>

qmail-pop3d
21081 by: Ramesh Vadlapatla <[EMAIL PROTECTED]>
21082 by: Chris Johnson <[EMAIL PROTECTED]>

two questions about set-up
21088 by: "Joe Garcia" <[EMAIL PROTECTED]>
21093 by: Chris Johnson <[EMAIL PROTECTED]>
21094 by: Russell Nelson <[EMAIL PROTECTED]>
21098 by: "Joe Garcia" <[EMAIL PROTECTED]>
21102 by: "Scott D. Yelich" <[EMAIL PROTECTED]>
21104 by: "Joe Garcia" <[EMAIL PROTECTED]>
21107 by: John R Levine <[EMAIL PROTECTED]>
21113 by: "Joe Garcia" <[EMAIL PROTECTED]>

When the book coming out Russell??
21091 by: "Joe Garcia" <[EMAIL PROTECTED]>
21096 by: Russell Nelson <[EMAIL PROTECTED]>

Complicated problem with fastforward and aliases
21095 by: Cristiano Lincoln Mattos <[EMAIL PROTECTED]>
21099 by: Vince Vielhaber <[EMAIL PROTECTED]>

If it's not in $HOME/Maildir, where is it?
21103 by: Bob McLaren <[EMAIL PROTECTED]>
21116 by: Bob McLaren <[EMAIL PROTECTED]>
21123 by: [EMAIL PROTECTED] (Mirko Zeibig)

FW: Multiple outgoing messages
21105 by: "Joe Garcia" <[EMAIL PROTECTED]>

problems with list?
21108 by: "Racer X" <[EMAIL PROTECTED]>
21112 by: Richard Letts <[EMAIL PROTECTED]>
21119 by: Kai MacTane <[EMAIL PROTECTED]>

Another mailing list needed (Was: Re: problems with list?)
21114 by: "Andrzej Kukula" <[EMAIL PROTECTED]>

qmail-stmpd receiving mail from ccMail
21121 by: [EMAIL PR

Re: Multiple outgoing messages

1999-01-29 Thread Mark Delany

At 10:14 AM 1/29/99 +0100, Frank D. Cringle wrote:
>"Joe Garcia" <[EMAIL PROTECTED]> writes:
>> Hey some of us youngins weren't around for the low bandwidth (modem) email
>> days, which is what UUCP was created for.  I couldn't even begin to tell you
>> how to set up UUCP it my life depended on it.  >:)  The funny part about
>> this is that I am old enough to remeber a pre-web Internet.
>> 
>>  Anyway he is correct that is the best way to do it.  Unfortunately qmail
>> won't do that, only one I know of is the beast, Sendmail.
>
>Hmmm... when I look at the headers of your message as received here, I 
>see that it reached me via UUCP/BSMTP.

Ahh. But he might be being especially clever and saying that only sendmail 
is able to be arranged to issue an rmail with multiple recipients. Is it F=m 
that enables this feature in the mailer definition?


Regards.



Re: Multiple outgoing messages

1999-01-29 Thread Frank D. Cringle

"Joe Garcia" <[EMAIL PROTECTED]> writes:
> Hey some of us youngins weren't around for the low bandwidth (modem) email
> days, which is what UUCP was created for.  I couldn't even begin to tell you
> how to set up UUCP it my life depended on it.  >:)  The funny part about
> this is that I am old enough to remeber a pre-web Internet.
> 
>   Anyway he is correct that is the best way to do it.  Unfortunately qmail
> won't do that, only one I know of is the beast, Sendmail.

Hmmm... when I look at the headers of your message as received here, I 
see that it reached me via UUCP/BSMTP.

  Return-Path: <[EMAIL PROTECTED]>
  Delivered-To: [EMAIL PROTECTED]
  Received: (qmail 7714 invoked by uid 5); 28 Jan 1999 22:26:29 -
  Received: from lilly.ping.de by cliwe.ping.de with BSMTP (rgsmtp-qm-ot 0.5)
for [EMAIL PROTECTED]; 28 Jan 1999 22:26:29 -
  Received: (qmail 4892 invoked from network); 28 Jan 1999 22:01:35 -
  Received: from muncher.math.uic.edu (131.193.178.181)
by lilly.ping.de with SMTP; 28 Jan 1999 22:01:35 -

-- 
Frank Cringle,  [EMAIL PROTECTED]
voice: (+49 2304) 467101; fax: 943357



Re: Qmail sending to 'root@localhost'

1999-01-29 Thread Mirko Zeibig

On Fri, 29 Jan 1999 08:45:19 +, Chris Naden <[EMAIL PROTECTED]> wrote:
>/var/qmail/alias/.qmail-root
>#
>&[EMAIL PROTECTED]
>#
You have to point to a real user, like chris@gwydion (BTW is that sth.
celtic?).
Your entry will cause a loop, as qmail will use your .qmail-root again, but
since qmail is really clever, by inserting always a "Delivered to" it will
detect the loop and stop delivery.
Regards
Mirko
-- 
mailto:[EMAIL PROTECTED] myhome_aka_~:http://sites.inka.de/picard 
RedHat=~/rh52_isdn.htmlteles16.3c=~/teles163c/teles163c_contents.html
life's a http://www.uni-karlsruhe.de/~etcetera



Re: Qmail sending to 'root@localhost'

1999-01-29 Thread Allen Versfeld

Chris Naden wrote:
> 
> Hello again everyone.
> 
> I read in the instructions that under qmail no mail is delivered
> to root@localhost, so you had to put in an alias to root; I did this.
> 
> /var/qmail/alias/.qmail-root
> #
> &[EMAIL PROTECTED]
> #

This alias is taking mail addressed to root, and sending it to root. 
Probably not what you had in mind ;-)

What you need to do is have the alias pointing to your personal
account.  My .qmail-root files contains:

&moe

which sends to user 'moe' on the local machine.  I suppose I could have
put ' &[EMAIL PROTECTED] ', though.


> 
> However; all mail, both internal and external, directed to
> [EMAIL PROTECTED] is bounced with the error
> 
> 'this_message_already_has_my_Delievered_to_line'
> 
> Can anyone tell me what to do about this?
> 
> ~Chris


-- 

Allen Versfeld
[EMAIL PROTECTED]
Wandata

"I hate quotations" - Ralph Waldo Emerson



Qmail sending to 'root@localhost'

1999-01-29 Thread Chris Naden

Hello again everyone. 

I read in the instructions that under qmail no mail is delivered
to root@localhost, so you had to put in an alias to root; I did this.

/var/qmail/alias/.qmail-root
#
&[EMAIL PROTECTED]
#

However; all mail, both internal and external, directed to 
[EMAIL PROTECTED] is bounced with the error

'this_message_already_has_my_Delievered_to_line'

Can anyone tell me what to do about this?

~Chris



Re: when does a message get split

1999-01-29 Thread Mark Delany

At 04:57 PM 1/29/99 +1100, Mark Delany wrote:
>At 22:40 28/01/99 -0600, Mate Wierdl wrote:
>>With all the talk about passing mail through serialline:  When does a
>>message with multiple recipients get split?
>
>By qmail-send. It makes the decision to split a multi-recipient mail into 
>individual deliveries.

And if you need to know when qmail-send is involved. Have a look at the 
INTERNALS file.

Dan. A mini-qmail diagram in there would be handy.


Regards.



Re: On local sends, Bounce to sender(user), not to postmaster

1999-01-29 Thread Adam D. McKenna

From: Joel Shellman <[EMAIL PROTECTED]>
:Those are the headers of the email that bounced. Apparently
:[EMAIL PROTECTED] doesn't exist. Why was this
:email not bounced back to [EMAIL PROTECTED]? I see the
:[EMAIL PROTECTED] (which would indeed
:go to me)--is that the problem?

yes, mail bounces to the return-path.  Add a return-path header to your cgi
script.

:Thank you,
:
:Joel Shellman

--Adam





On local sends, Bounce to sender(user), not to postmaster

1999-01-29 Thread Joel Shellman

I am a recent convert from sendmail to qmail (of just
several days) and have run into a difficulty. Using
sendmail, if I automatically sent email from a cgi script,
and it bounced--it would bounce back to the user. However,
right now with the qmail setup, I (being the postmaster) am
getting all the returned mail. How can I fix this?

Here is an example:

Return-Path: <[EMAIL PROTECTED]>
Received: (qmail 7386 invoked by uid 60001); 29 Jan 1999
03:42:13 -
Date: 29 Jan 1999 03:42:13 -
Message-ID: <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Reply-to: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Subject: Life Styles Plus - Your submission & Info 

Those are the headers of the email that bounced. Apparently
[EMAIL PROTECTED] doesn't exist. Why was this
email not bounced back to [EMAIL PROTECTED]? I see the
[EMAIL PROTECTED] (which would indeed
go to me)--is that the problem?

Thank you,

Joel Shellman
knOcean Interactive
http://corp.knOcean.com/



Re: when does a message get split

1999-01-29 Thread Mark Delany

At 22:40 28/01/99 -0600, Mate Wierdl wrote:
>With all the talk about passing mail through serialline:  When does a
>message with multiple recipients get split?

By qmail-send. It makes the decision to split a multi-recipient mail into 
individual deliveries.

>More precisely, following TOISP in the serialmail package:  Is the
>message already split when it is in ~alias/pppdir/, or they get split
>after (by maildirsmtp?!).

Since the mail has gone thru qmail-send to qmail-local to a Maildir, then 
it's split in this circumstance.


Regards.