Hi all, 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. :) If I do "host mail.xyz.com" I get the correct address and if I "telnet mail.xyz.com 25" I get a connection. 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. 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. Any thoughts? Thanks, Jerry
-----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-----
>By which you mean that sendmail.cf contains the line: >DSrelay:mail.xyz.com ?Yes that is correct.>SMART_HOST will relay mail to destinations for which it doesn'thave explicit routing information.> Do you also have a mailertable defined which might include the recipientdomain, for example? No there are no other entries in the mailertable or access files.> Try "sendmail -d60.5 -bv [user at example.com]" to see what mightbe going on with local address parsing. This looks OK. (names have been changed) sendmail -d60.5 -bv bob at address.com map_lookup(dequote, root, %0=root) => NOT FOUND (0) map_lookup(host, address.com, %0=address.com) => address.com. (0) map_lookup(mailertable, address.com, %0=address.com) => NOT FOUND (0) map_lookup(mailertable, .com, %0=.com, %1=address, %2=address) => NOT FOUND (0) map_lookup(mailertable, ., %0=., %1=address.com) => NOT FOUND (0) bob at address.com... deliverable: mailer relay, host mail.xyz.com, user bob at address.com So nothing extra in any files - but then /var/log/maillog instread of relay to mail.xyz.com it goes somewhere else. Thoughts? Thanks, jerry
On Wed, 30 Sep 2015 13:48:12 -0400 Jerry Geis wrote:> So nothing extra in any files - but then /var/log/maillog instread of relay > to mail.xyz.com it goes somewhere else.Where is "somewhere else" and what in what part of the sendmail configuration do you have somewhere else defined, listed or mentioned? -- MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com
Le 2015/09/30 17:32 +0200, Jerry Geis a ?crit:> Hi all, > > 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. :)As explained by others, SMART_HOST is used for domains for which it has no information (basically, it can't find an MX or resolve the name). If you want to relay all mail, you need to also add MAIL_HUB. Laurent
Check the config not only in sendmail.mc, but also in submit.mc
Am 30.09.2015 um 22:18 schrieb Laurent Blume:> Le 2015/09/30 17:32 +0200, Jerry Geis a ?crit: >> Hi all, >> >> 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. :) > > As explained by others, SMART_HOST is used for domains for which it has > no information (basically, it can't find an MX or resolve the name). > If you want to relay all mail, you need to also add MAIL_HUB.Sorry, that's not correct what you say about SMART_HOST. define(`SMART_HOST', `host.domain.tld')dnl is the right way to tell Sendmail to relay (the relay mailer is used implicitly) all outbound mail to that specified host. But it is important to pay attention for the order of statements in the sendmail.mc configuration files, as one of the first chapters of the cf/README explains.> LaurentAlexander