Greg Kopp <[EMAIL PROTECTED]> writes:
> I have qmail and vpopmail installed on RH 6.2. I have a perl subroutine that
> we use to send e-mail. Here is the code snipit:
> sub mailto
> { $mailprog = '/usr/lib/sendmail';
> open(MAIL,"|$mailprog -t");
> my @args = @_;
> print MAIL "To: $args[0]\n";
> print MAIL "Bcc: $args[4]\n";
> print MAIL "From: $args[1]\n";
> print MAIL "Subject: $args[2]\n";
> print MAIL "$args[3]\n";
> close MAIL;
> }
> BUT when a mail message gets bounced, the message comes back to the user
> that the web server is running as.
Bounces go back to the envelope sender. If you want to change the
envelope sender, pass the -f option to the sendmail emulation program, as
in:
/usr/lib/sendmail -t -f [EMAIL PROTECTED]
--
Russ Allbery ([EMAIL PROTECTED]) <http://www.eyrie.org/~eagle/>