* Simon Croome <scro...@solent.ac.uk>: > On 05/05/2010 17:42, Victor Duchovni wrote: > >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. > > > Could someone give me example of this pls. ? >
Here's the easier version... Take a look at the "TABLE SEARCH ORDER" in man 5 transport. Here's an example: # main.cf transport_maps = hash:/etc/postfix/transports # /etc/postfix/transports firstname.lastn...@example.com relay:lotus.notes.server:25 firstname1.lastna...@example.com relay:lotus.notes.server:25 firstname2.lastna...@example.com relay:lotus.notes.server:25 example.com relay:ocs.server:25 -- All technical questions asked privately will be automatically answered on the list and archived for public access unless privacy is explicitely required and justified. saslfinger (debugging SMTP AUTH): <http://postfix.state-of-mind.de/patrick.koetter/saslfinger/>