[rt-users] RT 3.0, postfix, wrong outgoing address

Kirill Miazine km-lists at krot.org
Thu Apr 3 02:06:31 EST 2003


Jorn Hass wrote:
> This behavior is actually correct. What you see in the maillog file, is the
> "envelope" sender, and not the "from:" that you see in the email itself.
> When you view the message at the receiving side, it shows up as
> rt@<wherever>.
>  
> 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.

No. It is not security related at all. Postfix imposes to restrictions
(compared to Exim where you have to allow use of -f explicitly) on who
can use -f to set the envelope sender.

> As I do not want people to see this envelope sender, I have used the
> sender_canonical function of Postfix, to rewrite all from
> httpd@<host>.<domain> to rt@<domain>, which then makes it look better in the
> envelope. This has the side effect that it will also send failures bounces
> back to rt@<domain> (unless failures-to has been set) which might not be
> what you want, so you might want to rewrite to something other than rt.

That's a hack. :)

-- 
Kirill Miazine, Stud. Jur.
Faculty of Law, University of Oslo




More information about the rt-users mailing list