First find the line in /etc/mail.sendmail.mc that looks like this:
Code:
dnl define(`SMART_HOST',`smtp.your.provider')
and change it to:
Code:
define(`SMART_HOST',`smtp.your.provider') dnl
the smtp.your.provider should be the fully qualified domain name of the Exchange server that will handle outbound mail.
Next you'll need to find the 'mailertable' line in /etc/mail.sendmail.mc and check that it looks exactly as it appears here.
Code:
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
Save this file.
Edit the file /etc/mail/mailertable and put in a line like this:
Code:
.my-domain.com smtp:[IP.AD.DR.ESS]
where the IP Address is that of the Exchange server that will handle mail your your domain (my-domain.com).
Last, do 'make -C /etc/mail' to regenerate the sendmail.cf, and the mailertable.db (and any other sendmail configs that need to be regenerated). You'll also need to restart sendmail since you've created a new cf file.
That's it.. you can start testing using 'sendmail -bv recipient@domain to figure out what sendmail is going to do with the mail.