I have a situation where I need two exchange servers from separate organisations to be able to recieve mail on the one domain name. I have figured that I would use a linux box of some flavour to run a script everytime mail was coming in to look up the username in the seperate domains, once it found the user in one of the domains it would forward that email to the appropriate exchange server, via SMTP.
So basically I just need a linux box sitting in front of the two exchange servers to seperate the mail. I would prefer to have two scripts, one to create a user list txt file by running a LDAP query on the AD's once a day and another to forward the mail by looking at that txt file. Im guessing I would need a mail server of some sort, exim maybe ? then configure its router to do the forwarding job.
Any suggestions would be greatly appreciated.