Rocco Scappatura: > > > > > I have different SMTP gateways each one configurred exactly at > > the > > > > same > > > > > manner. The only difference is the hostname. > > > > > > > > > > I would like to know if I could define "/etc/postfix" as an NFS > > > share > > > > > somewhere and export it on each of my SMTP gateways. The aim is > > > > > obviously to change only one configuration file each time that a > > > > postfix > > > > > configuration update is needed. > > > > > > > > Let the computer do the work for you. See: man 1 make. If you are > > > > not familiar with this tool, then you work too hard. > > > > > > I know that make is a really powerfull tool. I have used it (in the > > > sense that I have write down some Makefile) for compiling rather few > > C > > > projects. At the moment I can't guess how I could use 'make' for my > > > purpouse. I feel that in some manner it could be a substitution > > matter > > > that 'make' is very clever to manage. But I can't infere anything > > more.. > > > > > > Could you give me further insight? :-) > > > > > > > # cat Makefile > > FILES: main.cf-a main.cf-b main.cf-c > > > > all: $(FILES) > > > > main.cf-a: Makefile main.cf-template > > sed 's/whatever/whatever/' main.cf-template >$@ > > rsync -av $@ hosta:/etc/postfix > > > > main.cf-b: Makefile main.cf-template > > sed 's/whatever/whatever/' main.cf-template >$@ > > rsync -av $@ hostb:/etc/postfix > > > > main.cf-c: Makefile main.cf-template > > sed 's/whatever/whatever/' main.cf-template >$@ > > rsync -av $@ hostc:/etc/postfix > > Thanks Wietse, > > you are asserting implicitily that is better to avoid the use of an NFS > filesystem mounted on /etc/postfix of each SMTP gateway?
No. You can change the pathnames in my example, and use /some/where/hosta/etc/postfix instead of hosta:/etc/postfix. There are lots of ways to set up NFS shares and I won't speculate on how you did it. You still need something to tell the remote host that the file has changed. Wietse