Problems sending mail to SMTP Server 

http://www.experts-exchange.com/Operating_Systems/Linux/Linux_Administration/Q_21489534.html

For some reason it appears that the mailer (ESMTP according to /var/log/maillog) is talking to a SMTP server which it is detecting by DNS. This is an SMTP server at another one of our sites in another country. I dont want it to use this SMTP server.

How do I force the server to use an SMTP server that I want?

marc15101

Problems sending mail to SMTP Server 

I reinstalled Sendmail onto the server and then added the following line to the sendmail.mc file:

define(`SMART_HOST', `mail.server')dnl

Recompiled the sendmail.cf file using this file.

Restarted sendmail and now everything works.

marc15101 Date: 07/14/2005