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
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.
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@. to rt@, which then makes it look better in the
envelope. This has the side effect that it will also send failures bounces
back to rt@ (unless failures-to has been set) which might not be
what you want, so you might want to rewrite to something other than rt.
I can see that RT sets the reply-to correctly, so unless you have an
absolute braindead mailprogram, there shouldn’t be any problems.
I do see that it does not set “Errors-To:”, which is maybe something that is
needed to prevent the above side effect of failure messages. Any thoughts?
I hope this helps.
Regards, Jörn Hass
Senior Systems Engineer, Infrastructure.
Tel: +27 (11) 575 1000
Fax: +27 (11) 388 3362
WWW: http://www.is.co.za http://www.is.co.za-----Original Message-----
From: Curtis Rempel [mailto:email@example.com]
Sent: 03 April 2003 04:59 AM
Subject: [rt-users] RT 3.0, postfix, wrong outgoing address
[snip to save space]
I suppose I could put in a postfix rewrite rule for apache to be rt instead,
but then what about rt-comment? (or is simply mapping apache to rt
I would have thought that the above two Set commands would do the trick.
What else am I missing?
"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.”