On Thu, June 3, 2010 3:35 pm, gmx wrote: > So as per http://www.postfix.org/mysql_table.5.html each of the mysql > config files contains a > > hosts = mydbhost.domain.tld > user = mydbUser > password = myPassword > dbname = myDB > > section before the query. > Once any of these parameters needs to be changed, the values need to be > changed repetitively for each query. > > If the query file format would allow for > << > import=/etc/postfix/mysql/dbConf.cf > >>
No need. Can be done very easily with a makefile. Something like: /etc/postfix/mysql/Makefile: all: foo.cf bar.cf foo.cf: dbConf.cf.in foo.cf.in cat dbConf.cf.in foo.cf.in > foo.cf bar.cf: dbConf.cf.in bar.cf.in cat dbConf.cf.in bar.cf.in > bar.cf Then each time you change dbConf.cf.in, foo.cf.in, or bar.cf.in, do: cd /etc/postfix/mysql make all (then reload or restart postfix as you would normally)