[imp] Return-Path/redirect problem
Michael M Slusarz
slusarz at bigworm.colorado.edu
Mon Jan 20 20:37:49 PST 2003
Quoting Liam Hoekenga <liamr at umich.edu>:
| > This fix only works if you are using SMTP to send mail. If you are
| > using
| > the sendmail option, this won't change anything. That is because the
| > sendmail PEAR module does not honor a user specified Return-Path - it
| > always uses the from address. Since Chuck wrote it, maybe he should
| > install this patch (from smtp.php) (hint hint :) ):
| >
| > // Since few MTAs are going to allow this header to be forged
| > // unless it's in the MAIL FROM: exchange, we'll use Return-Path
| > // instead of From: if it's set
| > if (!empty($headers['Return-Path'])) {
| > $from = $headers['Return-Path'];
| > }
|
| I don't think that this what we need... doesn't this set the From
| header to the value of the Return-Path header (if that header is set)?
Exactly. And that's what we want. As far as I can tell, sendmail uses the
from address given on the command line to generate the Return-Path header -
axing the Return-Path header that may already exist in the message. At
least that's the way it works here (using postfix as the sendmail client).
michael
______________________________________________
Michael Slusarz [slusarz at bigworm.colorado.edu]
The University of Colorado at Boulder
More information about the imp
mailing list