<?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 without DNS lookup in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-without-dns-lookup/m-p/5155458#M455429</link>
    <description>Hello Ravi,&lt;BR /&gt;&lt;BR /&gt;These two lines simple try to use DNS&lt;BR /&gt;resolution for anything that is not defined&lt;BR /&gt;in /etc/hosts or other databases that&lt;BR /&gt;/etc/nsswitch.conf might be pointing to&lt;BR /&gt;(NIS, NIS+, LDAP...).&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
    <pubDate>Wed, 11 Feb 2009 09:26:33 GMT</pubDate>
    <dc:creator>VK2COT</dc:creator>
    <dc:date>2009-02-11T09:26:33Z</dc:date>
    <item>
      <title>Sendmail without DNS lookup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-without-dns-lookup/m-p/5155451#M455422</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;We have a SMTP relay server. I have configured DS&lt;IP_ADDRESS_RELAY_SERVER&gt; in sendmail.cf&lt;BR /&gt;&lt;BR /&gt;When I am trying to send email, it is not able to resolve hp.com&lt;BR /&gt;&lt;BR /&gt;# sendmail -v abcd@hp.com&lt;BR /&gt;This is a Test Email&lt;BR /&gt;.&lt;BR /&gt;hp.com: Name server timeout&lt;BR /&gt;abcd@hp.com... Transient parse error -- message queued for future delivery&lt;BR /&gt;abcd@hp.com... Queued&lt;BR /&gt;&lt;BR /&gt;The DNS is not able to resolve hp.com&lt;BR /&gt;&lt;BR /&gt;I have added an entry in /etc/hosts for hp.com and we are able to send emails properly.&lt;BR /&gt;&lt;BR /&gt;My question is, can we send email to the relay server, without resolving hp.com &lt;BR /&gt;&lt;BR /&gt;Ravi.&lt;/IP_ADDRESS_RELAY_SERVER&gt;</description>
      <pubDate>Fri, 06 Feb 2009 20:02:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-without-dns-lookup/m-p/5155451#M455422</guid>
      <dc:creator>G V R Shankar</dc:creator>
      <dc:date>2009-02-06T20:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail without DNS lookup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-without-dns-lookup/m-p/5155452#M455423</link>
      <description>Did you add the DM Entry and try?&lt;BR /&gt;&lt;BR /&gt;DM&lt;DOMAIN-NAME&gt;&lt;BR /&gt;&lt;BR /&gt;in your case&lt;BR /&gt;&lt;BR /&gt;DM hp.com&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Sundar&lt;BR /&gt;&lt;/DOMAIN-NAME&gt;</description>
      <pubDate>Fri, 06 Feb 2009 20:14:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-without-dns-lookup/m-p/5155452#M455423</guid>
      <dc:creator>Sundar G</dc:creator>
      <dc:date>2009-02-06T20:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail without DNS lookup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-without-dns-lookup/m-p/5155453#M455424</link>
      <description>Yes, I have added DM entry also.&lt;BR /&gt;&lt;BR /&gt;# who I masquerade as (null for no masquerading) (see also $=M)&lt;BR /&gt;DMhp.com&lt;BR /&gt;&lt;BR /&gt;Still, it doesn't work.&lt;BR /&gt;&lt;BR /&gt;Ravi.</description>
      <pubDate>Fri, 06 Feb 2009 20:23:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-without-dns-lookup/m-p/5155453#M455424</guid>
      <dc:creator>G V R Shankar</dc:creator>
      <dc:date>2009-02-06T20:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail without DNS lookup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-without-dns-lookup/m-p/5155454#M455425</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I can think of several possibilities.&lt;BR /&gt;Depending on which version of sendmail you&lt;BR /&gt;run, they will work.&lt;BR /&gt;&lt;BR /&gt;a) Set /etc/nsswitch.conf to use "files"&lt;BR /&gt;for:&lt;BR /&gt;&lt;BR /&gt;hosts: files&lt;BR /&gt;aliases: files&lt;BR /&gt;&lt;BR /&gt;... and of course, your entry in /etc/mail/sendmail.cf for DS:&lt;BR /&gt;&lt;BR /&gt;DS[myrelayhost.mydom.dom]&lt;BR /&gt;&lt;BR /&gt;Putting square brackets around hostname&lt;BR /&gt;bypasses DNS query for smarthost.&lt;BR /&gt;&lt;BR /&gt;Ensure that your smarthost is&lt;BR /&gt;listed in /etc/hosts too.&lt;BR /&gt;&lt;BR /&gt;b) Create file /etc/mail/service.switch&lt;BR /&gt;&lt;BR /&gt;hosts files&lt;BR /&gt;&lt;BR /&gt;c) Change /etc/mail/sendmail.cf directly.&lt;BR /&gt;Look for the following lines and comment them out:&lt;BR /&gt;&lt;BR /&gt;# pass to name server to make hostname canonical&lt;BR /&gt;R$* $| $* &amp;lt; @ $* &amp;gt; $*           $: $2 &amp;lt; @ $[ $3 $] &amp;gt; $4&lt;BR /&gt;&lt;BR /&gt;d) More complex way.&lt;BR /&gt;&lt;BR /&gt;Change sendmail.mc file as per&lt;BR /&gt;&lt;A href="http://www.sendmail.org/faq/section3#3.22" target="_blank"&gt;http://www.sendmail.org/faq/section3#3.22&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;FEATURE(`accept_unresolvable_domains')dnl&lt;BR /&gt;FEATURE(`accept_unqualified_senders')dnl&lt;BR /&gt;FEATURE(nocanonify)define(`confSERVICE_SWITCH_FILE',`/etc/mail/service.switch')dnl&lt;BR /&gt;FEATURE(nocanonify)&lt;BR /&gt;define(`SMART_HOST',`myrelayhost.mydom.dom')&lt;BR /&gt;&lt;BR /&gt;Edit the submit.mc file and add the &lt;BR /&gt;following line:&lt;BR /&gt;&lt;BR /&gt;define(`confDIRECT_SUBMISSION_MODIFIERS', `C')dnl&lt;BR /&gt;&lt;BR /&gt;Rebuild your sendmail.cf and submit.cf.&lt;BR /&gt;&lt;BR /&gt;That should do it.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;VK2COT&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Feb 2009 20:29:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-without-dns-lookup/m-p/5155454#M455425</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2009-02-06T20:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail without DNS lookup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-without-dns-lookup/m-p/5155455#M455426</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have already configured step a and b. It didn't help me, because my server is unable to resolve hp.com The relay server belongs to some other domain, it is not hp.com&lt;BR /&gt;&lt;BR /&gt;# sendmail -v abcd@hp.com&lt;BR /&gt;This is a Test Email&lt;BR /&gt;.&lt;BR /&gt;hp.com: Name server timeout&lt;BR /&gt;abcd@hp.com... Transient parse error -- message queued for future delivery&lt;BR /&gt;abcd@hp.com... Queued&lt;BR /&gt;&lt;BR /&gt;After trying step c, I have started getting emails, without having hp.com in /etc/hosts file.&lt;BR /&gt;&lt;BR /&gt;I didn't try step D, as it is complex ;) I like things to be simple.&lt;BR /&gt;&lt;BR /&gt;Could you please explain more about step c.&lt;BR /&gt;&lt;BR /&gt;# pass to name server to make hostname canonical&lt;BR /&gt;R$* $| $* &amp;lt; @ $* &amp;gt; $* $: $2 &amp;lt; @ $[ $3 $] &amp;gt; $4&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Ravi.</description>
      <pubDate>Sat, 07 Feb 2009 11:54:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-without-dns-lookup/m-p/5155455#M455426</guid>
      <dc:creator>G V R Shankar</dc:creator>
      <dc:date>2009-02-07T11:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail without DNS lookup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-without-dns-lookup/m-p/5155456#M455427</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Step c) - comment out these&lt;BR /&gt;two lines in /etc/mail/sendmail.cf&lt;BR /&gt;and restart sendmail. In other words,&lt;BR /&gt;these two lines will look like:&lt;BR /&gt;&lt;BR /&gt;# pass to name server to make hostname canonical&lt;BR /&gt;# R$* $| $* &amp;lt; @ $* &amp;gt; $* $: $2 &amp;lt; @ $[ $3 $] &amp;gt; $4&lt;BR /&gt;&lt;BR /&gt;To restart sendmail:&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;These two lines try to resolve hostname&lt;BR /&gt;via DNS server, an dthat is what you want to&lt;BR /&gt;disable...&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
      <pubDate>Sun, 08 Feb 2009 11:04:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-without-dns-lookup/m-p/5155456#M455427</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2009-02-08T11:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail without DNS lookup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-without-dns-lookup/m-p/5155457#M455428</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thank You for the reply.&lt;BR /&gt;&lt;BR /&gt;I am bit confused about your statement.&lt;BR /&gt;&lt;BR /&gt;"These two lines try to resolve hostname&lt;BR /&gt;via DNS server, an dthat is what you want to&lt;BR /&gt;disable..."&lt;BR /&gt;&lt;BR /&gt;Are you speaking about local hostname or the hp.com which is present in the email address.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Ravi.&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Feb 2009 12:35:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-without-dns-lookup/m-p/5155457#M455428</guid>
      <dc:creator>G V R Shankar</dc:creator>
      <dc:date>2009-02-09T12:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail without DNS lookup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-without-dns-lookup/m-p/5155458#M455429</link>
      <description>Hello Ravi,&lt;BR /&gt;&lt;BR /&gt;These two lines simple try to use DNS&lt;BR /&gt;resolution for anything that is not defined&lt;BR /&gt;in /etc/hosts or other databases that&lt;BR /&gt;/etc/nsswitch.conf might be pointing to&lt;BR /&gt;(NIS, NIS+, LDAP...).&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
      <pubDate>Wed, 11 Feb 2009 09:26:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-without-dns-lookup/m-p/5155458#M455429</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2009-02-11T09:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail without DNS lookup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-without-dns-lookup/m-p/5155459#M455430</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;DS is the best option, but it requires the administrator of the smtp relay server to configure the server to accept mail from your specific host.&lt;BR /&gt;&lt;BR /&gt;A better solution might be to do this:&lt;BR /&gt;&lt;BR /&gt;dig mx hp.com&lt;BR /&gt;&lt;BR /&gt;That will list the mail exchange servers on your domain, use your domain not hp.com unless you are at hp.&lt;BR /&gt;&lt;BR /&gt;Set up this name resolution at /etc/hosts file and your mail may flow.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Wed, 11 Feb 2009 11:00:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-without-dns-lookup/m-p/5155459#M455430</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-02-11T11:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail without DNS lookup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-without-dns-lookup/m-p/5155460#M455431</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;Thank You Very Much for takling time to help me resolve the case and clarifying my doubts.&lt;BR /&gt;&lt;BR /&gt;Thanks Again.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Ravi.</description>
      <pubDate>Thu, 12 Feb 2009 08:00:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-without-dns-lookup/m-p/5155460#M455431</guid>
      <dc:creator>G V R Shankar</dc:creator>
      <dc:date>2009-02-12T08:00:37Z</dc:date>
    </item>
  </channel>
</rss>

