<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 10">
<meta name=Originator content="Microsoft Word 10">
<link rel=File-List href="cid:filelist.xml@01C2F9BE.53DA8ED0">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="PersonName"/>
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]--><!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;
        mso-font-charset:0;
        mso-generic-font-family:swiss;
        mso-font-pitch:variable;
        mso-font-signature:553679495 -2147483648 8 0 66047 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-parent:"";
        margin:0in;
        margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;
        text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;
        text-underline:single;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        mso-pagination:widow-orphan;
        font-size:12.0pt;
        font-family:"Times New Roman";
        mso-fareast-font-family:"Times New Roman";}
span.EmailStyle17
        {mso-style-type:personal-reply;
        mso-style-noshow:yes;
        mso-ansi-font-size:10.0pt;
        mso-bidi-font-size:10.0pt;
        font-family:Arial;
        mso-ascii-font-family:Arial;
        mso-hansi-font-family:Arial;
        mso-bidi-font-family:Arial;
        color:navy;}
span.SpellE
        {mso-style-name:"";
        mso-spl-e:yes;}
span.GramE
        {mso-style-name:"";
        mso-gram-e:yes;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;
        mso-header-margin:35.4pt;
        mso-footer-margin:35.4pt;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */ 
 table.MsoNormalTable
        {mso-style-name:"Table Normal";
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0in 5.4pt 0in 5.4pt;
        mso-para-margin:0in;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=EN-US link=blue vlink=blue style='tab-interval:.5in'>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>This behavior is actually correct. What
you see in the <span class=SpellE>maillog</span> file, is the "envelope"
sender, and not the "from:" that you see in the email itself.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>When you view the message at the receiving
side, it shows up as <span class=SpellE><span class=GramE>rt</span></span>@<wherever>.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I think this is actually a security
feature of postfix, to always reflect the correct local sender (the user
running apache in this case), rather than try and take it out of the email
itself.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>As I do not want people to see this
envelope sender, I have used the <span class=SpellE>sender_canonical</span>
function of Postfix, to rewrite all from <span class=SpellE>httpd</span>@<host>.<domain>
to <span class=SpellE>rt</span>@<domain>, which then makes it look better
in the envelope. This has the side effect that it will also send failures bounces
back to <span class=SpellE>rt</span>@<domain> (unless failures-to has
been set) which might not be what you want, so you might want to rewrite to
something other than <span class=GramE>rt</span>.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I can see that RT sets the reply-to
correctly, so unless you have an absolute <span class=SpellE>braindead</span> <span
class=SpellE>mailprogram</span>, there shouldn't be any problems.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I do see that it does not set "Errors-To:<span
class=GramE>",</span> which is maybe something that is needed to prevent
the above side effect of failure messages. <span class=GramE>Any thoughts?</span><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I hope this helps.<o:p></o:p></span></font></p>

<div>

<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy;mso-no-proof:yes'>Regards, Jörn Hass</span></font><font
color=navy><span style='color:navy;mso-no-proof:yes'> <br>
</span></font><font size=1 color=navy face=Arial><span style='font-size:7.5pt;
font-family:Arial;color:navy;mso-no-proof:yes'>Senior Systems Engineer,
Infrastructure.</span></font><font color=navy><span style='color:navy;
mso-no-proof:yes'> <br>
</span></font><font size=1 color=navy face=Arial><span style='font-size:7.5pt;
font-family:Arial;color:navy;mso-no-proof:yes'>Internet Solutions</span></font><font
color=navy><span style='color:navy;mso-no-proof:yes'> <br>
</span></font><font size=1 color=navy face=Arial><span style='font-size:7.5pt;
font-family:Arial;color:navy;mso-no-proof:yes'>Tel:   
        +27 (11) 575 1000</span></font><font
color=navy><span style='color:navy;mso-no-proof:yes'> <br>
</span></font><font size=1 color=navy face=Arial><span style='font-size:7.5pt;
font-family:Arial;color:navy;mso-no-proof:yes'>Fax:   
        +27 (11) 388 3362</span></font><font
color=navy><span style='color:navy;mso-no-proof:yes'> <br>
</span></font><font size=1 color=navy face=Arial><span style='font-size:7.5pt;
font-family:Arial;color:navy;mso-no-proof:yes'>E-mail:
        jorn.hass@is.co.za</span></font><font
color=navy><span style='color:navy;mso-no-proof:yes'> <br>
</span></font><font size=1 color=navy face=Arial><span style='font-size:7.5pt;
font-family:Arial;color:navy;mso-no-proof:yes'>WWW:   
        <a href="http://www.is.co.za">http://www.is.co.za</a></span></font><font
color=navy><span style='color:navy;mso-no-proof:yes'> <br>
</span></font><font color=navy face=Arial><span style='font-family:Arial;
color:navy;mso-no-proof:yes'> </span></font><font color=navy><span
style='color:navy;mso-no-proof:yes'> </span></font><o:p></o:p></p>

</div>

<div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'>

<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'>-----Original Message-----<br>
<b><span style='font-weight:bold'>From:</span></b> Curtis Rempel
[mailto:curtis@telus.net<span class=GramE>] <br>
<b><span style='font-weight:bold'>Sent</span></b></span><b><span
style='font-weight:bold'>:</span></b> 03 April 2003 04:59 AM<br>
<b><span style='font-weight:bold'>To:</span></b> </span></font><st1:PersonName><font
 size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>rt-users@lists.fsck.com</span></font></st1:PersonName><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'><br>
<b><span style='font-weight:bold'>Subject:</span></b> [rt-users] RT 3.0,
postfix, wrong outgoing address</span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3 color=navy
face="Times New Roman"><span style='font-size:12.0pt;color:navy'>[<span
class=GramE>snip</span> to save space]<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'><br>
I suppose I could put in a postfix rewrite rule for apache to be <span
class=GramE>rt</span> instead, but then what about rt-comment? (or is simply
mapping apache to rt sufficient?) <br>
<br>
I would have thought that the above two Set commands would do the trick. 
What else am I missing? <br>
<br>
Thanks, <br>
<br>
Curtis <o:p></o:p></span></font></p>

</div>

</div>

</body>

</html>
<BR>
<BR>
<BR>
<BR>

<P><B><FONT SIZE=2 FACE="Arial">"This e-mail may contain confidential information and may be legally privileged and is intended only for the person to whom it is addressed. If you are not the intended recipient, you are notified that you may not use, distribute or copy this document in any manner whatsoever. Kindly also notify the sender immediately by telephone, and delete the e-mail. When addressed to clients of the company from where this e-mail originates ("the sending company ") any opinion or advice contained in this e-mail is subject to the terms and conditions expressed in any applicable terms of business or client engagement letter . The sending company does not accept liability for any damage, loss or expense arising from this e-mail and/or from the accessing of any files attached to this e-mail."</FONT></B> </P>