<div class="gmail_extra">Hi, Marlon -</div><div class="gmail_extra"><br></div><div class="gmail_extra">I spotted that here too…</div><div class="gmail_extra"><br></div><div class="gmail_extra">The problem is not with ZendTo per se. ZendTo is simply using PHP&#39;s functionality to handle sending the email message. I suspect your PHP is, like ours was, simply piping the message into the &quot;sendmail&quot; program, which then handles transmitting/delivering it.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">By default Sendmail sets the sender&#39;s address in the &quot;SMTP envelope&quot; of the message (the thing you&#39;re seeing in the message header) to the username of the currently running program, followed by &quot;@&quot; then the name of the computer its running on. If you check, you&#39;ll see that ZendTo is running within your web server (Apache?), and that this is running on your computer as username &quot;www-data&quot;. (Therefore the email address &lt;<a href="mailto:www-data@mydomain.ca">www-data@mydomain.ca</a>&gt; will probably actually exist, unless your email system explicitly overrides and forbids it.)</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">To set the sender address in the SMTP envelope to something else you need to alter the command that PHP uses to call up sendmail when handing over the message for transmission.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">We did this by editing the file /etc/php5/apache2/php.ini and changed the line setting up the sendmail command to read:</div><div class="gmail_extra"><br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px">
<div class="gmail_extra">sendmail_path = &quot;/usr/sbin/sendmail -t -i -<a href="mailto:fdo-not-reply@york.ac.uk">fdo-not-reply@york.ac.uk</a>&quot;</div></blockquote><div class="gmail_extra"><br></div><div class="gmail_extra">
It&#39;s the &quot;-fsomeadress@yoursite.domain&quot; that forces sendmail to set the sender address in the SMTP envelope to the address given here instead of making one up based on the username the process is running as and the name of the computer.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">According to my records we also changed the /etc/php5/cli/php.ini file, but I can&#39;t for the life of me spot what change we put into that one. (I think this file is the configuration for PHP when run from the command line rather than from Apache?)</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">Cheers,</div><div class="gmail_extra">Mike B-)</div><div class="gmail_extra"><br><div class="gmail_quote">On 23 November 2012 16:07, Marlon R Deerr <span dir="ltr">&lt;<a href="mailto:MDeerr@tgf.ca" target="_blank">MDeerr@tgf.ca</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><p class="">I sent myself a drop-off to my personal Gmail account.  The header information for that email says the following:</p>

<p class="">Received-SPF: pass (<a href="http://google.com" target="_blank">google.com</a>: domain of <b><span style="color:red">www-data</span></b>@<a href="http://mydomain.ca" target="_blank">mydomain.ca</a> designates 38.99.162.170 as permitted sender)</p>

<p class="">Question: Where did it get www-data@  come from?  That email address does not exist in domain.  Is this some preference setting I need to correct in my setup?</p></blockquote></div>-- <br><font size="1"><font face="&#39;arial narrow&#39;, sans-serif"><span style="font-size:small">IT Services, The University of York, Heslington, York YO10 5DD, UK<br>
Tel: +44-1904-323811</span><span style="font-size:small"><br>Disclaimer: &lt;</span><a href="http://www.york.ac.uk/docs/disclaimer/email.htm" target="_blank"><span style="font-size:small">http://www.york.ac.uk/docs/disclaimer/email.htm</span></a><span style="font-size:small">&gt;</span></font><br>
</font><br>
</div>