I have a network specific issue. This is a result of the network layout.
One of our SMTP servers resolves via DNS to IP A. Due to firewalls, the way to get to it is actually IP B.
When email is sent from a different server, it tries to resolve, gets IP A and the connection fails.
I tried to add an entry in the hosts file with IP B, but sendmail keeps on resolving the IP via DNS.
Is there any way to prevent the system from resolving IP A and using IP B in the hosts file?