<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic weird behaviour when sendmail solves the hostname of the relay server in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/weird-behaviour-when-sendmail-solves-the-hostname-of-the-relay/m-p/4714910#M42772</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;The sendmail of my node 'node5' is configured to use a relay server (suppose 'relay').&lt;BR /&gt;&lt;BR /&gt;There are 2 domain names due to a company name change. Suppose 'YYY.com' is the older domain name and 'ZZZ.com' is newer one.&lt;BR /&gt;They both are equivalent, i.e., node5.YYY.com and node5.ZZZ.com solves to the same IP address BUT&lt;BR /&gt;&lt;BR /&gt;DNS solve the relay host name differently acording to the domain name:&lt;BR /&gt;&lt;BR /&gt;  relay.YYY.com --&amp;gt; 1.1.1.7&lt;BR /&gt;  relay.ZZZ.com --&amp;gt; 1.2.2.7&lt;BR /&gt;&lt;BR /&gt;'node5' cannot access to 1.1.1.7 due to firewall rules, therefore, 'node5' must use relay.ZZZ.com.&lt;BR /&gt;&lt;BR /&gt;NOW pay attention on the following.&lt;BR /&gt;&lt;BR /&gt;The host name of 'node5' is found without domain name in /etc/sysconfig/network:&lt;BR /&gt;&lt;BR /&gt; HOSTNAME=node5&lt;BR /&gt;&lt;BR /&gt;it also appears in the /etc/hosts:&lt;BR /&gt;&lt;BR /&gt; 1.2.2.14 node5 node5.YYY.com&lt;BR /&gt;&lt;BR /&gt;but in the file /etc/resolv.conf the domain name is ZZZ.com:&lt;BR /&gt;&lt;BR /&gt; domain ZZZ.com&lt;BR /&gt;&lt;BR /&gt;In the file /etc/mail/sendmail.cf appears&lt;BR /&gt;&lt;BR /&gt; DSrelay.YYY.com&lt;BR /&gt;&lt;BR /&gt;BUT the sendmail log shows the e-mail is delivered to relay.ZZZ.com (1.2.2.7) (resolved wrongly) !!!&lt;BR /&gt;How can it be?&lt;BR /&gt;&lt;BR /&gt;The commands nslookup and ping always resolve the name relay.YYY.com to 1.1.1.7.&lt;BR /&gt;&lt;BR /&gt;If I change any of the following:&lt;BR /&gt; 1. add a domain name in /etc/sysconfig/network (for example node5.ZZZ.com)&lt;BR /&gt; 2. change the domain name in /etc/resolv.conf (search YYY.com)&lt;BR /&gt; 3. in the /etc/hosts file, add a domain name (node5.ZZZ.com) OR remove the alias of other domain name (removing node5.YYY.com)&lt;BR /&gt;&lt;BR /&gt;the sendmail tries to deliver e-mail to relay.YYY.com (1.1.1.7) --&amp;gt; resolving right&lt;BR /&gt;&lt;BR /&gt;I think the mixture of domain names might be the root of the sendmail problem but my skills of sendmail configuration are low.&lt;BR /&gt;&lt;BR /&gt;P.D: the DNS server contains MX register pointing to relay.YYY.com&lt;BR /&gt;&lt;BR /&gt;ZZZ.com    mail exchanger = 10 relay.YYY.com.</description>
    <pubDate>Thu, 18 Nov 2010 08:12:28 GMT</pubDate>
    <dc:creator>Jdamian</dc:creator>
    <dc:date>2010-11-18T08:12:28Z</dc:date>
    <item>
      <title>weird behaviour when sendmail solves the hostname of the relay server</title>
      <link>https://community.hpe.com/t5/operating-system-linux/weird-behaviour-when-sendmail-solves-the-hostname-of-the-relay/m-p/4714910#M42772</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;The sendmail of my node 'node5' is configured to use a relay server (suppose 'relay').&lt;BR /&gt;&lt;BR /&gt;There are 2 domain names due to a company name change. Suppose 'YYY.com' is the older domain name and 'ZZZ.com' is newer one.&lt;BR /&gt;They both are equivalent, i.e., node5.YYY.com and node5.ZZZ.com solves to the same IP address BUT&lt;BR /&gt;&lt;BR /&gt;DNS solve the relay host name differently acording to the domain name:&lt;BR /&gt;&lt;BR /&gt;  relay.YYY.com --&amp;gt; 1.1.1.7&lt;BR /&gt;  relay.ZZZ.com --&amp;gt; 1.2.2.7&lt;BR /&gt;&lt;BR /&gt;'node5' cannot access to 1.1.1.7 due to firewall rules, therefore, 'node5' must use relay.ZZZ.com.&lt;BR /&gt;&lt;BR /&gt;NOW pay attention on the following.&lt;BR /&gt;&lt;BR /&gt;The host name of 'node5' is found without domain name in /etc/sysconfig/network:&lt;BR /&gt;&lt;BR /&gt; HOSTNAME=node5&lt;BR /&gt;&lt;BR /&gt;it also appears in the /etc/hosts:&lt;BR /&gt;&lt;BR /&gt; 1.2.2.14 node5 node5.YYY.com&lt;BR /&gt;&lt;BR /&gt;but in the file /etc/resolv.conf the domain name is ZZZ.com:&lt;BR /&gt;&lt;BR /&gt; domain ZZZ.com&lt;BR /&gt;&lt;BR /&gt;In the file /etc/mail/sendmail.cf appears&lt;BR /&gt;&lt;BR /&gt; DSrelay.YYY.com&lt;BR /&gt;&lt;BR /&gt;BUT the sendmail log shows the e-mail is delivered to relay.ZZZ.com (1.2.2.7) (resolved wrongly) !!!&lt;BR /&gt;How can it be?&lt;BR /&gt;&lt;BR /&gt;The commands nslookup and ping always resolve the name relay.YYY.com to 1.1.1.7.&lt;BR /&gt;&lt;BR /&gt;If I change any of the following:&lt;BR /&gt; 1. add a domain name in /etc/sysconfig/network (for example node5.ZZZ.com)&lt;BR /&gt; 2. change the domain name in /etc/resolv.conf (search YYY.com)&lt;BR /&gt; 3. in the /etc/hosts file, add a domain name (node5.ZZZ.com) OR remove the alias of other domain name (removing node5.YYY.com)&lt;BR /&gt;&lt;BR /&gt;the sendmail tries to deliver e-mail to relay.YYY.com (1.1.1.7) --&amp;gt; resolving right&lt;BR /&gt;&lt;BR /&gt;I think the mixture of domain names might be the root of the sendmail problem but my skills of sendmail configuration are low.&lt;BR /&gt;&lt;BR /&gt;P.D: the DNS server contains MX register pointing to relay.YYY.com&lt;BR /&gt;&lt;BR /&gt;ZZZ.com    mail exchanger = 10 relay.YYY.com.</description>
      <pubDate>Thu, 18 Nov 2010 08:12:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/weird-behaviour-when-sendmail-solves-the-hostname-of-the-relay/m-p/4714910#M42772</guid>
      <dc:creator>Jdamian</dc:creator>
      <dc:date>2010-11-18T08:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: weird behaviour when sendmail solves the hostname of the relay server</title>
      <link>https://community.hpe.com/t5/operating-system-linux/weird-behaviour-when-sendmail-solves-the-hostname-of-the-relay/m-p/4714911#M42773</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;I would change the DS directive to not use /etc/hosts or DNS to look up the relay name.&lt;BR /&gt;&lt;BR /&gt;I'd hard code the IP address of node5, the relay server into the sendmail configuration.&lt;BR /&gt;&lt;BR /&gt;/etc/nsswitch.conf might be doing something funky about resolve order. If you must use host name, insure that files happens in nsswitch.conf before dns and that the /etc/hosts line resolves any possible combination to the acceptable mail relay.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 18 Nov 2010 16:51:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/weird-behaviour-when-sendmail-solves-the-hostname-of-the-relay/m-p/4714911#M42773</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2010-11-18T16:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: weird behaviour when sendmail solves the hostname of the relay server</title>
      <link>https://community.hpe.com/t5/operating-system-linux/weird-behaviour-when-sendmail-solves-the-hostname-of-the-relay/m-p/4714912#M42774</link>
      <description>You give a nice scenario, but you've not told us what's exactly wrong.  That is, something like "the sendmail tries to deliver to..." but I want it to deliver to... &lt;BR /&gt;&lt;BR /&gt;Of course, in there, you say it's "resolving right" so I'm just totally missing the error here.&lt;BR /&gt;&lt;BR /&gt;I've got the background to the problem, but what's the problem?  sendmail is doing... what?&lt;BR /&gt;sending to the wrong server?  sending with an error?  not sending anything?</description>
      <pubDate>Mon, 22 Nov 2010 23:10:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/weird-behaviour-when-sendmail-solves-the-hostname-of-the-relay/m-p/4714912#M42774</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2010-11-22T23:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: weird behaviour when sendmail solves the hostname of the relay server</title>
      <link>https://community.hpe.com/t5/operating-system-linux/weird-behaviour-when-sendmail-solves-the-hostname-of-the-relay/m-p/4714913#M42775</link>
      <description>In the file /etc/mail/sendmail.cf appears&lt;BR /&gt;&lt;BR /&gt;DSrelay.YYY.com&lt;BR /&gt;&lt;BR /&gt;BUT the sendmail log shows the e-mail is delivered to relay.ZZZ.com (1.2.2.7) (resolved wrongly) !!!&lt;BR /&gt;How can it be?</description>
      <pubDate>Tue, 23 Nov 2010 11:33:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/weird-behaviour-when-sendmail-solves-the-hostname-of-the-relay/m-p/4714913#M42775</guid>
      <dc:creator>Jdamian</dc:creator>
      <dc:date>2010-11-23T11:33:35Z</dc:date>
    </item>
  </channel>
</rss>

