<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/1.0.4">
</HEAD>
<BODY LINK="#0000ff">
On Wed, 2003-04-02 at 23:52, Jorn Hass wrote:
    <BLOCKQUOTE>
    <FONT COLOR="#000080"><FONT SIZE="2"><I>This behavior is actually correct. What you see in the </FONT></FONT></I><FONT COLOR="#000080"><FONT SIZE="2"><I>maillog</FONT></FONT></I><FONT COLOR="#000080"><FONT SIZE="2"><I> file, is the "envelope" sender, and not the "from:" that you see in the email itself.</FONT></FONT></I>
    <BR>
    <FONT COLOR="#000080"><FONT SIZE="2"><I></FONT></FONT></I>
    <BR>
    <FONT COLOR="#000080"><FONT SIZE="2"><I>When you view the message at the receiving side, it shows up as </FONT></FONT></I><FONT COLOR="#000080"><FONT SIZE="2"><I>rt</FONT></FONT></I><FONT COLOR="#000080"><FONT SIZE="2"><I>@<wherever>.</FONT></FONT></I>
    <BR>
    <FONT COLOR="#000080"><FONT SIZE="2"><I></FONT></FONT></I>
    <BR>
    <FONT COLOR="#000080"><FONT SIZE="2"><I> </FONT></FONT></I>
    <BR>
    <FONT COLOR="#000080"><FONT SIZE="2"><I></FONT></FONT></I>
    <BR>
    <FONT COLOR="#000080"><FONT SIZE="2"><I>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.</FONT></FONT></I>
    <BR>
    <FONT COLOR="#000080"><FONT SIZE="2"><I></FONT></FONT></I>
    <BR>
    <FONT COLOR="#000080"><FONT SIZE="2"><I> </FONT></FONT></I>
    <BR>
    <FONT COLOR="#000080"><FONT SIZE="2"><I></FONT></FONT></I>
    <BR>
    <FONT COLOR="#000080"><FONT SIZE="2"><I>As I do not want people to see this envelope sender, I have used the </FONT></FONT></I><FONT COLOR="#000080"><FONT SIZE="2"><I>sender_canonical</FONT></FONT></I><FONT COLOR="#000080"><FONT SIZE="2"><I> function of Postfix, to rewrite all from </FONT></FONT></I><FONT COLOR="#000080"><FONT SIZE="2"><I>httpd</FONT></FONT></I><FONT COLOR="#000080"><FONT SIZE="2"><I>@<host>.<domain> to </FONT></FONT></I><FONT COLOR="#000080"><FONT SIZE="2"><I>rt</FONT></FONT></I><FONT COLOR="#000080"><FONT SIZE="2"><I>@<domain>, which then makes it look better in the envelope. This has the side effect that it will also send failures bounces back to </FONT></FONT></I><FONT COLOR="#000080"><FONT SIZE="2"><I>rt</FONT></FONT></I><FONT COLOR="#000080"><FONT SIZE="2"><I>@<domain> (unless failures-to has been set) which might not be what you want, so you might want to rewrite to something other than </FONT></FONT></I><FONT COLOR="#000080"><FONT SIZE="2"><I>rt</FONT></FONT></I><FONT COLOR="#000080"><FONT SIZE="2"><I>.</FONT></FONT></I>
    <BR>
    <FONT COLOR="#000080"><FONT SIZE="2"><I></FONT></FONT></I>
    <BR>
    <FONT COLOR="#000080"><FONT SIZE="2"><I> </FONT></FONT></I>
    <BR>
    <FONT COLOR="#000080"><FONT SIZE="2"><I></FONT></FONT></I>
    <BR>
    <FONT COLOR="#000080"><FONT SIZE="2"><I>I can see that RT sets the reply-to correctly, so unless you have an absolute </FONT></FONT></I><FONT COLOR="#000080"><FONT SIZE="2"><I>braindead</FONT></FONT></I><FONT COLOR="#000080"><FONT SIZE="2"><I> </FONT></FONT></I><FONT COLOR="#000080"><FONT SIZE="2"><I>mailprogram</FONT></FONT></I><FONT COLOR="#000080"><FONT SIZE="2"><I>, there shouldn't be any problems.</FONT></FONT></I>
    <BR>
    <FONT COLOR="#000080"><FONT SIZE="2"><I></FONT></FONT></I>
    <BR>
    <FONT COLOR="#000080"><FONT SIZE="2"><I> </FONT></FONT></I>
    <BR>
    <FONT COLOR="#000080"><FONT SIZE="2"><I></FONT></FONT></I>
    <BR>
    <FONT COLOR="#000080"><FONT SIZE="2"><I>I do see that it does not set "Errors-To:</FONT></FONT></I><FONT COLOR="#000080"><FONT SIZE="2"><I>",</FONT></FONT></I><FONT COLOR="#000080"><FONT SIZE="2"><I> which is maybe something that is needed to prevent the above side effect of failure messages. </FONT></FONT></I><FONT COLOR="#000080"><FONT SIZE="2"><I>Any thoughts?</FONT></FONT></I>
    <BR>
    <FONT COLOR="#000080"><FONT SIZE="2"><I></FONT></FONT></I>
    <BR>
    <FONT COLOR="#000080"><FONT SIZE="2"><I> </FONT></FONT></I>
    <BR>
    <FONT COLOR="#000080"><FONT SIZE="2"><I></FONT></FONT></I>
    <BR>
    <FONT COLOR="#000080"><FONT SIZE="2"><I>I hope this helps.</FONT></FONT></I>
    <BR>
    <FONT COLOR="#000080"><FONT SIZE="2"><I></FONT></FONT></I>
    <BR>
    <FONT COLOR="#000080"><FONT SIZE="2"><I>Regards, Jörn Hass</FONT></FONT></I>
    <BR>
    <FONT COLOR="#000080"><FONT SIZE="1"><I>Senior Systems Engineer, Infrastructure.</FONT></FONT></I>
    <BR>
    <FONT COLOR="#000080"><FONT SIZE="1"><I>Internet Solutions</FONT></FONT></I>
    <BR>
    <FONT COLOR="#000080"><FONT SIZE="1"><I>Tel:            +27 (11) 575 1000</FONT></FONT></I>
    <BR>
    <FONT COLOR="#000080"><FONT SIZE="1"><I>Fax:            +27 (11) 388 3362</FONT></FONT></I>
    <BR>
    <FONT COLOR="#000080"><FONT SIZE="1"><I>E-mail:         jorn.hass@is.co.za</FONT></FONT></I>
    <BR>
    <FONT COLOR="#000080"><FONT SIZE="1"><I>WWW:            </FONT></FONT></I><A HREF="http://www.is.co.za"><FONT SIZE="1"><I>http://www.is.co.za</FONT></I></A>
    <BR>
    <FONT COLOR="#000080"><FONT SIZE="3"><I> </FONT></FONT></I>
    </BLOCKQUOTE>
<FONT SIZE="3"></FONT>
<BR>
<FONT SIZE="3">Thanks for the info.    What appears to have been happening is this: all email is sent/received from an external ISP - I use fetchmail to populate the mailboxes on the local machine from the ISP.  In addition, the local machine is configured to use the ISP for outgoing SMTP.  Therein was the problem: the ISP validates outgoing email with my domain and was complaining that </FONT><A HREF="mailto:apache@mydomain.com"><FONT SIZE="3">apache@mydomain.com</FONT></A><FONT SIZE="3"> was not a valid address.  The fix was to add a bogus email address, </FONT><A HREF="mailto:apache@mydomain.com"><FONT SIZE="3">apache@mydomain.com</FONT></A><FONT SIZE="3">, at my ISP via my account configuration utilities.  Once this bogus account was in place, the ISP was able to validate the outgoing RT email and as you suggested, the From: lines are indeed correct - it was the Sender line (</FONT><A HREF="mailto:apache@mydomain.com"><FONT SIZE="3">apache@mydomain.com</FONT></A><FONT SIZE="3">) that was tripping on the ISP email validation logic.</FONT>
<BR>
<FONT SIZE="3"></FONT>
<BR>
<FONT SIZE="3">Curtis</FONT>
    <BLOCKQUOTE>
    <FONT COLOR="#737373"><FONT SIZE="2"><I></FONT></FONT></I>
    <BR>
    <FONT COLOR="#737373"><FONT SIZE="2"><I>-----Original Message-----</FONT></FONT></I>
    <BR>
    <FONT COLOR="#737373"><FONT SIZE="2"><B><I>From:</FONT></FONT></B></I><FONT COLOR="#737373"><FONT SIZE="2"><I> Curtis Rempel [mailto:curtis@telus.net</FONT></FONT></I><FONT COLOR="#737373"><FONT SIZE="2"><I>] </FONT></FONT></I>
    <BR>
    <FONT COLOR="#737373"><FONT SIZE="2"><B><I>Sent</FONT></FONT></B></I><FONT COLOR="#737373"><FONT SIZE="2"><B><I>:</FONT></FONT></B></I><FONT COLOR="#737373"><FONT SIZE="2"><I> 03 April 2003 04:59 AM</FONT></FONT></I>
    <BR>
    <FONT COLOR="#737373"><FONT SIZE="2"><B><I>To:</FONT></FONT></B></I><FONT COLOR="#737373"><FONT SIZE="2"><I> </FONT></FONT></I><FONT COLOR="#737373"><FONT SIZE="2"><I>rt-users@lists.fsck.com</FONT></FONT></I>
    <BR>
    <FONT COLOR="#737373"><FONT SIZE="2"><B><I>Subject:</FONT></FONT></B></I><FONT COLOR="#737373"><FONT SIZE="2"><I> [rt-users] RT 3.0, postfix, wrong outgoing address</FONT></FONT></I>
    <BR>
    <FONT COLOR="#000080"><FONT SIZE="3"><I></FONT></FONT></I>
    <BR>
    <FONT COLOR="#000080"><FONT SIZE="3"><I>[</FONT></FONT></I><FONT COLOR="#000080"><FONT SIZE="3"><I>snip</FONT></FONT></I><FONT COLOR="#000080"><FONT SIZE="3"><I> to save space]</FONT></FONT></I>
    <BR>
    <FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
    <BR>
    <FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
    <BR>
    <FONT COLOR="#737373"><FONT SIZE="3"><I>I suppose I could put in a postfix rewrite rule for apache to be </FONT></FONT></I><FONT COLOR="#737373"><FONT SIZE="3"><I>rt</FONT></FONT></I><FONT COLOR="#737373"><FONT SIZE="3"><I> instead, but then what about rt-comment? (or is simply mapping apache to rt sufficient?) </FONT></FONT></I>
    <BR>
    <FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
    <BR>
    <FONT COLOR="#737373"><FONT SIZE="3"><I>I would have thought that the above two Set commands would do the trick.  What else am I missing? </FONT></FONT></I>
    <BR>
    <FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
    <BR>
    <FONT COLOR="#737373"><FONT SIZE="3"><I>Thanks, </FONT></FONT></I>
    <BR>
    <FONT COLOR="#737373"><FONT SIZE="3"><I></FONT></FONT></I>
    <BR>
    <FONT COLOR="#737373"><FONT SIZE="3"><I>Curtis </FONT></FONT></I>
    <BR>
    
    </BLOCKQUOTE>
</BODY>
</HTML>