Configuring Sendmail to pass all mail for a domain to an Exchange server
Posted on 2004-04-15
Running Sendmail 8.12.10 on a Redhat Linux 9.0 Enterprise machine. This server sits in a DMZ. Its hostname is "ns1priv" in the local domain "priv.local". We have masqueraded the domain so that outgoing mail shows as "firstname.lastname@example.org". Now we need to have this box accept all mail for "domain.com" and route it to an Exchange server that sits on the inside network.
At this point, testing mail sent from the Internet to "email@example.com" returns a "user unknown" message as the user doesn't exist on the localhost.
How can we configure Sendmail to pass all the mail that is for our "domain.com" into the Exchange server? Without becoming an open relay, of course.