You should use mailertable
to do what you want. If you have to use ip address instead of fqdn, the syntax is:
If I have to configure a service.switch file for sendmail, what would be the format of that?
What you mean by service.switch? IF you mean a startup file that is used when you run "service sendmail start", I guess it's already set when you installed sendmail