<?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 Re: Sendmail - Name lookup failure in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-name-lookup-failure/m-p/3676828#M793589</link>
    <description>Again, thanks for your feedback gents.&lt;BR /&gt;- I have been off for a couple of days, so only just picked up your latest advice.&lt;BR /&gt;&lt;BR /&gt;Following SEP's useful update on running low level diags on the error, I have checked the sendmail output from my system that works (W), versus one that doesn't (X).&lt;BR /&gt;&lt;BR /&gt;Respective output from each - this output appears when attempting to connect to the mail relay server &lt;BR /&gt;&lt;BR /&gt;NB: I have already verified that I can manually (telnet mailhost 25) connect to the mail relay from EITHER system and successfully send mail externally.&lt;BR /&gt;&lt;BR /&gt;The problem feels like some kind of name resolution issue, but I know that both servers will resolve the 'mailhost' server using /etc/hosts.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;(W) output:&lt;BR /&gt;===========&lt;BR /&gt;&lt;BR /&gt;checkcompat(to=XXXXXX@hotmail.com, from=root)&lt;BR /&gt;openmailer: IPC mailhost&lt;BR /&gt;XXXXXX@hotmail.com... Connecting to mailhost via relay...&lt;BR /&gt;makeconnection (mailhost [XX.XX.XX.XX])&lt;BR /&gt;makeconnection: fd=9&lt;BR /&gt;smtpinit MCI@4008d01c: flags=4&lt;CACHED&gt;,&lt;BR /&gt;        errno=0, herrno=0, exitstat=0, state=1, pid=0,&lt;BR /&gt;        maxsize=0, phase=initial connection, mailer=relay,&lt;BR /&gt;        status=NULL, rstatus=NULL,&lt;BR /&gt;        host=mailhost, lastuse=Thu Dec  1 16:03:43 2005&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;(X) output:&lt;BR /&gt;===========&lt;BR /&gt;&lt;BR /&gt;checkcompat(to=XXXXXX@hotmail.com, from=root)&lt;BR /&gt;openmailer: IPC mailhost&lt;BR /&gt;openmailer: MCI@4003f44c: flags=0,&lt;BR /&gt;        errno=238, herrno=2, exitstat=75, state=0, pid=0,&lt;BR /&gt;        maxsize=0, phase=NULL, mailer=relay,&lt;BR /&gt;        status=NULL, rstatus=NULL,&lt;BR /&gt;        host=mailhost, lastuse=Thu Dec  1 15:49:50 2005&lt;BR /&gt;&lt;BR /&gt;XXXXXX@hotmail.com... Deferred: Name server: mailhost: host name lookup failure&lt;BR /&gt;dropenvelope 4001cc60: id=PAA03120, flags=201023&lt;OLDSTYLE&gt;&lt;BR /&gt;sendto: root&lt;BR /&gt;   ctladdr=[NULL]&lt;BR /&gt;&lt;BR /&gt;&lt;/OLDSTYLE&gt;&lt;/CACHED&gt;</description>
    <pubDate>Thu, 01 Dec 2005 19:14:02 GMT</pubDate>
    <dc:creator>Ste Weston</dc:creator>
    <dc:date>2005-12-01T19:14:02Z</dc:date>
    <item>
      <title>Sendmail - Name lookup failure</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-name-lookup-failure/m-p/3676822#M793583</link>
      <description>I am encountering a problem with configuring sendmail on a few systems.&lt;BR /&gt;&lt;BR /&gt;The systems are all running HPUX 10.20 and 11.00, running sendmail based on versions  8.8.6  and 8.7.1.&lt;BR /&gt;&lt;BR /&gt;I am getting a name lookup failure for the mail relay server 'mailhost'.&lt;BR /&gt;This is despite being able to successfully ping the mail server, and also 'manually' transmit mail by telnet'ing to port 25 on the mail server, then inputting the sender, recipient and data fields.&lt;BR /&gt;&lt;BR /&gt;Error received:&lt;BR /&gt;Deferred: Name server: mailhost: host name lookup failure&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I have used some sendmail diagnostics to verify that the email address that I am sending to (myself) is being parsed correctly by the .cf file, so it only seems to be this 'name lookup failure'&lt;BR /&gt;&lt;BR /&gt;I have also confirmed that the server 'mailhost' can be looked up (nslookup) using the server's host file, although I do have nsswitch.conf set to use files, then DNS for name resolution.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I feel that there is probably something very silly that I have not checked, but I'd appreciate the advice. Cheers&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Nov 2005 13:59:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-name-lookup-failure/m-p/3676822#M793583</guid>
      <dc:creator>Ste Weston</dc:creator>
      <dc:date>2005-11-22T13:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail - Name lookup failure</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-name-lookup-failure/m-p/3676823#M793584</link>
      <description>Shalom Ste,&lt;BR /&gt;&lt;BR /&gt;Default sendmail depends on domian name resolution and internet access to deliver mail.&lt;BR /&gt;&lt;BR /&gt;If you have nslookup for the domain name, sendmail should be able to deliver mail.&lt;BR /&gt;&lt;BR /&gt;You should be able to upgrade sendmail itself to around 8.9 in depot form, but you may need to get the depot from your HP Representive.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 22 Nov 2005 14:03:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-name-lookup-failure/m-p/3676823#M793584</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-11-22T14:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail - Name lookup failure</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-name-lookup-failure/m-p/3676824#M793585</link>
      <description>Not sure if the older versions were like this, but the version on 11.11 has a separate file from nsswitch.conf that sendmail uses to determine how to resolve names. It's /etc/mail/service.switch.</description>
      <pubDate>Tue, 22 Nov 2005 14:04:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-name-lookup-failure/m-p/3676824#M793585</guid>
      <dc:creator>Jeff_Traigle</dc:creator>
      <dc:date>2005-11-22T14:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail - Name lookup failure</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-name-lookup-failure/m-p/3676825#M793586</link>
      <description>Thanks for yoour replies gents, I appreciate the suggestions.&lt;BR /&gt;&lt;BR /&gt;I have one system running 8.7.1 that works OK, and will mail externally, so I am loathe to upgrade all of my versions, because I know that this one works OK.&lt;BR /&gt;&lt;BR /&gt;I have checked the service.switch file, which did list the resolving order as:&lt;BR /&gt;hosts   dns files&lt;BR /&gt;I have now edited this to show:&lt;BR /&gt;hosts   files&lt;BR /&gt;and killed and restarted the sendmail daemon&lt;BR /&gt;(killsm, then sendmail -bd)&lt;BR /&gt;&lt;BR /&gt;I still have the same lookup failure as before:&lt;BR /&gt;&lt;BR /&gt;Deferred: Name server: mailhost: host name lookup failure&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Nov 2005 16:51:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-name-lookup-failure/m-p/3676825#M793586</guid>
      <dc:creator>Ste Weston</dc:creator>
      <dc:date>2005-11-22T16:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail - Name lookup failure</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-name-lookup-failure/m-p/3676826#M793587</link>
      <description>I don't really thing its the sendmail version.&lt;BR /&gt;&lt;BR /&gt;Please try this test:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;nslookup yahoo.com&lt;BR /&gt;&lt;BR /&gt;if you get a valid answer, then try and use elm to send mail to someone@yahoo.com&lt;BR /&gt;&lt;BR /&gt;Then check the mail.log file in /var/adm/syslog&lt;BR /&gt;&lt;BR /&gt;If you get the same error, I'm wrong, go find a better sendmail version.&lt;BR /&gt;&lt;BR /&gt;If you fail to get a valid answer from nslookup for yahoo.com or hp.com, et al then work on the system until you get valid hostname resolution.&lt;BR /&gt;&lt;BR /&gt;checklist&lt;BR /&gt;&lt;BR /&gt;Make sure you have dns as an option in /etc/nsswitch.conf and that it gets tried. nslookup should say "Trying DNS" before it fails. If it doesn't change nsswitch.conf until it does.&lt;BR /&gt;&lt;BR /&gt;Make sure you can ping the name servers in /etc/resolv.conf&lt;BR /&gt;&lt;BR /&gt;Make sure you have valid name servers in /etc/resolv.conf&lt;BR /&gt;&lt;BR /&gt;Make sure you can ping your GATEWAY, shown perhaps in ifconfig lano or in /etc/rc.config.d/netconf&lt;BR /&gt;&lt;BR /&gt;If you feel the need to edit netconf don't make a backup in /etc/rc.config.d it will get processes and make your networking unstable.&lt;BR /&gt;&lt;BR /&gt;If hostname resolution is not working, you must get it working before taking other steps.&lt;BR /&gt;&lt;BR /&gt;Shortcut: &lt;BR /&gt;&lt;BR /&gt;add this to sendmail.cf on the broken servers.&lt;BR /&gt;&lt;BR /&gt;DShostnameofworkingserver&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt; &lt;BR /&gt;DS&lt;BR /&gt;[ip address of working server]&lt;BR /&gt;&lt;BR /&gt;Make sure the /etc/mail/access list on the working server allows RELAY from the server we are working on.&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/sendmail stop&lt;BR /&gt;/sbin/init.d/sendmail start&lt;BR /&gt;&lt;BR /&gt;Diagnostic:&lt;BR /&gt;&lt;BR /&gt;mailq&lt;BR /&gt;&lt;BR /&gt;sendmail -v -d8.99 -d 38.99 someone@hp.com&lt;BR /&gt;&lt;ENTER&gt;&lt;BR /&gt;type some text&lt;BR /&gt;&lt;ENTER&gt;&lt;BR /&gt;.&lt;BR /&gt;&lt;ENTER&gt;&lt;BR /&gt;&lt;BR /&gt;Good Luck,&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;&lt;BR /&gt;&lt;/ENTER&gt;&lt;/ENTER&gt;&lt;/ENTER&gt;</description>
      <pubDate>Tue, 22 Nov 2005 18:19:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-name-lookup-failure/m-p/3676826#M793587</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-11-22T18:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail - Name lookup failure</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-name-lookup-failure/m-p/3676827#M793588</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try by un-commenting the following line from /etc/mail/sendmail.cf&lt;BR /&gt;&lt;BR /&gt;#O ServiceSwitchFile=/etc/mail/service.switch&lt;BR /&gt;&lt;BR /&gt;Then restart sendmail using,&lt;BR /&gt;&lt;BR /&gt;/sbin/init.d/sendmail stop&lt;BR /&gt;/sbin/init.d/sendmail start&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Nov 2005 20:14:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-name-lookup-failure/m-p/3676827#M793588</guid>
      <dc:creator>Sameer_Nirmal</dc:creator>
      <dc:date>2005-11-22T20:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail - Name lookup failure</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-name-lookup-failure/m-p/3676828#M793589</link>
      <description>Again, thanks for your feedback gents.&lt;BR /&gt;- I have been off for a couple of days, so only just picked up your latest advice.&lt;BR /&gt;&lt;BR /&gt;Following SEP's useful update on running low level diags on the error, I have checked the sendmail output from my system that works (W), versus one that doesn't (X).&lt;BR /&gt;&lt;BR /&gt;Respective output from each - this output appears when attempting to connect to the mail relay server &lt;BR /&gt;&lt;BR /&gt;NB: I have already verified that I can manually (telnet mailhost 25) connect to the mail relay from EITHER system and successfully send mail externally.&lt;BR /&gt;&lt;BR /&gt;The problem feels like some kind of name resolution issue, but I know that both servers will resolve the 'mailhost' server using /etc/hosts.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;(W) output:&lt;BR /&gt;===========&lt;BR /&gt;&lt;BR /&gt;checkcompat(to=XXXXXX@hotmail.com, from=root)&lt;BR /&gt;openmailer: IPC mailhost&lt;BR /&gt;XXXXXX@hotmail.com... Connecting to mailhost via relay...&lt;BR /&gt;makeconnection (mailhost [XX.XX.XX.XX])&lt;BR /&gt;makeconnection: fd=9&lt;BR /&gt;smtpinit MCI@4008d01c: flags=4&lt;CACHED&gt;,&lt;BR /&gt;        errno=0, herrno=0, exitstat=0, state=1, pid=0,&lt;BR /&gt;        maxsize=0, phase=initial connection, mailer=relay,&lt;BR /&gt;        status=NULL, rstatus=NULL,&lt;BR /&gt;        host=mailhost, lastuse=Thu Dec  1 16:03:43 2005&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;(X) output:&lt;BR /&gt;===========&lt;BR /&gt;&lt;BR /&gt;checkcompat(to=XXXXXX@hotmail.com, from=root)&lt;BR /&gt;openmailer: IPC mailhost&lt;BR /&gt;openmailer: MCI@4003f44c: flags=0,&lt;BR /&gt;        errno=238, herrno=2, exitstat=75, state=0, pid=0,&lt;BR /&gt;        maxsize=0, phase=NULL, mailer=relay,&lt;BR /&gt;        status=NULL, rstatus=NULL,&lt;BR /&gt;        host=mailhost, lastuse=Thu Dec  1 15:49:50 2005&lt;BR /&gt;&lt;BR /&gt;XXXXXX@hotmail.com... Deferred: Name server: mailhost: host name lookup failure&lt;BR /&gt;dropenvelope 4001cc60: id=PAA03120, flags=201023&lt;OLDSTYLE&gt;&lt;BR /&gt;sendto: root&lt;BR /&gt;   ctladdr=[NULL]&lt;BR /&gt;&lt;BR /&gt;&lt;/OLDSTYLE&gt;&lt;/CACHED&gt;</description>
      <pubDate>Thu, 01 Dec 2005 19:14:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-name-lookup-failure/m-p/3676828#M793589</guid>
      <dc:creator>Ste Weston</dc:creator>
      <dc:date>2005-12-01T19:14:02Z</dc:date>
    </item>
  </channel>
</rss>

