I am trying to use a SMART_HOST on RHEL7 with sendmail. I have configured sendmail.mc as follows:
define(`SMART_HOST', `my.relay.com')dnl
After compiling I have this line in sendmail.cf:
# "Smart" relay host (may be null)
DS[my.relay.com]
So it seems to have accepted it. Restarted sendmail service. When sending a test mail, I find the following in the log and no mail arrives (obviously):
Apr 24 11:27:13 myhost sendmail[51939]: 13O9RDBi051939: to=webmaster@myhost.com, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30008, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (13O9RDpv051940 Message accepted for delivery)
For some reason it still relays to relay=[127.0.0.1] and I can't figure out the reason after sheer endless research. Any advice?