|
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: Victor Duchovni (Victor.Duchovni
MorganStanley.com)
Date: Tue May 02 2006 - 18:38:18 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, May 02, 2006 at 04:35:27PM -0700, 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.
>
The stock answer is "man make"... Make can combine all your config
fragments into a single configuration file. You can even use m4 if you
are feeling nostalgic... :-)
--
Viktor.
P.S. Morgan Stanley is looking for a New York City based, Senior Unix
system/email administrator to architect and sustain the Unix email
environment. If you are interested, please drop me a note.
Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.
To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:majordomo
postfix.org?body=unsubscribe%20postfix-users>
If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]