On Tue, Jul 05, 2011 at 05:55:30PM -0400, 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

Note, a much better solution with administratively defined settings such as
"relayhost", transport table nexthops, etc. is to append the implied domain:

    main.cf:
        relayhost = relayhost.example.com
        relayhost = relayhost.$mydomain
        ...

    transport:
        example.com     smtp:[relayhost.example.com]
        example.net     smtp:relaymx.example.net
        ...

-- 
        Viktor.

Reply via email to