|
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: Andy Boyett (agb-postfix
padded-cell.net)
Date: Thu May 04 2006 - 18:22:40 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
-Andy
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]