<?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 Two sendmail servers, same domain trouble in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/two-sendmail-servers-same-domain-trouble/m-p/2754443#M1857</link>
    <description>I have a separate server for some hosted domains. Im trying to set up a second sendmail server on this machine, to serve SMTP and POP3 only to that hosted domains. This machine is on the same domain as my main mail server (which serves my main domain only). The problem: All people using the second SMTP server can send emails to anywhere (outside world or to any locally hosted domain) BUT NOT to accounts which are on the main server, under the main domain. This second server tries to deliver the messages directed to the main domain locally, at itself (since it is using the same domain as the main server).&lt;BR /&gt;The MX record of the main domain is pointing at the FQDN of the main server, the MX records of the hosted domains points to the FQDN of the second server.&lt;BR /&gt;But the second server still gives a "User unknown" when trying to deliver emails for the main domain (which by the MX record must be delivered to the main server, but sendmail tries to deliver locally on the second server, and the account really doesnt exists there)&lt;BR /&gt;How can I solve this?</description>
    <pubDate>Fri, 28 Jun 2002 12:36:22 GMT</pubDate>
    <dc:creator>Norman Schmidt Jr</dc:creator>
    <dc:date>2002-06-28T12:36:22Z</dc:date>
    <item>
      <title>Two sendmail servers, same domain trouble</title>
      <link>https://community.hpe.com/t5/operating-system-linux/two-sendmail-servers-same-domain-trouble/m-p/2754443#M1857</link>
      <description>I have a separate server for some hosted domains. Im trying to set up a second sendmail server on this machine, to serve SMTP and POP3 only to that hosted domains. This machine is on the same domain as my main mail server (which serves my main domain only). The problem: All people using the second SMTP server can send emails to anywhere (outside world or to any locally hosted domain) BUT NOT to accounts which are on the main server, under the main domain. This second server tries to deliver the messages directed to the main domain locally, at itself (since it is using the same domain as the main server).&lt;BR /&gt;The MX record of the main domain is pointing at the FQDN of the main server, the MX records of the hosted domains points to the FQDN of the second server.&lt;BR /&gt;But the second server still gives a "User unknown" when trying to deliver emails for the main domain (which by the MX record must be delivered to the main server, but sendmail tries to deliver locally on the second server, and the account really doesnt exists there)&lt;BR /&gt;How can I solve this?</description>
      <pubDate>Fri, 28 Jun 2002 12:36:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/two-sendmail-servers-same-domain-trouble/m-p/2754443#M1857</guid>
      <dc:creator>Norman Schmidt Jr</dc:creator>
      <dc:date>2002-06-28T12:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Two sendmail servers, same domain trouble</title>
      <link>https://community.hpe.com/t5/operating-system-linux/two-sendmail-servers-same-domain-trouble/m-p/2754444#M1858</link>
      <description>First, check the alias resolution:&lt;BR /&gt;&lt;BR /&gt;/usr/lib/sendmail ???bv yourUserName # to check alias resolution&lt;BR /&gt;&lt;BR /&gt;And then check the mail log file for details.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Tom</description>
      <pubDate>Fri, 28 Jun 2002 16:25:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/two-sendmail-servers-same-domain-trouble/m-p/2754444#M1858</guid>
      <dc:creator>Tom Maloy</dc:creator>
      <dc:date>2002-06-28T16:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Two sendmail servers, same domain trouble</title>
      <link>https://community.hpe.com/t5/operating-system-linux/two-sendmail-servers-same-domain-trouble/m-p/2754445#M1859</link>
      <description>sendmail -bv returns "user unknown" on the second server and "deliverable" on the main server. The point is that Im trying to use the second server to send emails to accounts on the main server.&lt;BR /&gt;&lt;BR /&gt;I will try to clarify my setup:&lt;BR /&gt;Two servers running sendmail:&lt;BR /&gt;&lt;BR /&gt;smtp1.mydomain.com&lt;BR /&gt;smtp2.mydomain.com&lt;BR /&gt;&lt;BR /&gt;The DNS setup of machine smtp1 points ONLY to smtp1.mydomain.com as the MX for the domain mydomain.com. &lt;BR /&gt;&lt;BR /&gt;The machine smtp2 does NOT run named, it uses smtp1 to resolve DNS.&lt;BR /&gt;&lt;BR /&gt;If I try to send emails to something@mydomain.com using smtp2 as smtp server, it ignores the DNS MX record for the domain, which points to smtp1 and try to deliver the message locally (in smtp2).&lt;BR /&gt;&lt;BR /&gt;The idea here is to keep all accounts for @mydomain.com in the smtp1 machine, and use the smtp2 server to only server smtp and pop to hosted domains, *NOT* for the mydomain.com domain.&lt;BR /&gt;&lt;BR /&gt;Everything works fine, except that I cant send an email to an xxx@mydomain.com thru the smtp2 server, because it tries to deliver locally, on smtp2.&lt;BR /&gt;&lt;BR /&gt;Any help?</description>
      <pubDate>Fri, 28 Jun 2002 18:06:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/two-sendmail-servers-same-domain-trouble/m-p/2754445#M1859</guid>
      <dc:creator>Norman Schmidt Jr</dc:creator>
      <dc:date>2002-06-28T18:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Two sendmail servers, same domain trouble</title>
      <link>https://community.hpe.com/t5/operating-system-linux/two-sendmail-servers-same-domain-trouble/m-p/2754446#M1860</link>
      <description>Is smtp2 acting as a secondary server for mydomain.com? I've never messed around with sendmail much, qmail is more secure. If I remember correctly, you will need to set mydomain.com as an accepted relay domain for sendmail which will accept messages for mydomain.com but try and deliver them to smtp1.domain.com. Make sure that smtp1.mydomain.com has a lower MX priority than smtp2.mydomain.com does. &lt;BR /&gt;&lt;BR /&gt;If you're looking at doing clustered mail at all, I would look into qmail + vpopmail + mysql extension (&lt;A href="http://cr.yp.to/qmail.html)." target="_blank"&gt;http://cr.yp.to/qmail.html).&lt;/A&gt; This stores all mail in a mysql db for n number of domains &amp;amp; users. &lt;BR /&gt;&lt;BR /&gt;Or look at a way of nfs mounting a users mail file and syncing your account files (/etc/passwd etc...).&lt;BR /&gt;&lt;BR /&gt;But I would seriously consider qmail+vpopmail. It allows for mail accounts on a box without giving them an entry in /etc/passwd or cradentials to the box at all which is more secure. It's worth the small time it takes to set it up and there is great documentation for it. Also as your business grows, you can move the mysql db off to a dedicated box and add more 'drone' boxes on the i'net side to handle connections. One more thing, if you do set it up with mysql as the storage method, add in an iptables rule to only allow mysql connections from your secondary box (smtp2) and have smtp2 point to smpt1's fqdn to use mysql services on it.</description>
      <pubDate>Mon, 01 Jul 2002 19:34:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/two-sendmail-servers-same-domain-trouble/m-p/2754446#M1860</guid>
      <dc:creator>Jonathan Sharp_1</dc:creator>
      <dc:date>2002-07-01T19:34:09Z</dc:date>
    </item>
  </channel>
</rss>

