Wietse Venema: > Priyanka Tyagi: > > Hello, > > > > I am running three Postfix instances (Postfix version - 2.6.2) on a single > > host. I have separate postfix configuration files (main.cf and master.cf) > > specific to each instance. I have most of the configurations common in all > > of the instances. I want to put all common configurations in one file, and > > each instance should include configuration details from common file + > > specific configuration to that particular instance like data_directory etc. > > Does Postfix -2.6.2 support such resue of common configurations? > > > > Please let me know if you need any other details. > > Here is a complete example of how to maintain multiple main.cf files > that share common content.
One missing line added below (first line in the makefile). Contents of /etc/postfix-shared/makefile: ========================================= all: /etc/postfix1/main.cf /etc/postfix2/main.cf /etc/postfix1/main.cf: /etc/postfix-shared/main.cf main.cf-private cat /etc/postfix-shared/main.cf main.cf-private > /etc/postfix1/main.cf postfix -c /etc/postfix1 reload /etc/postfix2/main.cf: /etc/postfix-shared/main.cf main.cf-private cat /etc/postfix-shared/main.cf main.cf-private > /etc/postfix2/main.cf postfix -c /etc/postfix2 reload Command to update Postfix: ========================== $ cd /etc/postfix-shared $ vi main.cf $ make More details in the make(1) manpage. It is available since 1976 or so. Wietse