How do i set up sendmail (8.7) so that incoming smtp mail to a linux box will automatically be routed on to other smtp mail servers. Using the following rules
Incoming mail XXX@domain1.com is to be routed on to another smtp mail server (local to the network) based on XXXX
ie Fred@domain1.com -> firstname.lastname@example.org
Bob@domain1.com -> Bob@mailserver2.demon1.com
Any other mail eg XXXX@anyolddomain.com is forwarded to a smarthost run by our internet provider.
Can this be achieved without a local dns server to look up the mailserver1 and mailserver2 ip addresses. Can sendmail be told to route to a ip address
eg email@example.com -> Fred@192.168.1.1
where 192.168.1.1 is a local mail server