<?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: how does mailx look up the mail server in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-does-mailx-look-up-the-mail-server/m-p/3811019#M773129</link>
    <description>I don't think man page tell you that, plus I tried to set DS in sendmail.cf and it does not work, as expected so I don't know what I did wrong. Thanks.</description>
    <pubDate>Thu, 22 Jun 2006 16:36:18 GMT</pubDate>
    <dc:creator>ran_li</dc:creator>
    <dc:date>2006-06-22T16:36:18Z</dc:date>
    <item>
      <title>how does mailx look up the mail server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-does-mailx-look-up-the-mail-server/m-p/3811017#M773127</link>
      <description>Hello pros,&lt;BR /&gt;&lt;BR /&gt;Two questions, &lt;BR /&gt;&lt;BR /&gt;1. how does mailx lookup the mail server? what is the steps?&lt;BR /&gt;&lt;BR /&gt;2. I want to send mail using assigned mail server, how to accomplish that? &lt;BR /&gt;&lt;BR /&gt;Thanks in advance!</description>
      <pubDate>Thu, 22 Jun 2006 16:09:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-does-mailx-look-up-the-mail-server/m-p/3811017#M773127</guid>
      <dc:creator>ran_li</dc:creator>
      <dc:date>2006-06-22T16:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: how does mailx look up the mail server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-does-mailx-look-up-the-mail-server/m-p/3811018#M773128</link>
      <description>ran:&lt;BR /&gt;&lt;BR /&gt;You can check the man pages for mailx, dtmail, mail and sendmail.  You will be able to grab some information from there.&lt;BR /&gt;&lt;BR /&gt;Luis&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Jun 2006 16:33:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-does-mailx-look-up-the-mail-server/m-p/3811018#M773128</guid>
      <dc:creator>NMory</dc:creator>
      <dc:date>2006-06-22T16:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: how does mailx look up the mail server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-does-mailx-look-up-the-mail-server/m-p/3811019#M773129</link>
      <description>I don't think man page tell you that, plus I tried to set DS in sendmail.cf and it does not work, as expected so I don't know what I did wrong. Thanks.</description>
      <pubDate>Thu, 22 Jun 2006 16:36:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-does-mailx-look-up-the-mail-server/m-p/3811019#M773129</guid>
      <dc:creator>ran_li</dc:creator>
      <dc:date>2006-06-22T16:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: how does mailx look up the mail server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-does-mailx-look-up-the-mail-server/m-p/3811020#M773130</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;'sendmail' relys on having a viable DNS running, so first, do that.&lt;BR /&gt;&lt;BR /&gt;You need to setup the smart relay macro in '/etc/mail/sendmail.cf'. You should have something like:&lt;BR /&gt;&lt;BR /&gt;DSadmin.exchange.com&lt;BR /&gt;&lt;BR /&gt;...for the DS macro which should be commented-out.&lt;BR /&gt;&lt;BR /&gt;Also, add your server's hostname and FQDN to '/etc/mail/sendmail.cw' if its not already there.&lt;BR /&gt;&lt;BR /&gt;You do *not* need to have the 'sendmail' daemon running to send out-going mails.  Thus, if you wish, set SENDMAIL_SERVER=0 in ' /etc/rc.config.d/mailservs'.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Jun 2006 16:50:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-does-mailx-look-up-the-mail-server/m-p/3811020#M773130</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-06-22T16:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: how does mailx look up the mail server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-does-mailx-look-up-the-mail-server/m-p/3811021#M773131</link>
      <description>Are you having some sort error messages in your config?, or when you are trying to send mail?&lt;BR /&gt;&lt;BR /&gt;Just in case check this link also:&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/5991-4829/index.html" target="_blank"&gt;http://docs.hp.com/en/5991-4829/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;LN</description>
      <pubDate>Thu, 22 Jun 2006 16:58:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-does-mailx-look-up-the-mail-server/m-p/3811021#M773131</guid>
      <dc:creator>NMory</dc:creator>
      <dc:date>2006-06-22T16:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: how does mailx look up the mail server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-does-mailx-look-up-the-mail-server/m-p/3811022#M773132</link>
      <description>Thanks for the reply.&lt;BR /&gt;&lt;BR /&gt;--'sendmail' relys on having a viable DNS running, so first, do that.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; yes, I have viable DNS running, but the situation is my host(FQDN) is in one domain(say host1.domain1.com) and the mail server (that I wish to use) is in another domain (mailhost1.domain2.com), both DNS server are correctly configured, from host host1.domain1.com I can nslookup and ping mailhost1.domain2.com, however, each time when I use mailx or sendmail it will use another mail server for delivering (mailhost2.domain2.com) so that's why I want to know the search path. I also tried to change the domain/nameserver in resolv.conf, it does not help either.&lt;BR /&gt;&lt;BR /&gt;--You need to setup the smart relay macro in '/etc/mail/sendmail.cf'. You should have something like:&lt;BR /&gt;&lt;BR /&gt;DSadmin.exchange.com&lt;BR /&gt;&lt;BR /&gt;...for the DS macro which should be commented-out.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; I did above but still mail won't be sent from this server&lt;BR /&gt;DSmailhost1.domain2.com&lt;BR /&gt;&lt;BR /&gt;--Also, add your server's hostname and FQDN to '/etc/mail/sendmail.cw' if its not already there.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; tried same as above.&lt;BR /&gt;&lt;BR /&gt;--You do *not* need to have the 'sendmail' daemon running to send out-going mails. Thus, if you wish, set SENDMAIL_SERVER=0 in ' /etc/rc.config.d/mailservs'.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; understand, thanks.</description>
      <pubDate>Thu, 22 Jun 2006 17:04:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-does-mailx-look-up-the-mail-server/m-p/3811022#M773132</guid>
      <dc:creator>ran_li</dc:creator>
      <dc:date>2006-06-22T17:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: how does mailx look up the mail server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-does-mailx-look-up-the-mail-server/m-p/3811023#M773133</link>
      <description>And very important: The mail server (like Exchange) will always reject mail sent to it which is not addressed to anyone on that server. You must tell your mail server admin to allow your local HP-UX to relay messages through their server.</description>
      <pubDate>Thu, 22 Jun 2006 18:22:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-does-mailx-look-up-the-mail-server/m-p/3811023#M773133</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2006-06-22T18:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: how does mailx look up the mail server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-does-mailx-look-up-the-mail-server/m-p/3811024#M773134</link>
      <description>Actually, all the hosts that want to send mail from have been added to the allow list at maihost1.domain2.com, somehow, mail still go through the mailhost2.domain2.com instead of mailhost1.domain2.com. &lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Thu, 22 Jun 2006 19:05:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-does-mailx-look-up-the-mail-server/m-p/3811024#M773134</guid>
      <dc:creator>ran_li</dc:creator>
      <dc:date>2006-06-22T19:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: how does mailx look up the mail server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-does-mailx-look-up-the-mail-server/m-p/3811025#M773135</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Check the below link and /etc/rc.config.d/mailservs file.&lt;BR /&gt;&lt;A href="http://devrsrc1.external.hp.com/STK/impacts/i216.html" target="_blank"&gt;http://devrsrc1.external.hp.com/STK/impacts/i216.html&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Jun 2006 20:30:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-does-mailx-look-up-the-mail-server/m-p/3811025#M773135</guid>
      <dc:creator>V.Tamilvanan</dc:creator>
      <dc:date>2006-06-22T20:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: how does mailx look up the mail server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-does-mailx-look-up-the-mail-server/m-p/3811026#M773136</link>
      <description>/etc/rc.config.d/mailservs&lt;BR /&gt;export SENDMAIL_SERVER=1&lt;BR /&gt;export SENDMAIL_SERVER_NAME=&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Jun 2006 09:07:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-does-mailx-look-up-the-mail-server/m-p/3811026#M773136</guid>
      <dc:creator>ran_li</dc:creator>
      <dc:date>2006-06-23T09:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: how does mailx look up the mail server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-does-mailx-look-up-the-mail-server/m-p/3811027#M773137</link>
      <description>Check the contects of the /etc/nsswitch.conf and make sure they are really correct.  Also, shouldn't you have a specific mail server name in the &lt;BR /&gt;export SENDMAIL_SERVER_NAME= line?  Something like:&lt;BR /&gt;&lt;BR /&gt;export SENDMAIL_SERVER_NAME=mailhost1.domain2.com&lt;BR /&gt;&lt;BR /&gt;Phil</description>
      <pubDate>Fri, 23 Jun 2006 09:17:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-does-mailx-look-up-the-mail-server/m-p/3811027#M773137</guid>
      <dc:creator>Phillip Thayer</dc:creator>
      <dc:date>2006-06-23T09:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: how does mailx look up the mail server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-does-mailx-look-up-the-mail-server/m-p/3811028#M773138</link>
      <description>/etc/nsswitch.conf&lt;BR /&gt;passwd:       files ldap&lt;BR /&gt;group:        files ldap&lt;BR /&gt;hosts:        files ldap dns&lt;BR /&gt;networks:     files ldap&lt;BR /&gt;protocols:    files ldap&lt;BR /&gt;rpc:          files ldap&lt;BR /&gt;publickey:    files&lt;BR /&gt;netgroup:     files ldap&lt;BR /&gt;automount:    ldap files&lt;BR /&gt;aliases:      files&lt;BR /&gt;services:     files ldap&lt;BR /&gt;&lt;BR /&gt;I don't have any value for SENDMAIL_SERVER_NAME in /etc/rc.config.d/mailservs, do I have to?&lt;BR /&gt;&lt;BR /&gt;mailx does not require sendmail daemon to be runing right.&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Fri, 23 Jun 2006 09:41:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-does-mailx-look-up-the-mail-server/m-p/3811028#M773138</guid>
      <dc:creator>ran_li</dc:creator>
      <dc:date>2006-06-23T09:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: how does mailx look up the mail server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-does-mailx-look-up-the-mail-server/m-p/3811029#M773139</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;to emulate, how sendmail is looking up the mail destination, and works out how mail will get there, type:&lt;BR /&gt;&lt;BR /&gt;nslookup -q=mx &lt;RECEIVING domain=""&gt;&lt;BR /&gt;e.g.&lt;BR /&gt;nslookup -q=mx hp.com&lt;BR /&gt;&lt;BR /&gt;this results in a list with weighed mail relays (MX records). the lowest number will be attempted first.&lt;BR /&gt;you can also verify if the mail relay you intnd to use has the most important MX-record for itself, from the system you are sending from (this can vary)&lt;BR /&gt;&lt;BR /&gt;nslookup -q=mx mailhost1.domain2.com&lt;BR /&gt;&lt;BR /&gt;if this seems in order, you can test your sendmail.cf configuration file, by starting it in testmode:&lt;BR /&gt;&lt;BR /&gt;sendmail -bt&lt;BR /&gt;&amp;gt; /parse user@dest.domain.&lt;BR /&gt;&lt;BR /&gt;this will give you the real mailertype, relay and "destination user" sendmail will be using&lt;BR /&gt;i.e.&lt;BR /&gt;mailer smtp, host relay.domain.com, user user@dest.domain&lt;BR /&gt;&lt;BR /&gt;you need to quit test mode using &lt;CTRL. d=""&gt;&lt;/CTRL.&gt;&lt;BR /&gt;with regards to the nsswitch.conf, do you need ldap and dns for host lookup, for the applications running on the system? if not, you could just have files in this line and add mailhost1 to /etc/hosts (if sendmail can only find mailhost1, it can only use that one)&lt;BR /&gt;&lt;BR /&gt;if the result of the test is not what you want, and you need to use ldap and dns for hosts lookup, you could build a new sendmail.cf:&lt;BR /&gt;&lt;BR /&gt;cd /usr/newconfig/etc/mail/cf/cf&lt;BR /&gt;./gen_cf&lt;BR /&gt;&lt;BR /&gt;and answer the questions you find appropriate&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;kasper&lt;BR /&gt;hp&lt;/RECEIVING&gt;</description>
      <pubDate>Tue, 27 Jun 2006 02:43:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-does-mailx-look-up-the-mail-server/m-p/3811029#M773139</guid>
      <dc:creator>Kasper Haitsma</dc:creator>
      <dc:date>2006-06-27T02:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: how does mailx look up the mail server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-does-mailx-look-up-the-mail-server/m-p/3811030#M773140</link>
      <description>Thanks for the details!&lt;BR /&gt;&lt;BR /&gt;nslookup -q=mx mailhost1.domain2.com&lt;BR /&gt;Using /etc/hosts on:  hp03&lt;BR /&gt;&lt;BR /&gt;looking up FILES&lt;BR /&gt;Trying DNS&lt;BR /&gt;mailhost1.domain2.com  preference = 5, mail exchanger = mailhost1.domain2.com&lt;BR /&gt;mailhost1.domain2.com  internet address = 14x.13x.1x.1x&lt;BR /&gt;&lt;BR /&gt;One of the test result that I don't understand is if I did not specify the DS entry in sendmail.cf, and this host(hp03) is NOT in the allow relay list on mailhost1.domain2.com, mail still can be send out to my corporate email account as well as Internet email account(yahoo), but the mail headers are different.&lt;BR /&gt;&lt;BR /&gt;1. for the mail arrived at my corporate mailbox, the header says it uses mailhost1.domain2.com for the mail routing.&lt;BR /&gt;&lt;BR /&gt;2. for the mail arrived at my internet(yahoo) mailbox, the header says it uses 2x7.1x7.5x.1x, &lt;BR /&gt;&lt;BR /&gt;3. I could not lookup this IP address(2x7.1x7.5x.1x) anywhere on the internal LAN, however it can be resolved outside on the internet(outside the corporate network). &lt;BR /&gt;&lt;BR /&gt;It must be a legacy mail server somewhere (because of the company's acquisition), but I m wondering what is the mail route and how the DNS and mail server configuration will affect it.&lt;BR /&gt;&lt;BR /&gt;We use ldap for user authentication, automount and netgroup, it has hosts entries but we use DNS to lookup the hosts.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Jun 2006 20:42:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-does-mailx-look-up-the-mail-server/m-p/3811030#M773140</guid>
      <dc:creator>ran_li</dc:creator>
      <dc:date>2006-06-27T20:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: how does mailx look up the mail server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-does-mailx-look-up-the-mail-server/m-p/3811031#M773141</link>
      <description>Hi !! ALL !&lt;BR /&gt;I am naive member to this forum.&lt;BR /&gt;The topic initiated, here would have been initaied by me today as i have to send message using mailx. SO i would like.. to have summarized , rather documented version of this usage, which will help me. So plz.. reply.. I am sure Mr ran_li will reply.. looking forward for ur replies .... &amp;amp; suggegstions..</description>
      <pubDate>Wed, 20 Sep 2006 03:58:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-does-mailx-look-up-the-mail-server/m-p/3811031#M773141</guid>
      <dc:creator>gopal.ak</dc:creator>
      <dc:date>2006-09-20T03:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: how does mailx look up the mail server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-does-mailx-look-up-the-mail-server/m-p/3811032#M773142</link>
      <description>gopal.ak,&lt;BR /&gt;&lt;BR /&gt;what is your question or problem encountered.&lt;BR /&gt;&lt;BR /&gt;Ran</description>
      <pubDate>Wed, 20 Sep 2006 10:03:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-does-mailx-look-up-the-mail-server/m-p/3811032#M773142</guid>
      <dc:creator>ran_li</dc:creator>
      <dc:date>2006-09-20T10:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: how does mailx look up the mail server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-does-mailx-look-up-the-mail-server/m-p/3811033#M773143</link>
      <description>gopal.ak,&lt;BR /&gt;&lt;BR /&gt;Please initialize another thread for your questions, my problem is not apply to your case specifically.&lt;BR /&gt;&lt;BR /&gt;Ran</description>
      <pubDate>Wed, 20 Sep 2006 10:05:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-does-mailx-look-up-the-mail-server/m-p/3811033#M773143</guid>
      <dc:creator>ran_li</dc:creator>
      <dc:date>2006-09-20T10:05:53Z</dc:date>
    </item>
  </channel>
</rss>

