|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: Modularized Config Files
From: Wietse Venema (wietse
porcupine.org)
Date: Fri May 05 2006 - 09:46:33 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Andy Boyett:
> Andy Boyett wrote:
> > I am deploying multiple mail servers that are largely going to have
> > the same configuration, only a few items will differ (hostname,
> > interface, some of the aliases, etc.) I planned to break up the
> > configs, into common config files, and machine specific config files.
> > The common configs would contain all of the settings that are the same
> > on all three servers, and settings that differed would be contained in
> > files with names following a naming scheme such as "main.<machine
> > name>.cf" Samba has this implemented, the variable %m is used to
> > store the machine/hostname and configurations can be sourced via this
> > method.
> >
> > I have not been able to find anything similar implemented in postfix,
> > not even an Include directive. If this is not possible in Postfix, is
> > there a reason it has been kept out, or has there just been no
> > demand? This would make if far easier to maintain the servers as the
> > configs are kept in a CVS repository and I had planned to periodically
> > update them via cron.
> >
> > Thank you,
> > -Andy
>
> Just an update. I thought about it more and realized that I can do what
> I need via symlinks and hash tables. It may not be the most elegant
> solution, but going to create a separate directory with a hash table for
> each configuration parameters which needs to vary. the variables within
> main.cf will point to a location that will be symlinked to the correct
> hash table for each machine. It may not be the most elegant solution,
> but it is relatively simple and self-documenting.
Or use the make(1) command, which is designed for this kind of job.
Wietse
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]