Re: modifing PEAR Mail so we can use return paths

From: Date: Fri, 30 May 2003 00:07:44 +0000
Subject: Re: modifing PEAR Mail so we can use return paths
References: 1 2 3 4 5  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-16814@lists.php.net to get a copy of this message
> Do you test it by yourself? > I just know from my experiance, if I set that headers > To: not_existent_addr@otherhost.com > From: real_addr@host.com > Reply-To: my@host.com > Errors-to: my@host.com > Return-Path: my@host.com > but if PHP/Apache runs from user www@host.com, mail with error message > 'User Unknown' returns to www@host.com, if I will not set -f option. > When I tested using sendmail implementation, the Errors-To header didnt seem to work.Using PEAR's sendmail implementation these headers would send a bounce back to real_addr@host.com as this would be set as the -f argument. However using PHP Mail... would send the bounce back to www@host.com, as the PHP Mail implementation doesn't set the -f argument (provided that the mta didnt ignore the Errors-To...). This is what originally led me to investigate this why this was happening. Im guessing that the developers didnt set the -f argument in the Mail implementation as it may not be used in all mta's? although ive only worked with sendmail & qmail, but it looks like most mta's support this argument (ie sendmail, qmail, exim, postfix), wouldnt know about windows systems however.... So does the Errors-To overide the Return-Path??? not on my box.....

« previous php.pear.dev (#16814) next »