Modifying Postfix Defaults
Modifying Postfix Defaults
Postfix provides a lot of flexibility through its configuration files. Nearly all of Post- fix’s runtime parameters, including the various directories it uses, can be set in its configuration file except, of course, the location of the configuration file itself. You can change the location by defining DEF_CONFIG_DIR within the CCARGS variable:
$ make makefiles CCARGS='-DDEF_CONFIG_DIR=\"/usr/local/etc/postfix\"'
The single and double quotation marks and backslashes are important since the value for DEF_CONFIG_DIR should itself be quoted. After compilation, Postfix looks for its main.cf configuration file in the directory /usr/local/etc/postfix instead of the default directory, /etc/postfix.
You can use combinations of all the examples above to configure the environment you need. If your command line starts to get complicated, you might want to create a simple shell script to execute it for you. See “Wrapping Things Up” later in this appendix.
Once you have used make makefiles with your specific options to create your Makefile, execute make to build Postfix:
$ make