<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Jake,<br>
<br>
As Mike says, this will only work if *only* internal users are
allowed to send drop-offs. Otherwise SPF and DMARC will shoot you
down.<br>
<br>
Take a look at /opt/zendto/lib/NSSDropbox.php.<br>
Provided you're reasonably up to date, around like 1287 you should
see a little section of code like this:<br>
(search for "addReplyTo" if you can't immediately find it)<br>
<br>
<tt> if ($fromAddr!="") {</tt><tt><br>
</tt><tt> if (preg_match('/ /', $fromAddr)) {</tt><tt><br>
</tt><tt> $s = array();</tt><tt><br>
</tt><tt> $s = $mail->parseAddresses($fromAddr);</tt><tt><br>
</tt><tt> $mail->addReplyTo($s[0]['address'],
$s[0]['name']);</tt><tt><br>
</tt><tt> } else {</tt><tt><br>
</tt><tt> $mail->addReplyTo($fromAddr);</tt><tt><br>
</tt><tt> }</tt><tt><br>
</tt><tt> }</tt><br>
<br>
Add 2 lines to it (highlighted in bold below) so it says this
instead:<br>
<br>
<tt> if ($fromAddr!="") {</tt><tt><br>
</tt><tt> if (preg_match('/ /', $fromAddr)) {</tt><tt><br>
</tt><tt> $s = array();</tt><tt><br>
</tt><tt> $s = $mail->parseAddresses($fromAddr);</tt><tt><br>
</tt><tt> $mail->addReplyTo($s[0]['address'],
$s[0]['name']);</tt><tt><br>
</tt><b><tt> $mail->setFrom($s[0]['address'],
$s[0]['name']);</tt></b><tt><br>
</tt><tt> } else {</tt><tt><br>
</tt><tt> $mail->addReplyTo($fromAddr);</tt><tt><br>
</tt><b><tt> $mail->setFrom($fromAddr);</tt></b><tt><br>
</tt><tt> }</tt><tt><br>
</tt><tt> }</tt><br>
<br>
That should do what you want.<br>
No need to restart Apache or anything, it will use the new code
immediately.<br>
<br>
Note that if you make this change, it will get removed again when
you next update ZendTo.<br>
<br>
Let me know how you get on.<br>
<br>
Cheers,<br>
Jules.<br>
<br>
<br>
<div class="moz-cite-prefix">On 02/03/2018 9:22 am, Mike Brudenell
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAPXCWavZR7KnpZ8-hCGxgcyhESFMQgDiApoevbFON7freat1Pw@mail.gmail.com">
<div dir="ltr">Hi, Jake -
<div><br>
</div>
<div>You'll run into problems doing this if the person dropping
off the file has an email address outside of your own domains.
Effectively you'd be setting up your mail server to forge
emails to be from someone else's domain: something their SPF
and DMARC email authentication records might forbid, in which
case the messages you generate would likely be marked as spam
or rejected if going to someone whose mail service checks and
respects SPF and DMARC.</div>
<div><br>
</div>
<div>However if, as you say, only your own internal users are
allowed to drop off files and so are using your own email
addresses there's less likely to be a problem. (If you manage
to set it up do make a note to yourself somewhere not to
enable uploads for external people without changing the From
configuration! :-)</div>
<div><br>
</div>
<div>Cheers,</div>
<div>Mike B-)</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 1 March 2018 at 21:34, Sallee, Jake
<span dir="ltr"><<a href="mailto:Jake.Sallee@umhb.edu"
target="_blank" moz-do-not-send="true">Jake.Sallee@umhb.edu</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hello all!<br>
<br>
I would like to be able to configure ZendTo to use the email
address of the person dropping off the file as the "from"
address. Doing this allows me to setup rules in my email
server that change the email path based on my AD, which I
like.<br>
<br>
#1) Is this possible?<br>
<br>
and<br>
<br>
#2) Is this a bad thing?<br>
<br>
In my environment only my AD users are allowed to drop off
files that are bound for external users so the email ZendTo
would be using would always be a legitimate email.<br>
<br>
I have Googled this but to no avail. If anyone has any
input please feel free to contribute. Thank you in advance.<br>
<br>
Jake Sallee<br>
Godfather of Bandwidth<br>
System Engineer<br>
University of Mary Hardin-Baylor<br>
<a href="http://WWW.UMHB.EDU" rel="noreferrer"
target="_blank" moz-do-not-send="true">WWW.UMHB.EDU</a><br>
<br>
900 College St.<br>
Belton, Texas<br>
76513<br>
<br>
Fone: 254-295-4658<br>
Phax: 254-295-4221<br>
<br>
______________________________<wbr>_________________<br>
ZendTo mailing list<br>
<a href="mailto:ZendTo@zend.to" moz-do-not-send="true">ZendTo@zend.to</a><br>
<a
href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://mailman.ecs.soton.ac.<wbr>uk/mailman/listinfo/zendto</a><br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="gmail_signature" data-smartmail="gmail_signature">
<div dir="ltr">
<div><font color="#666666">Systems Administrator &
Change Manager</font></div>
<div><font color="#666666">IT Services, University of York,
Heslington, York YO10 5DD, UK</font></div>
<div><font color="#666666">Tel: +44-(0)1904-323811</font></div>
<div><font color="#666666"><br>
</font></div>
<div><font color="#666666">Web:<span style="white-space:pre">                </span><a
href="http://www.york.ac.uk/it-services"
target="_blank" moz-do-not-send="true">www.york.ac.uk/it-services</a></font></div>
<div><font color="#666666">Disclaimer:<span style="white-space:pre">        </span><a
href="http://www.york.ac.uk/docs/disclaimer/email.htm"
target="_blank" moz-do-not-send="true">www.york.ac.uk/docs/disclaimer/email.htm</a></font></div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
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 CEng CITP MBCS MIEEE MACM
'The paths we take sometimes lead us away from people we know and
love. But in the end what matters is that we affect the lives of
others for the better somehow, whomever we are, whatever our story.
Obsession always destroys what it intended to nurture: but if
you're able to let yourself love honestly and without fear, maybe
that huge heart you have will somehow set you free.' - Eve Lockhart
<a class="moz-txt-link-abbreviated" href="http://www.Zend.To">www.Zend.To</a>
Twitter: @JulesFM
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
</pre>
</body>
</html>