On Wed, May 05, 2010 at 04:21:37PM +0100, Simon Croome wrote:
> We are replacing sendmail as our MTA to Postfix and our internal mail relay
> receives mail from our edge MTA server <#> in the DMZ, once mail is
> received then any email address to a staff member for instance : <first
> name>.< last name >@example.com is sent to a Lotus Notes server, and any
> other email <#> < whatever >@example.com is sent to our OCS server.
>
> We have had a rule in our sendmail configuration that has been able to do
> this for many years but I cannot seem to find any examples on how this can
> be done in postfix.
>
> Someone on another forum suggested that you achieve this in postfix using
> the transport file, but could any one give me an example how to get this
> working ?
http://www.postfix.org/ADDRESS_REWRITING_README.html
You can rewrite addresses to a recipient-dependent internal domain,
which is then routed to the right mail-store, or use per-user transport
tables.
I recommend the first approach on architectural grounds, but the second
is easier to implement in some cases.
--
Viktor.
P.S. Morgan Stanley is looking for a New York City based, Senior Unix
system/email administrator to architect and sustain our perimeter email
environment. If you are interested, please drop me a note.