On 24/07/16 06:00, Michael Fox wrote:
> In http://www.postfix.org/postconf.5.html, there is no general rule at the
> top that says a filename can be used for any parameter.  So it is evidently
> available only for some parameters.  And some of the above parameters are
> indeed documented as allowing filenames (mynetworks, mydestination,
> relay_domains, virtual_mailbox_domains).  

Specifically, they can be specified in database tables, which can be any
of the supported table types listed in postconf -m.

> 1) myorigin is not documented as allowing a filename.  But the Ubuntu
> Postfix package sets it to /etc/mailname, which seems to work.  Perhaps
> http://www.postfix.org/postconf.5.html should be updated?

This is a debian modification, it is not supported by Postfix.

> 5) Alternatively, I could place all of the host-specific parameters in a
> file that is then included into main.cf, such as "!include
> host-specific-main.cf".  But I don't see an include mechanism listed.  Does
> it exist?

It would be nice, but no.  People have scripted this in the past,
though, by using something like a makefile to build main.cf (and
possibly master.cf) from a collection of other files.


Peter

Reply via email to