<?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: Linux Sendmail - Hostname lookup failure in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/linux-sendmail-hostname-lookup-failure/m-p/3306645#M88460</link>
    <description>Hi Kusuma,&lt;BR /&gt;&lt;BR /&gt;This what I use in my sendmail.cf file (NO DNS).&lt;BR /&gt;&lt;BR /&gt;DSwebmail.$m&lt;BR /&gt;&lt;BR /&gt;/etc/hosts&lt;BR /&gt;145.x.x.15 webmail webmail.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
    <pubDate>Wed, 16 Jun 2004 06:29:19 GMT</pubDate>
    <dc:creator>Robert-Jan Goossens</dc:creator>
    <dc:date>2004-06-16T06:29:19Z</dc:date>
    <item>
      <title>Linux Sendmail - Hostname lookup failure</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-sendmail-hostname-lookup-failure/m-p/3306644#M88459</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I need to send automatic mail from my linux machine to my smtp domain. I don't have DNS.&lt;BR /&gt;&lt;BR /&gt;My hostname is host&lt;BR /&gt;smtp domain is smtp.domain.com&lt;BR /&gt;&lt;BR /&gt;I have made following changes to sendmail.cf&lt;BR /&gt;- DSsmtp.domain.com&lt;BR /&gt;- D{M}domain.com&lt;BR /&gt;- Dj$w.domain.com&lt;BR /&gt;&lt;BR /&gt;have added below in hosts file&lt;BR /&gt;x.x.x.x     smtp.domain.com&lt;BR /&gt;&lt;BR /&gt;/etc/nsswitch.conf&lt;BR /&gt;hosts       files&lt;BR /&gt;&lt;BR /&gt;Is that right? What else configuration is required to just send mail to user@domain.com.&lt;BR /&gt;&lt;BR /&gt;When I start sendmail, it takes lot of time. And when I send mail, it says smtp.domain.com: host name lookup failure&lt;BR /&gt;&lt;BR /&gt;Please help. I am lost.&lt;BR /&gt;&lt;BR /&gt;Thanks in Advance,&lt;BR /&gt;Kusuma&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Jun 2004 06:24:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-sendmail-hostname-lookup-failure/m-p/3306644#M88459</guid>
      <dc:creator>Kusuma Sashidhar</dc:creator>
      <dc:date>2004-06-16T06:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Linux Sendmail - Hostname lookup failure</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-sendmail-hostname-lookup-failure/m-p/3306645#M88460</link>
      <description>Hi Kusuma,&lt;BR /&gt;&lt;BR /&gt;This what I use in my sendmail.cf file (NO DNS).&lt;BR /&gt;&lt;BR /&gt;DSwebmail.$m&lt;BR /&gt;&lt;BR /&gt;/etc/hosts&lt;BR /&gt;145.x.x.15 webmail webmail.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Wed, 16 Jun 2004 06:29:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-sendmail-hostname-lookup-failure/m-p/3306645#M88460</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2004-06-16T06:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Linux Sendmail - Hostname lookup failure</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-sendmail-hostname-lookup-failure/m-p/3306646#M88461</link>
      <description>Hai,&lt;BR /&gt; &lt;BR /&gt; Did you check the hostname and smtp.domain.com with nslookup for the hostname lookup test. You will face the problem there too.&lt;BR /&gt;&lt;BR /&gt; Change the format on /etc/hosts file as&lt;BR /&gt;&lt;BR /&gt;  x.x.x.x host smtp.domain.com&lt;BR /&gt;  &lt;BR /&gt;  where,&lt;BR /&gt;   host - your hostname&lt;BR /&gt;   smtp.domain.com - Alias for sendmail&lt;BR /&gt;&lt;BR /&gt;  check the hostname with nslookup command.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Muthukumar</description>
      <pubDate>Wed, 16 Jun 2004 06:42:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-sendmail-hostname-lookup-failure/m-p/3306646#M88461</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-06-16T06:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Linux Sendmail - Hostname lookup failure</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-sendmail-hostname-lookup-failure/m-p/3306647#M88462</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;your hosts file should look like this:&lt;BR /&gt;&lt;BR /&gt;x.x.x.x   DOMAIN HOST NAME (manchine name hosting the domain)</description>
      <pubDate>Wed, 16 Jun 2004 06:43:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-sendmail-hostname-lookup-failure/m-p/3306647#M88462</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2004-06-16T06:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: Linux Sendmail - Hostname lookup failure</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-sendmail-hostname-lookup-failure/m-p/3306648#M88463</link>
      <description>Hello Muthukumar,&lt;BR /&gt;&lt;BR /&gt;Why should i put my hostname as an alias to smtpdomain? smtp.domain.com is the smtp mail server. All I want is i should be able to send mails from linux to the smtp mail server. And i can't do nslookup since i don't have dns server. I am sure it should work without that.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Kusuma</description>
      <pubDate>Wed, 16 Jun 2004 06:48:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-sendmail-hostname-lookup-failure/m-p/3306648#M88463</guid>
      <dc:creator>Kusuma Sashidhar</dc:creator>
      <dc:date>2004-06-16T06:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Linux Sendmail - Hostname lookup failure</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-sendmail-hostname-lookup-failure/m-p/3306649#M88464</link>
      <description>If your linux box is running in a DNS-Less environment, and you don't want to use a SMART_HOST (DS) (i.e. send all mail to a mail-gateway), but you only want to send to a single host, then you can get away with one setting.&lt;BR /&gt;&lt;BR /&gt;Add to '/etc/mail/mailertable':&lt;BR /&gt;&lt;BR /&gt;smtp.domain.com esmtp:[ip.add.of.host]&lt;BR /&gt;&lt;BR /&gt;then re-make the mailertable database.&lt;BR /&gt;&lt;BR /&gt;If you have many hosts you want to send to or you want to use a SMART_HOST, then you've got a few things to change.&lt;BR /&gt;&lt;BR /&gt;First, add a 'O ServiceSwitchFile=/etc/mail/service.switch' entry.  This is to give sendmail an option other than DNS for host-name lookups.&lt;BR /&gt;&lt;BR /&gt;In '/etc/mail/service.switch', add the entry 'hosts files' (yes, many s's).&lt;BR /&gt;&lt;BR /&gt;Next, change the Resolver options in sendmail.&lt;BR /&gt;&lt;BR /&gt;This is either on the 'OI' line in your cf file, or on the 'O ResolverOptions=' line.  Change it to be just '-DNSRCH'.&lt;BR /&gt;&lt;BR /&gt;This is to force it not to use a DNS server.&lt;BR /&gt;&lt;BR /&gt;If you are using MC files (which you should be) to manage your sendmail, we're talking about the following defines:&lt;BR /&gt;&lt;BR /&gt;define(`confBIND_OPTS', `-DNSRC')&lt;BR /&gt;define(`confSERVICE_SWITCH_FILE', `/etc/mail/service.switch')&lt;BR /&gt;&lt;BR /&gt;Once like this, your system should be able to relay out like a charmer.</description>
      <pubDate>Thu, 17 Jun 2004 00:40:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-sendmail-hostname-lookup-failure/m-p/3306649#M88464</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2004-06-17T00:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Linux Sendmail - Hostname lookup failure</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-sendmail-hostname-lookup-failure/m-p/3306650#M88465</link>
      <description>Hi Staurt,&lt;BR /&gt;&lt;BR /&gt;Thanks for all the help. I tried what you said. Now it says user unknown.&lt;BR /&gt;&lt;BR /&gt;Pl. clarify my below doubts:&lt;BR /&gt;1. can't i have hostname as shortname with FQDN?&lt;BR /&gt;&lt;BR /&gt;2. Actually, i want to set it up as a smart host. for which, i have done the following :&lt;BR /&gt;&lt;BR /&gt;- /etc/mail/service.switch &lt;BR /&gt;   added the entry - hosts   files&lt;BR /&gt;&lt;BR /&gt;- have added settings for disabling dns lookup as u mentioned in sendmail.mc&lt;BR /&gt;&lt;BR /&gt;- have added DSsmtp.domain.com entry.&lt;BR /&gt;&lt;BR /&gt;3. Is there anything else i hvae missed out? Pl. help. I am trying this for longtime now.&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Jun 2004 02:12:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-sendmail-hostname-lookup-failure/m-p/3306650#M88465</guid>
      <dc:creator>Kusuma Sashidhar</dc:creator>
      <dc:date>2004-06-17T02:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Linux Sendmail - Hostname lookup failure</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-sendmail-hostname-lookup-failure/m-p/3306651#M88466</link>
      <description>Thank you all so much. It is working now for one domain. Will figure out how to do it for any domains.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Kusuma</description>
      <pubDate>Thu, 17 Jun 2004 04:30:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-sendmail-hostname-lookup-failure/m-p/3306651#M88466</guid>
      <dc:creator>Kusuma Sashidhar</dc:creator>
      <dc:date>2004-06-17T04:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: Linux Sendmail - Hostname lookup failure</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linux-sendmail-hostname-lookup-failure/m-p/3306652#M88467</link>
      <description>Yes, we can hack sendmail in many ways in order to send emails without DNS.&lt;BR /&gt;&lt;BR /&gt;But: what if tomorrow/next year  administrator of domain.com will change IPs of his mailservers? &lt;BR /&gt;&lt;BR /&gt;IMHO, installing caching DNS server will provide easier solution for this. &lt;BR /&gt;&lt;BR /&gt;And if you don't want to install chaching DNS [it's just install, you don't need any config!] - you can just put few nameservers addresses in resolv.conf.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Vitaly</description>
      <pubDate>Thu, 17 Jun 2004 05:19:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linux-sendmail-hostname-lookup-failure/m-p/3306652#M88467</guid>
      <dc:creator>Vitaly Karasik_1</dc:creator>
      <dc:date>2004-06-17T05:19:41Z</dc:date>
    </item>
  </channel>
</rss>

