On Wed, 3 Dec 2014 16:55:47 +0000
Viktor Dukhovni <[email protected]> wrote:

> On Wed, Dec 03, 2014 at 04:36:12PM +0000, James Bailey wrote:
> 
> > is it possible to use a non fully qualified host name as relayhost?
> 
> Not by default.  And it is generally not a good idea to change this.
> 
> However, if you replace the relayhost setting with:
> 
>     # Default empty value
>     # relayhost =
>     default_transport = nondns:[relayhost]
> 
> and never use the "nondns" transport in transport_maps with
> any other nexthop address, you can configure:
> 
>     master.cf:
>       nondns     unix  -       -       n       -       -       smtp
>         -o smtp_host_lookup=native
>         # With Postfix >= 2.11 uncomment this, comment-out next:
>         # -o smtp_dns_support_level=disabled
>         -o disable_dns_lookups=yes
> 
> > My client has a number of different relay hosts in DCs globally these are
> > marked for example us1, us2, in1, au2. So a relay-host. I would simple like
> > to be able roll out a default single main.cf globally with relayhost =
> > my-relay rather than my-relay.$dc.example.com and have to change it for each
> > DC.
> 
> It is simplest to automate the construction of a site-specific
> main.cf with a Makefile.
> 
> -- 
>       Viktor.


Perfect, thanks to all for the suggestions and for supporting! :)

Reply via email to