[CentOS] sendmail config finding wrong relay

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

-----BEGIN PGP SIGNED MESSAGE-----
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>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (MingW32)

iEYEARECAAYFAlYMFeEACgkQh6z5POoOLgTeegCglJFDPQCCtFk+1IAKxOJeigy4
KLsAn1tm16i4237h19afL5fs1QpG2MH6
=uBqL
-----END PGP SIGNATURE-----