<?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 sendmail: getmxrr() returns -1 value(s): in Operating System - Tru64 Unix</title>
    <link>https://community.hpe.com/t5/operating-system-tru64-unix/sendmail-getmxrr-returns-1-value-s/m-p/3644232#M5813</link>
    <description>I have two (supposedly) identical machines, trying to relay mail through the same mail-relay.  One machine works, the other gives the error in the subject line.&lt;BR /&gt;&lt;BR /&gt;I can reproduce the problem using the following sendmail test instructions.&lt;BR /&gt;&lt;BR /&gt;root@good-host$ echo "/mx my-relay.my-domain.com" | sendmail -bt -d8.20&lt;BR /&gt;ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)&lt;BR /&gt;Enter &lt;RULESET&gt; &lt;ADDRESS&gt;&lt;BR /&gt;&amp;gt; getmxrr(my-relay.my-domain.com, droplocalhost=0)&lt;BR /&gt;getmxrr(my-relay.my-domain.com) returns 0 value(s):&lt;BR /&gt;&lt;BR /&gt;root@bad-host$ echo "/mx my-relay.my-domain.com" | sendmail -bt -d8.20&lt;BR /&gt;ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)&lt;BR /&gt;Enter &lt;RULESET&gt; &lt;ADDRESS&gt;&lt;BR /&gt;&amp;gt; getmxrr(netaexcd.bmreports.co.uk, droplocalhost=0)&lt;BR /&gt;getmxrr: res_search(netaexcd.bmreports.co.uk) failed (errno=0, h_errno=0)&lt;BR /&gt;getmxrr: res_search (netaexcd.bmreports.co.uk) failed with impossible h_errno (0)&lt;BR /&gt;getmxrr(netaexcd.bmreports.co.uk) returns -1 value(s):&lt;BR /&gt;&lt;BR /&gt;On the good server, it finds zero MX records for the mail relay (this is OK).  On the bad server, it finds -1 MX records, which causes sendmail to fail.&lt;BR /&gt;&lt;BR /&gt;The configuration on both machines (sendmail.cf, network settings, etc.) appears to be identical.&lt;BR /&gt;&lt;BR /&gt;Any suggestions what to look at next?&lt;BR /&gt;&lt;BR /&gt;I'm using sendmail v8.11 on Tru64v5.1b(2650)&lt;BR /&gt;&lt;BR /&gt;Greg Roach&lt;/ADDRESS&gt;&lt;/RULESET&gt;&lt;/ADDRESS&gt;&lt;/RULESET&gt;</description>
    <pubDate>Fri, 07 Oct 2005 08:08:31 GMT</pubDate>
    <dc:creator>Greg Roach</dc:creator>
    <dc:date>2005-10-07T08:08:31Z</dc:date>
    <item>
      <title>sendmail: getmxrr() returns -1 value(s):</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/sendmail-getmxrr-returns-1-value-s/m-p/3644232#M5813</link>
      <description>I have two (supposedly) identical machines, trying to relay mail through the same mail-relay.  One machine works, the other gives the error in the subject line.&lt;BR /&gt;&lt;BR /&gt;I can reproduce the problem using the following sendmail test instructions.&lt;BR /&gt;&lt;BR /&gt;root@good-host$ echo "/mx my-relay.my-domain.com" | sendmail -bt -d8.20&lt;BR /&gt;ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)&lt;BR /&gt;Enter &lt;RULESET&gt; &lt;ADDRESS&gt;&lt;BR /&gt;&amp;gt; getmxrr(my-relay.my-domain.com, droplocalhost=0)&lt;BR /&gt;getmxrr(my-relay.my-domain.com) returns 0 value(s):&lt;BR /&gt;&lt;BR /&gt;root@bad-host$ echo "/mx my-relay.my-domain.com" | sendmail -bt -d8.20&lt;BR /&gt;ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)&lt;BR /&gt;Enter &lt;RULESET&gt; &lt;ADDRESS&gt;&lt;BR /&gt;&amp;gt; getmxrr(netaexcd.bmreports.co.uk, droplocalhost=0)&lt;BR /&gt;getmxrr: res_search(netaexcd.bmreports.co.uk) failed (errno=0, h_errno=0)&lt;BR /&gt;getmxrr: res_search (netaexcd.bmreports.co.uk) failed with impossible h_errno (0)&lt;BR /&gt;getmxrr(netaexcd.bmreports.co.uk) returns -1 value(s):&lt;BR /&gt;&lt;BR /&gt;On the good server, it finds zero MX records for the mail relay (this is OK).  On the bad server, it finds -1 MX records, which causes sendmail to fail.&lt;BR /&gt;&lt;BR /&gt;The configuration on both machines (sendmail.cf, network settings, etc.) appears to be identical.&lt;BR /&gt;&lt;BR /&gt;Any suggestions what to look at next?&lt;BR /&gt;&lt;BR /&gt;I'm using sendmail v8.11 on Tru64v5.1b(2650)&lt;BR /&gt;&lt;BR /&gt;Greg Roach&lt;/ADDRESS&gt;&lt;/RULESET&gt;&lt;/ADDRESS&gt;&lt;/RULESET&gt;</description>
      <pubDate>Fri, 07 Oct 2005 08:08:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/sendmail-getmxrr-returns-1-value-s/m-p/3644232#M5813</guid>
      <dc:creator>Greg Roach</dc:creator>
      <dc:date>2005-10-07T08:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail: getmxrr() returns -1 value(s):</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/sendmail-getmxrr-returns-1-value-s/m-p/3644233#M5814</link>
      <description>I've now managed to get this to work.&lt;BR /&gt;&lt;BR /&gt;Neither machine uses DNS (they just use /etc/hosts).&lt;BR /&gt;&lt;BR /&gt;By setting the "bad" machine to use our local DNS server, it now works.&lt;BR /&gt;&lt;BR /&gt;This doesn't explain why the "good" machine works without it.</description>
      <pubDate>Fri, 07 Oct 2005 08:50:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/sendmail-getmxrr-returns-1-value-s/m-p/3644233#M5814</guid>
      <dc:creator>Greg Roach</dc:creator>
      <dc:date>2005-10-07T08:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail: getmxrr() returns -1 value(s):</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/sendmail-getmxrr-returns-1-value-s/m-p/3644234#M5815</link>
      <description>What is it you're trying to accomplish with this test ?   And what is it supposed to return ?&lt;BR /&gt;&lt;BR /&gt;Can we assume that one system can relay and the other cannot ?&lt;BR /&gt;&lt;BR /&gt;Did you run mailsetup as root on both systems and answer the questions with similar answers in particular those for the mail relay ?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Oct 2005 08:55:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/sendmail-getmxrr-returns-1-value-s/m-p/3644234#M5815</guid>
      <dc:creator>Al Licause</dc:creator>
      <dc:date>2005-10-07T08:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail: getmxrr() returns -1 value(s):</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/sendmail-getmxrr-returns-1-value-s/m-p/3644235#M5816</link>
      <description>Is the hosts line in /etc/svc.conf the same on both systems ?&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Oct 2005 08:56:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/sendmail-getmxrr-returns-1-value-s/m-p/3644235#M5816</guid>
      <dc:creator>Al Licause</dc:creator>
      <dc:date>2005-10-07T08:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail: getmxrr() returns -1 value(s):</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/sendmail-getmxrr-returns-1-value-s/m-p/3644236#M5817</link>
      <description>I don't know if you forgod to replace the server name in the second test, because the name resolved in the first and the second are different (my-relay.my-domain.com/netaexcd.bmreports.co.uk).&lt;BR /&gt;&lt;BR /&gt;Verify your host table, svc.conf, nsswitch.conf, resolv.conf, and use nslookup to test the DNS server configuration.</description>
      <pubDate>Fri, 07 Oct 2005 08:57:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/sendmail-getmxrr-returns-1-value-s/m-p/3644236#M5817</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2005-10-07T08:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail: getmxrr() returns -1 value(s):</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/sendmail-getmxrr-returns-1-value-s/m-p/3644237#M5818</link>
      <description>V8.any of sendmail rely likes to have the use of a dns service.   You can sometimes trick it into using local resources only but I've never seen this work in a consistant manner.&lt;BR /&gt;&lt;BR /&gt;If you have dns servers available, you'd be far better off using them.</description>
      <pubDate>Fri, 07 Oct 2005 08:58:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/sendmail-getmxrr-returns-1-value-s/m-p/3644237#M5818</guid>
      <dc:creator>Al Licause</dc:creator>
      <dc:date>2005-10-07T08:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: sendmail: getmxrr() returns -1 value(s):</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/sendmail-getmxrr-returns-1-value-s/m-p/3644238#M5819</link>
      <description>Al,&lt;BR /&gt;&lt;BR /&gt;Yes, I ran mailsetup on both machines.&lt;BR /&gt;&lt;BR /&gt;Yes, one machine can forward mail to the relay and one cannot.&lt;BR /&gt;&lt;BR /&gt;The purpose of the test was to reproduce the error I get while trying to relay, but with some debug enabled.  &lt;BR /&gt;&lt;BR /&gt;/etc/svc.conf is the same on both machines.&lt;BR /&gt;&lt;BR /&gt;Ivan,&lt;BR /&gt;&lt;BR /&gt;I was trying to hide the real host names and replace them with "my-host.my-domain".  I missed one.  Oops :-(&lt;BR /&gt;&lt;BR /&gt;/etc/hosts, and /etc/*.conf are all identical.&lt;BR /&gt;&lt;BR /&gt;There is (was) no DNS on these machines.  They sit on a small network and only need to speak to one external machine.  Hence we just use a hosts file.&lt;BR /&gt;&lt;BR /&gt;Interestingly, I have now disabled dns on the "non working" machine (using sysman dns) and it continues to work.&lt;BR /&gt;&lt;BR /&gt;The fix appears to have been "enable dns, disable dns". &lt;BR /&gt;&lt;BR /&gt;The old (working) machine previously ran dns. &lt;BR /&gt;The new (non working) machine had never used dns.&lt;BR /&gt;&lt;BR /&gt;Thank-you both for your time.</description>
      <pubDate>Fri, 07 Oct 2005 09:53:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/sendmail-getmxrr-returns-1-value-s/m-p/3644238#M5819</guid>
      <dc:creator>Greg Roach</dc:creator>
      <dc:date>2005-10-07T09:53:42Z</dc:date>
    </item>
  </channel>
</rss>

