migrating from sendmail to postfix. split domain questions
Posted on 2008-11-07
I have a server with sendmail 8.10. It is hosting the mail domain oj.pa.
the sendmail server is called sendmail.oj.pa
We need to migrate to a new hardware/software platform. So we are moving to centos/postfix.
I need to implement a split domain scenario where the two servers can send/receive email for the same domain while I migrate all the sendmail users to postfix.
So far I have done this:
a- new machine has postfix installed. will receive mail for domain oj.pa. this new machine is called postfix.oj.pa
b- users in sendmail.oj.pa are in format firstname.lastname@example.org
c- users in postfix.oj.pa are in format email@example.com
d- postfix.oj.pa will be the primary server, getting all mail from internet and sending all mail to internet.
e- when postfix.oj.pa gets email destinated for firstname.lastname@example.org it will deliver locally
f- when postfix.oj.pa gets email destined for email@example.com it will deliver via a postfix transport map to the sendmail.oj.pa machine.
In the postfix/transport file there will be several lines, one per user, like this:
With the above line i solve the issue of allowing email received from internet but destined to the old mail server, to be sent correctly.
Now, I need the opposite. Since the migration cannot be done all at once, I need to allow the sendmail.oj.pa machine to be able to send to new users in the postfix system.
What will the postfix/transport equivalent be in sendmail?
/etc/mail/somefile that has a line like:
Both systems are using Linux Centos 5.0