[CentOS] sendmail config finding wrong relay

Wed Sep 30 17:03:31 UTC 2015
Nels Lindquist <nlindq at maei.ca>

Hash: SHA1

On 9/30/2015 9:32 AM, Jerry Geis wrote:

> I set my sendmail.mc file to have a SMART_HOST entry of 
> mail.xyz.com I do "make" and "service sendmail restart" ... I 
> should be good, but no. :)

> however when I do a test mail - its trying to RELAY to another 
> host.
> I thought SMART_HOST was the only one it would try to relay to?
> yes there is only one SMART_HOST in my file, and sendmail.cf shows
> the correct name.

By which you mean that sendmail.cf contains the line:

DSrelay:mail.xyz.com ?

SMART_HOST will relay mail to destinations for which it doesn't have
explicit routing information.

Do you also have a mailertable defined which might include the
recipient domain, for example?

> How do I tell what is happening here? the maillog only shows it 
> trying to relay to the wrong host, not the one I entered.

Try "sendmail -d60.5 -bv [user at example.com]" to see what might be
going on with local address parsing.

- -- 
Nels Lindquist
<nlindq at maei.ca>
Version: GnuPG v2.0.20 (MingW32)