<div dir="ltr">I would suggest using your MTA to do this. Much easier. </div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 6, 2014 at 9:27 PM, Furnish, Trever G <span dir="ltr">&lt;<a href="mailto:TGFurnish@herffjones.com" target="_blank">TGFurnish@herffjones.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">My company has a subset of users for whom we are still doing &quot;dumb forwards&quot;, and this practice is now resulting in undeliverable mail thanks to the recent change of dmarc policy published by AOL and Yahoo.  I thought I could work around this by passing the mail for these users through a mailscanner system (just as it was on the verge of finally being decommissioned) and turning all mail into attachments.  It looked promising, but it fails, because MailScanner still is using the original From and To message headers on the new message it creates even for attachments.<br>

<br>
Is there any way anyone can suggest to get around this?  At this point I&#39;m even pondering just modifying the mailscanner code directly or trying to hook in an &#39;always called last&#39; function to modify the message.<br>

<br>
What&#39;s happening now:<br>
        MailScanner creates a new message and attaches the original.  In both the new message and the attached original, there is a &quot;From:&quot; header saying e.g. &quot;From: <a href="mailto:bob@aol.com">bob@aol.com</a>&quot;.<br>

<br>
What I wanted to happen:<br>
        Mailscanner would create a new message and attach the original.  In the NEW message the From header would have value &quot;<a href="mailto:postmaster@mydomain.com">postmaster@mydomain.com</a>&quot; or some such.<br>

<br>
Any suggestions?<br>
<br>
--<br>
Trever Furnish, <a href="mailto:tgfurnish@herffjones.com">tgfurnish@herffjones.com</a><br>
Solutions Architect<br>
Herff Jones Server Solutions Group (SSG)<br>
Phone: <a href="tel:317.612.3519" value="+13176123519">317.612.3519</a>  Cell: <a href="tel:317.366.9258" value="+13173669258">317.366.9258</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
MailScanner mailing list<br>
<a href="mailto:mailscanner@lists.mailscanner.info">mailscanner@lists.mailscanner.info</a><br>
<a href="http://lists.mailscanner.info/mailman/listinfo/mailscanner" target="_blank">http://lists.mailscanner.info/mailman/listinfo/mailscanner</a><br>
<br>
Before posting, read <a href="http://wiki.mailscanner.info/posting" target="_blank">http://wiki.mailscanner.info/posting</a><br>
<br>
Support MailScanner development - buy the book off the website!<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div><div><br>--<br></div>Jerry Benton<br></div>Mailborder Systems<br><a href="http://www.mailborder.com" target="_blank">www.mailborder.com</a><br>
</div>
</div>