<?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 - sending to different server with same hostname in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-sending-to-different-server-with-same-hostname/m-p/3270973#M884547</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'm hosting a website, x.com on my machine, but mail for that domain is being hosted on another machine (i.e. the MX record is differnet then the A record for x.com).  The problem is when I try to send mail to x.com from the website (via php) it never makes it off the website machine.  It thinks it should deliver it locally instead of the real mail server which is a differnet machine.  How can I configure sendmail to send *@x.com mail to the other server instead of itself?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;-John</description>
    <pubDate>Fri, 07 May 2004 16:05:54 GMT</pubDate>
    <dc:creator>john white_4</dc:creator>
    <dc:date>2004-05-07T16:05:54Z</dc:date>
    <item>
      <title>Sendmail - sending to different server with same hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-sending-to-different-server-with-same-hostname/m-p/3270973#M884547</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'm hosting a website, x.com on my machine, but mail for that domain is being hosted on another machine (i.e. the MX record is differnet then the A record for x.com).  The problem is when I try to send mail to x.com from the website (via php) it never makes it off the website machine.  It thinks it should deliver it locally instead of the real mail server which is a differnet machine.  How can I configure sendmail to send *@x.com mail to the other server instead of itself?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;-John</description>
      <pubDate>Fri, 07 May 2004 16:05:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-sending-to-different-server-with-same-hostname/m-p/3270973#M884547</guid>
      <dc:creator>john white_4</dc:creator>
      <dc:date>2004-05-07T16:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail - sending to different server with same hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-sending-to-different-server-with-same-hostname/m-p/3270974#M884548</link>
      <description>on your web server, which is the originator of your outgoing email message, check the sendmail.cf file (under /etc/mail) and see if you can find a line which starts with letters &lt;BR /&gt;&lt;BR /&gt;DS &lt;BR /&gt;&lt;BR /&gt;Since you said, it is trying to send it locally, most probably you do not have the line with DS, which is the smart relay server directive.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 07 May 2004 16:50:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-sending-to-different-server-with-same-hostname/m-p/3270974#M884548</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2004-05-07T16:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail - sending to different server with same hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-sending-to-different-server-with-same-hostname/m-p/3270975#M884549</link>
      <description>Thanks Mel.  I did not have DS set, so I set it to another domain, say y.com (I host several domains on this machine).  However, mail to x.com is still not making it off the box.&lt;BR /&gt;&lt;BR /&gt;Just so you know, mail to any other domain(i.e., besides x.com and y.com) works.</description>
      <pubDate>Fri, 07 May 2004 17:48:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-sending-to-different-server-with-same-hostname/m-p/3270975#M884549</guid>
      <dc:creator>john white_4</dc:creator>
      <dc:date>2004-05-07T17:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail - sending to different server with same hostname</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-sending-to-different-server-with-same-hostname/m-p/3270976#M884550</link>
      <description>You need to take a look at the file /var/adm/maillog&lt;BR /&gt;&lt;BR /&gt;It should show some problems.&lt;BR /&gt;&lt;BR /&gt;sendmail -v -q&lt;BR /&gt;&lt;BR /&gt;Will give you verbose output on the mailq(thats a command to) of the server.&lt;BR /&gt;&lt;BR /&gt;Try an interactive send:&lt;BR /&gt;&lt;BR /&gt;sendmail -v -d8.99 -d38.99 goodguy@x.com&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;&lt;BR /&gt;To forward a single domain in sendmail&lt;BR /&gt;&lt;BR /&gt;/etc/mail/virtusertable&lt;BR /&gt;@x.com           mailserver&lt;BR /&gt;&lt;BR /&gt;/etc/mail/genericstable&lt;BR /&gt;mailserver       @x.com&lt;BR /&gt;&lt;BR /&gt;You'll need this script to build the sendmail macros on HP-UX to make this happen.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.hpux.ws/buildmail.hpux.text" target="_blank"&gt;http://www.hpux.ws/buildmail.hpux.text&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Some tweaking will be required, but this can work.  The target server needs to have the sending server in /etc/mail/access like this:&lt;BR /&gt;&lt;BR /&gt;ip_address_sending_server   RELAY&lt;BR /&gt;&lt;BR /&gt;Example&lt;BR /&gt;&lt;BR /&gt;192.168.0.40    RELAY&lt;BR /&gt;&lt;BR /&gt;If its also hpux, you'll need to build sendmail macros to build this functionality into sendmail.cf&lt;BR /&gt;&lt;BR /&gt;SEP&lt;/ENTER&gt;&lt;/ENTER&gt;</description>
      <pubDate>Fri, 07 May 2004 18:21:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sendmail-sending-to-different-server-with-same-hostname/m-p/3270976#M884550</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-05-07T18:21:20Z</dc:date>
    </item>
  </channel>
</rss>

