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 -0000
> > > > Date: 29 Jan 1999 03:42:13 -0000
> > > > 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-8888 Phone
> (412) 810-8886 Fax

Reply via email to