<?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 Smart Relay on Fedora 4 not working as it should in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/sendmail-smart-relay-on-fedora-4-not-working-as-it-should/m-p/4975383#M47119</link>
    <description>I had something similar once and was because the domain name was in /etc/mail/local-host-names, so the server think that the mail should be delivered locally.</description>
    <pubDate>Tue, 25 Apr 2006 10:55:08 GMT</pubDate>
    <dc:creator>Ivan Ferreira</dc:creator>
    <dc:date>2006-04-25T10:55:08Z</dc:date>
    <item>
      <title>Sendmail Smart Relay on Fedora 4 not working as it should</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sendmail-smart-relay-on-fedora-4-not-working-as-it-should/m-p/4975382#M47118</link>
      <description>One of my servers died - so I built a new one with Fedora 4.  I have disabled selinux (causes too much grief - but not the topic for this discussion).&lt;BR /&gt;&lt;BR /&gt;Any ways, what I had before was two servers, call them servera and serverb. Serverb is my primary web server and backup dns/mail.  Servera is my primary DNS/Mail and backup web.&lt;BR /&gt;&lt;BR /&gt;When servera died, I just made serverb primary for everything (all I did was use the same named.conf from servera and removed the DS macro from sendmail.cf).&lt;BR /&gt;&lt;BR /&gt;Okay - that worked fine (my mini dr plan).&lt;BR /&gt;&lt;BR /&gt;So, I ship out a new servera.  Making it primary DNS again - no problem at all.&lt;BR /&gt;&lt;BR /&gt;I didn't flip the mail yet - so I set the DS macro on servera to DSserverb.mydomain.com&lt;BR /&gt;&lt;BR /&gt;Well - it doesn't work - servera still accecpt mail for mydomain.com and delivers it locally to itself. So - I wind up with 2 email boxes.  Before I make serverb the "backup" mail server again - I want to know why this is happening.&lt;BR /&gt;&lt;BR /&gt;Only changes I made from previous environment &lt;BR /&gt;- servera went from RH9 to FC4&lt;BR /&gt;- using dovecot imap/pop instead of courier imap/pop.&lt;BR /&gt;- using squirrelmail for web based email instead of sqwebmail.&lt;BR /&gt;&lt;BR /&gt;Both servers are FC4.&lt;BR /&gt;&lt;BR /&gt;MX records are:&lt;BR /&gt;&lt;BR /&gt;50 servera.mydomain.com&lt;BR /&gt;5 serverb.mydomain.com&lt;BR /&gt;&lt;BR /&gt;I use maildrop for Mlocal on both servers:&lt;BR /&gt;&lt;BR /&gt;Mlocal,         P=/usr/local/bin/maildrop, F=lsDFMAw5:/|@qSPfhn9, S=EnvFromL/HdrFromL, R=EnvToL/HdrToL,&lt;BR /&gt;&lt;BR /&gt;DSserverb.mydomain.com on servera's sendmail.cf&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Sendmail test from servera:&lt;BR /&gt;&lt;BR /&gt;# sendmail -v -d8.99 -d38.99 gjwild@mydomain.com&lt;BR /&gt;;; res_nquerydomain(servera.mydomain.com, &lt;NIL&gt;, 1, 1)&lt;BR /&gt;;; res_query(servera.mydomain.com, 1, 1)&lt;BR /&gt;;; res_nmkquery(QUERY, servera.mydomain.com, IN, A)&lt;BR /&gt;;; res_send()&lt;BR /&gt;;; -&amp;gt;&amp;gt;HEADER&amp;lt;&amp;lt;- opcode: QUERY, status: NOERROR, id: 52184&lt;BR /&gt;;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0&lt;BR /&gt;;;      servera.mydomain.com, type = A, class = IN&lt;BR /&gt;;; Querying server (# 1) address = 192.168.2.60&lt;BR /&gt;;; new DG socket&lt;BR /&gt;;; got answer:&lt;BR /&gt;;; -&amp;gt;&amp;gt;HEADER&amp;lt;&amp;lt;- opcode: QUERY, status: NOERROR, id: 52184&lt;BR /&gt;;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 1&lt;BR /&gt;;;      servera.mydomain.com, type = A, class = IN&lt;BR /&gt;servera.mydomain.com.            4H IN A         192.168.2.60&lt;BR /&gt;mydomain.com.                 4H IN NS        ns1.twisted4life.com.&lt;BR /&gt;mydomain.com.                 4H IN NS        ns1.granitecanyon.com.&lt;BR /&gt;mydomain.com.                 4H IN NS        servera.mydomain.com.&lt;BR /&gt;mydomain.com.                 4H IN NS        serverb.mydomain.com.&lt;BR /&gt;serverb.mydomain.com.              4H IN A         192.168.2.59&lt;BR /&gt;openmap()       dequote:dequote NULL: valid&lt;BR /&gt;openmap()       host:host NULL: valid&lt;BR /&gt;getcanonname(mydomain.com), trying dns&lt;BR /&gt;dns_getcanonname(mydomain.com, trymx=1)&lt;BR /&gt;dns_getcanonname: trying mydomain.com. (A)&lt;BR /&gt;        YES&lt;BR /&gt;dns_getcanonname: mydomain.com&lt;BR /&gt;getcanonname(mydomain.com), found&lt;BR /&gt;Subject: this is a test&lt;BR /&gt;hello?&lt;BR /&gt;.&lt;BR /&gt;getmxrr([127.0.0.1], droplocalhost=1)&lt;BR /&gt;gjwild@mydomain.com... Connecting to [127.0.0.1] via relay...&lt;BR /&gt;;; res_query(1.0.0.127.in-addr.arpa, 1, 12)&lt;BR /&gt;;; res_nmkquery(QUERY, 1.0.0.127.in-addr.arpa, IN, PTR)&lt;BR /&gt;;; res_send()&lt;BR /&gt;;; -&amp;gt;&amp;gt;HEADER&amp;lt;&amp;lt;- opcode: QUERY, status: NOERROR, id: 52185&lt;BR /&gt;;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0&lt;BR /&gt;;;      1.0.0.127.in-addr.arpa, type = PTR, class = IN&lt;BR /&gt;;; Querying server (# 1) address = 192.168.2.60&lt;BR /&gt;;; new DG socket&lt;BR /&gt;;; got answer:&lt;BR /&gt;;; -&amp;gt;&amp;gt;HEADER&amp;lt;&amp;lt;- opcode: QUERY, status: NOERROR, id: 52185&lt;BR /&gt;;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0&lt;BR /&gt;;;      1.0.0.127.in-addr.arpa, type = PTR, class = IN&lt;BR /&gt;1.0.0.127.in-addr.arpa.  1D IN PTR  localhost.&lt;BR /&gt;0.0.127.in-addr.arpa.   1D IN NS        localhost.&lt;BR /&gt;220 servera.mydomain.com ESMTP Wildmail 9.9.9 ; Tue, 25 Apr 2006 08:25:15 -0700&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; EHLO servera.mydomain.com&lt;BR /&gt;250-servera.mydomain.com Hello localhost [127.0.0.1], pleased to meet you&lt;BR /&gt;250-ENHANCEDSTATUSCODES&lt;BR /&gt;250-PIPELINING&lt;BR /&gt;250-EXPN&lt;BR /&gt;250-VERB&lt;BR /&gt;250-8BITMIME&lt;BR /&gt;250-SIZE&lt;BR /&gt;250-DSN&lt;BR /&gt;250-ETRN&lt;BR /&gt;250-DELIVERBY&lt;BR /&gt;250 HELP&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; VERB&lt;BR /&gt;250 2.0.0 Verbose mode&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; MAIL From:&lt;GJWILD&gt; SIZE=31&lt;BR /&gt;250 2.1.0 &lt;GJWILD&gt;... Sender ok&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; RCPT To:&lt;GJWILD&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; DATA&lt;BR /&gt;250 2.1.5 &lt;GJWILD&gt;... Recipient ok&lt;BR /&gt;354 Enter mail, end with "." on a line by itself&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; .&lt;BR /&gt;050 &lt;GJWILD&gt;... Connecting to local...&lt;BR /&gt;050 &lt;GJWILD&gt;... Sent&lt;BR /&gt;250 2.0.0 k3PFPFag026200 Message accepted for delivery&lt;BR /&gt;gjwild@mydomain.com... Sent (k3PFPFag026200 Message accepted for delivery)&lt;BR /&gt;Closing connection to [127.0.0.1]&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; QUIT&lt;BR /&gt;221 2.0.0 servera.mydomain.com closing connection&lt;BR /&gt;closemaps: closing host (NULL)&lt;BR /&gt;closemaps: closing dequote (NULL)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Note: running sendmail 8.13.6&lt;BR /&gt;&lt;BR /&gt;Also Note: ip's and server names have been renamed to protect the innocent.&lt;BR /&gt;&lt;BR /&gt;So - question is - why is it delivering local instead of to the smart relay?&lt;BR /&gt;&lt;BR /&gt;10 points says it is something obvious that I have overlooked  :)&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/GJWILD&gt;&lt;/GJWILD&gt;&lt;/GJWILD&gt;&lt;/GJWILD&gt;&lt;/GJWILD&gt;&lt;/GJWILD&gt;&lt;/NIL&gt;</description>
      <pubDate>Tue, 25 Apr 2006 09:32:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sendmail-smart-relay-on-fedora-4-not-working-as-it-should/m-p/4975382#M47118</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2006-04-25T09:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail Smart Relay on Fedora 4 not working as it should</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sendmail-smart-relay-on-fedora-4-not-working-as-it-should/m-p/4975383#M47119</link>
      <description>I had something similar once and was because the domain name was in /etc/mail/local-host-names, so the server think that the mail should be delivered locally.</description>
      <pubDate>Tue, 25 Apr 2006 10:55:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sendmail-smart-relay-on-fedora-4-not-working-as-it-should/m-p/4975383#M47119</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-04-25T10:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Sendmail Smart Relay on Fedora 4 not working as it should</title>
      <link>https://community.hpe.com/t5/operating-system-linux/sendmail-smart-relay-on-fedora-4-not-working-as-it-should/m-p/4975384#M47120</link>
      <description>Thanks Ivan - I knew I was overlooking something!&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff</description>
      <pubDate>Tue, 25 Apr 2006 11:02:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/sendmail-smart-relay-on-fedora-4-not-working-as-it-should/m-p/4975384#M47120</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2006-04-25T11:02:54Z</dc:date>
    </item>
  </channel>
</rss>

