Loading ...
Sorry, an error occurred while loading the content.
 

Re: Strange dilemma with smtp_host_lookup

Expand Messages
  • David Pierce
    On Tue, Jul 5, 2011 at 2:55 PM, Victor Duchovni
    Message 1 of 5 , Jul 5, 2011
      On Tue, Jul 5, 2011 at 2:55 PM, Victor Duchovni <Victor.Duchovni@...> wrote:
      On Tue, Jul 05, 2011 at 02:52:07PM -0700, David Pierce wrote:

      > I have a postfix instance on an admin-type node set to relay mail to a host
      > named "relayhost", i.e., relayhost = relayhost.  Now, relayhost is actually
      > an A record for the IP of the relayhost.  Funny enough, I do believe this
      > worked with 2.3.3 (latest version from CentOS repo).  I say "funny" because
      > I don't believe that should have worked without an MX record (correct me if
      > I'm wrong).

      It works with either A or MX records.

      > Now the fun bit comes in with version 2.8.3:

      http://www.postfix.org/postconf.5.html#smtp_dns_resolver_options

      Does this somehow explain why falling back to native works?   I don't have an entry for relayhost in /etc/hosts.
    • Victor Duchovni
      ... Yes. Your native lookup uses DNS with (C-library) default flags. -- Viktor.
      Message 2 of 5 , Jul 5, 2011
        On Tue, Jul 05, 2011 at 02:59:52PM -0700, David Pierce wrote:

        > > On Tue, Jul 05, 2011 at 02:52:07PM -0700, David Pierce wrote:
        > >
        > > > I have a postfix instance on an admin-type node set to relay mail to a
        > > host
        > > > named "relayhost", i.e., relayhost = relayhost. Now, relayhost is
        > > actually
        > > > an A record for the IP of the relayhost. Funny enough, I do believe this
        > > > worked with 2.3.3 (latest version from CentOS repo). I say "funny"
        > > because
        > > > I don't believe that should have worked without an MX record (correct me
        > > if
        > > > I'm wrong).
        > >
        > > It works with either A or MX records.
        > >
        > > > Now the fun bit comes in with version 2.8.3:
        > >
        > > http://www.postfix.org/postconf.5.html#smtp_dns_resolver_options
        >
        > Does this somehow explain why falling back to native works? I don't have
        > an entry for relayhost in /etc/hosts.

        Yes. Your native lookup uses DNS with (C-library) default flags.

        --
        Viktor.
      Your message has been successfully submitted and would be delivered to recipients shortly.