OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
[Newbie] Can I perform origin dependant domain rewriting?

From: Greg Cowie (cowiecorefa.com)
Date: Mon Dec 10 2007 - 11:21:09 CST


System - postfix 2.4.1 running on Fedora Core 4

If anyone could suggest a course of action, it would be greatly
appreciated. I think I've done my homework, but I'm hoping that I've
just overlooked something in the documentation/group archives/google -
maybe my terms aren't cannon.

I want to rewrite the domain on outgoing email iff it matches one of our
domains (basically rebranding our outgoing email without reconfiguring
each of 300+ email clients), but I don't want to rewrite the domain name
if the email is NOT from inside our network. I'm able to set up the
rewriting using a canonical map, but this seems to be an all or nothing
proposition. Is there any way to rewrite the domain name on any mail
originating from mynetworks, and not rewrite the same domain if it
originates outside of mynetworks?

Any advice appreciated, I can't seem to find the answer myself.

Thanks in advance,
Greg