<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<br>
On 22/09/2010 17:55, Brad Beckenhauer wrote:
<blockquote cite="mid:4C99EEA102000068000644E9@smtp.aafp.org"
type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<meta name="GENERATOR" content="MSHTML 8.00.7600.16625">
<div>Jules,</div>
<div> </div>
<div>All very true, I was only looking at this from the zendto vm
position</div>
</blockquote>
I really don't want to have to fork the code to do this.<br>
<blockquote cite="mid:4C99EEA102000068000644E9@smtp.aafp.org"
type="cite">
<div> and documenting what I've found to date. I'll keep looking
to see if I can figure out where the issue lies and hopefully
just use the PHP code at hand. Like you, I don't want to have
to modify the MTA settings either if it can be avoided.</div>
</blockquote>
Many thanks! Let me know anything you find.<br>
<br>
Cheers,<br>
Jules.<br>
<blockquote cite="mid:4C99EEA102000068000644E9@smtp.aafp.org"
type="cite">
<div> </div>
<div>thanks for your thoughts.</div>
<div>Brad<br>
<br>
>>> On 9/22/2010 at 11:06 AM, in message
<a class="moz-txt-link-rfc2396E" href="mailto:4C9A299F.5080108@Zend.To"><4C9A299F.5080108@Zend.To></a>, Jules <a class="moz-txt-link-rfc2396E" href="mailto:Jules@zend.to"><Jules@zend.to></a>
wrote:<br>
</div>
<table style="margin: 0px 0px 0px 15px; font-size: 1em;"
bgcolor="#f3f3f3" border="0">
<tbody>
<tr>
<td>
<div style="border-left: 1px solid rgb(5, 5, 5);
padding-left: 7px;">The problem is that people might not
have sendmail installed (or even a program which fakes
it, like Postfix does). I would rather use the PHP
function call as the PHP build on the machine will have
been done correctly for that type of system, working
around it is usually a bad idea.<br>
<br>
Also, sendmail is often not present in /usr/lib (that's
there for ancient historical reasons, not appreciated by
all modern system builders).<br>
<br>
So I'm reluctant to call sendmail directly, as that's
avoiding all the (sensible) logic in the PHP
configuration script when PHP is built on that system.<br>
<br>
On true sendmail systems (and not necessarily on other
mail systems that fake the sendmail binary), the
Return-Path header will be set in the sendmail.cf file.
The last thing I want is for people to have to edit
their sendmail.cf file, they shouldn't have to do that
for an app which is just trying to send mail and not
process it.<br>
<br>
Jules.<br>
<br>
On 22/09/2010 16:06, Brad Beckenhauer wrote:
<blockquote
cite="mid:4C99D52A0200006800064461@smtp.aafp.org"
type="cite">
<meta name="GENERATOR" content="MSHTML
8.00.7600.16625">
<div>Ok,</div>
<div> </div>
<div>I'm not a PHP programmer, but I researched this
issue and found this reported issue as a bug on the
PHP Solaris forum back in 2004.</div>
<div> </div>
<div><a href="http://bugs.php.net/bug.php?id=29122"
moz-do-not-send="true"><font color="#0066cc">http://bugs.php.net/bug.php?id=29122</font></a></div>
<div> </div>
<div>I also applied the code presented in the above
bug trac and substituted the logic from the bug trac
with the mail() logic and the Return-Path works
(Diff below).</div>
<div> </div>
<div>
<div>I uncompressed the Julian's php rpm package in
the Zendto centos-64 vm and found that the bug was
not present in that package, so the issue appears
to be an interaction issue between sendmail and
PHP. Either sendmail is not accepting the
Return-Path or PHP is not providing (or providing
incorrectly) the Return-path to sendmail.</div>
<div> </div>
</div>
<div>I also downloaded the current PHP 5.2 build and
grep'd for the bad code noted in the bug trac that
the bug was not present in that package.</div>
<div> </div>
<div>
<div>Julian,</div>
<div>As usual, I'll defer to you on what you'd like
to do as far as final code changes. I'm just
reporting my discoveries for you.</div>
<div> </div>
<div>
<div>I used Zendto to send an package to a
fictitious, non-existent email account and
received a bounce back to my email account from
my MTA with the original Zendto message
attached. Yea!!!</div>
</div>
<div> </div>
</div>
<div>Below is the diff file for the changes I made
that worked, you previously used a return statement
and this does not and my cause issues.</div>
<div> </div>
<div>Please let me know what changes you make to the
code.</div>
<div> </div>
<div>have a good day</div>
<div>Brad</div>
<div> </div>
<div> </div>
<div>--- NSSDropbox.php.original 2010-09-21
17:20:10.000000000 -0500<br>
+++ NSSDropbox.php 2010-09-22
08:58:28.000000000 -0500<br>
@@ -678,14 +678,14 @@<br>
$content<br>
)<br>
{<br>
- return mail(<br>
- $toAddr,<br>
- $subject,<br>
- $content,<br>
- ($fromAddr==""?"":sprintf("From:
%s\r\nReply-to: %s\r\n",<br>
- $fromAddr,
$fromAddr)<br>
- )<br>
- );<br>
+ // running php rpm: php-5.1.6-27.jkf<br>
+ // issue between PHP mail() function and
sendmail where sendmail is not </div>
<div>+ // accepting/receiving the 'Return-Path'
from PHP.<br>
+ // similar to bug: <a
href="http://bugs.php.net/bug.php?id=29122"
moz-do-not-send="true">http://bugs.php.net/bug.php?id=29122</a><br>
+ $tmp_msg_string = "To: $toAddr\nSubject:
$subject\n\n$content\n";<br>
+ $tmp_handle = popen ("/usr/lib/sendmail
-f$fromAddr $toAddr", "w");<br>
+ fwrite ($tmp_handle, $tmp_msg_string);<br>
+ $result = pclose ($tmp_handle);<br>
}</div>
<div> </div>
<div> /*!<br>
<br>
<br>
>>> On 9/21/2010 at 6:46 PM, in message <a
moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="mailto:4C9943F1.2070900@Zend.To"><4C9943F1.2070900@Zend.To></a>,
Jules <a moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="mailto:Jules@zend.to"><Jules@zend.to></a>
wrote:<br>
</div>
<table style="margin: 0px 0px 0px 15px; font-size:
1em;" bgcolor="#f3f3f3" border="0">
<tbody>
<tr>
<td>
<div style="border-left: 1px solid rgb(5, 5,
5); padding-left: 7px;">Try setting
"Errors-To:" instead of "Return-Path:".<br>
<br>
On 22/09/2010 00:03, Brad Beckenhauer wrote:
<blockquote
cite="mid:4C98F36702000068000641C0@smtp.aafp.org"
type="cite">
<meta name="GENERATOR" content="MSHTML
8.00.7600.16625">
<div>Looks like sendmail is overriding
php.</div>
<div> </div>
<div>Drupal had a similiar issue.</div>
<div>see:</div>
<div><a
href="http://drupal.org/node/131737"
moz-do-not-send="true">http://drupal.org/node/131737</a></div>
<div> </div>
<div>brad<br>
<br>
>>> On 9/21/2010 at 4:32 PM, in
message <a
class="moz-txt-link-rfc2396E"
href="mailto:4C99246D.9000205@Zend.To"
moz-do-not-send="true"><4C99246D.9000205@Zend.To></a>,
Jules <a class="moz-txt-link-rfc2396E"
href="mailto:Jules@zend.to"
moz-do-not-send="true"><Jules@zend.to></a>
wrote:<br>
</div>
<table style="margin: 0px 0px 0px 15px;
font-size: 1em;" bgcolor="#f3f3f3"
border="0">
<tbody>
<tr>
<td>
<div style="border-left: 1px solid
rgb(5, 5, 5); padding-left:
7px;">In lib/NSSDropbox.php
change<br>
<br>
--- SNIP ---<br>
public function deliverEmail(<br>
$toAddr,<br>
$fromAddr,<br>
$subject,<br>
$content<br>
)<br>
{<br>
return mail(<br>
$toAddr,<br>
$subject,<br>
$content,<br>
($fromAddr==""?"":sprintf("From:
%s\r\nReply-to: %s\r\n",<br>
$fromAddr, $fromAddr)<br>
)<br>
);<br>
}<br>
--- SNIP ---<br>
to this:<br>
--- SNIP ---<br>
public function deliverEmail(<br>
$toAddr,<br>
$fromAddr,<br>
$subject,<br>
$content<br>
)<br>
{<br>
return mail(<br>
$toAddr,<br>
$subject,<br>
$content,<br>
($fromAddr==""?"":sprintf("From:
%s\r\nReply-to:
%s\r\nReturn-Path: %s\r\n",<br>
$fromAddr, $fromAddr, $fromAddr)<br>
)<br>
);<br>
}<br>
--- SNIP ---<br>
<br>
Please let me know if this
solves the problem for you, and
I will put it into the code.<br>
<br>
Jules.<br>
<br>
On 21/09/2010 21:48, Brad
Beckenhauer wrote:
<blockquote
cite="mid:4C98D3CE020000680006418B@smtp.aafp.org"
type="cite">
<meta name="GENERATOR"
content="MSHTML
8.00.7600.16625">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Georgia;
        panose-1:2 4 5 2 5 4 5 2 3 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin-right:0in;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";
        color:black;
        mso-believe-normal-left:yes;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";
        color:black;}
pre
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.EmailStyle19
        {font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
<div>I was looking at this
same issue yesterday, but
ran out of time.</div>
<div> </div>
<div>a snip from the web on
the Return-Path</div>
<div> </div>
<div>Envelope information:
Return-Path, Received<br>
Return-Path<br>
The value of a Return-Path
field is tokenizable. It
shows the return path of the
message, i.e., the address
that bounces will be sent
to. It is either (1) a <
token followed by a >
token, indicating an empty
return path, or (2) a
bracketed address. Two
examples:</div>
<div> </div>
<div> Return-Path:
<><br>
Return-Path: <<a
href="mailto:God@heaven.af.mil"
moz-do-not-send="true">God@heaven.af.mil</a>></div>
<div> </div>
<div>Messages transmitted
through SMTP generally do
not have Return-Path fields;
the return path is
transmitted out-of-band in
the SMTP MAIL request. When
a message is stored in a
mailbox, the return path is
stored in a Return-Path
field. If the message is
then retrieved (e.g.,
through POP) and sent
through another SMTP hop,
the Return-Path is removed
and the return path is again
sent out-of-band. </div>
<div> </div>
<div> </div>
<div>I'm pretty sure the
function calling it is in
the lib/NSSDropbox file, but
have not figured out exactly
how to add the coding.</div>
<div> </div>
<div>I'll be watching this
thread.</div>
<div>Brad</div>
<div> </div>
<div> </div>
<div><br>
<br>
>>> On 9/21/2010 at
2:44 PM, in message <a
class="moz-txt-link-rfc2396E"
href="mailto:9453A32CAC9FFB4D8F59285E34B6A50604AD27@hotc_exch.harperotc.com"
moz-do-not-send="true"><9453A32CAC9FFB4D8F59285E34B6A50604AD27@hotc_exch.harperotc.com></a>,
"Naz Snidanko" <a
class="moz-txt-link-rfc2396E"
href="mailto:nsnidanko@harperpowerproducts.com" moz-do-not-send="true"><nsnidanko@harperpowerproducts.com></a>
wrote:<br>
</div>
<table style="margin: 0px 0px
0px 15px; font-size: 1em;"
bgcolor="#f3f3f3" border="0">
<tbody>
<tr>
<td>
<div
style="border-left:
1px solid rgb(5, 5,
5); padding-left:
7px;">
<div
class="Section1">
<p
class="MsoNormal"><font
color="navy"
face="Arial"
size="2"><span
style="font-family:
Arial; color:
navy;
font-size:
10pt;">Hi,
ZendTo Users</span></font></p>
<p
class="MsoNormal"><font
color="navy"
face="Arial"
size="2"><span
style="font-family:
Arial; color:
navy;
font-size:
10pt;">Scenario:</span></font></p>
<p
class="MsoNormal"><font
color="navy"
face="Arial"
size="2"><span
style="font-family:
Arial; color:
navy;
font-size:
10pt;">User
creates
dropoff but
misspells
email address.
MTA tries to
deliver but
domain has no
MX record, so
it generates
bounce-back
email sent to
Return-Path:
header value,
which goes
nowhere (<a
href="mailto:www-data@server.domain.com"
moz-do-not-send="true">www-data@server.domain.com</a> in my case) and
thus it
creates
confusion </span></font></p>
<p
class="MsoNormal"><font
color="navy"
face="Arial"
size="2"><span
style="font-family:
Arial; color:
navy;
font-size:
10pt;">How can
I change
Return-Path:
header value
for an email
address of the
person that
created
dropoff? To
either From or
Reply-To? Tis
way person
will get
bounce back
message and
correct his
mistake.</span></font></p>
<p
class="MsoNormal"><font
color="navy"
face="Arial"
size="2"><span
style="font-family:
Arial; color:
navy;
font-size:
10pt;">Please
advice,</span></font></p>
<div>
<p
class="MsoNormal"><b><font
color="black"
face="Georgia"
size="1"><span
style="font-family:
Georgia;
font-size:
8pt;
font-weight:
bold;">Naz
Snidanko</span></font></b></p>
<p
class="MsoNormal"><b><font
color="black"
face="Georgia"
size="1"><span
style="font-family:
Georgia;
font-size:
8pt;
font-weight:
bold;">Desktop
& Network
Support</span></font></b></p>
<p
class="MsoNormal"><b><font
color="black"
face="Georgia"
size="1"><span
style="font-family:
Georgia;
font-size:
8pt;
font-weight:
bold;">Harper
Power Products
Inc.</span></font></b></p>
<p
class="MsoNormal"><b><font
color="black"
face="Georgia"
size="1"><span
style="font-family:
Georgia;
font-size:
8pt;
font-weight:
bold;">(p) 416
201- 7506</span></font></b></p>
<p
class="MsoNormal"><font
color="black"
face="Arial"
size="2"><span
style="font-family:
Arial;
font-size:
10pt;"><a
href="mailto:nsnidanko@harperpowerproducts.com"
moz-do-not-send="true">nsnidanko@harperpowerproducts.com</a></span></font></p>
</div>
</div>
</div>
</td>
</tr>
</tbody>
</table>
<pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
ZendTo mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ZendTo@zend.to" moz-do-not-send="true">ZendTo@zend.to</a>
<a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto" moz-do-not-send="true">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">Jules
--
Julian Field MEng CITP CEng
<a class="moz-txt-link-abbreviated" href="http://www.Zend.To" moz-do-not-send="true">www.Zend.To</a>
Need help fixing or optimising your systems?
Contact me!
Need help getting you started solving new requirements from your boss?
Contact me!
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
Follow me at twitter.com/JulesFM
</pre>
</div>
</td>
</tr>
</tbody>
</table>
<pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
ZendTo mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ZendTo@zend.to" moz-do-not-send="true">ZendTo@zend.to</a>
<a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto" moz-do-not-send="true">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">Jules
--
Julian Field MEng CITP CEng
<a class="moz-txt-link-abbreviated" href="http://www.Zend.To" moz-do-not-send="true">www.Zend.To</a>
Need help fixing or optimising your systems?
Contact me!
Need help getting you started solving new requirements from your boss?
Contact me!
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
Follow me at twitter.com/JulesFM
</pre>
</div>
</td>
</tr>
</tbody>
</table>
<pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
ZendTo mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:ZendTo@zend.to">ZendTo@zend.to</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">Jules
--
Julian Field MEng CITP CEng
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.Zend.To">www.Zend.To</a>
Need help fixing or optimising your systems?
Contact me!
Need help getting you started solving new requirements from your boss?
Contact me!
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
Follow me at twitter.com/JulesFM
</pre>
</div>
</td>
</tr>
</tbody>
</table>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
ZendTo mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ZendTo@zend.to">ZendTo@zend.to</a>
<a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a></pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">Jules
--
Julian Field MEng CITP CEng
<a class="moz-txt-link-abbreviated" href="http://www.Zend.To">www.Zend.To</a>
Need help fixing or optimising your systems?
Contact me!
Need help getting you started solving new requirements from your boss?
Contact me!
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
Follow me at twitter.com/JulesFM
</pre>
</body>
</html>