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