sendmail Deferred: Connection refused by localhost.localdomain.

sendmail -v me@mydomain.com < /dev/null

To change sendmail.cf line.

From: O DaemonPortOptions=Port=smtp,Address=127.0.0.1, Name=MTA

To: O DaemonPortOptions=Port=smtp, Name=MTA