On 3/5/2011 11:43 PM, Nasser Heidari wrote:
Hi,
I've two Mail servers , one local server running on MS-Exchange and the
other one is my external mail server that my MTA is postfix.
I have setup Postfix as relay agent on Exchange, so all outgoing Emails
is travels through Postfix.
There are also two domains , one on the Exchange(test.local) and the
other on Postfix(test.edu).
Now I want to rewrite All of my emails domain from test.local to
test.edu when they traveling to outside network.
I know I can create generic file and rewrite Emails per user, but I want
to know if I could do it easier.
Regards,
Nasser
The easiest solution is to use smtp_generic_maps with a single
entry:
# main.cf
smtp_generic_maps = hash:/etc/postfix/generic
# /etc/postfix/generic
@example.local @example.edu
-- Noel Jones