Hi,

I'm finally taking the plunge and moving from distro-pacakged Postfix to
building from source.

I'm reading INSTALL.html

4.4 - Overriding built-in parameter default settings

All Postfix configuration parameters can be changed by editing a Postfix
configuration file, except for one: the parameter that specifies the
location of Postfix configuration files. In order to build Postfix with
a configuration directory other than /etc/postfix, use:

    $ make makefiles CCARGS='-DDEF_CONFIG_DIR=\"/some/where\"'
    $ make


and set the available params to be in my /usr/local/ tree, in export
CCARGS=

  -DDEF_CONFIG_DIR=\"/usr/local/etc/postfix\"       \
  -DDEF_DATA_DIR=\"/var/lib/postfix\"               \
  -DDEF_QUEUE_DIR=\"/var/spool/postfix\"            \
  -DDEF_SENDMAIL_PATH=\"/usr/local/sbin/sendmail\"  \
  -DDEF_NEWALIAS_PATH=\"/usr/local/bin/newaliases\" \
  -DDEF_MAILQ_PATH=\"/usr/local/bin/mailq\"         \
  -DDEF_COMMAND_DIR=\"/usr/local/sbin\"             \
  -DDEF_DAEMON_DIR=\"/usr/local/libexec/postfix\"   \
  -DDEF_MANPAGE_DIR=\"/usr/local/man\"              \
  -DDEF_README_DIR=\"/usr/local/share/doc/packages/postfix-doc/README_FILES\"
  \
  -DDEF_HTML_DIR=\"/usr/local/share/doc/packages/postfix-doc/html\"     
       \

The config & build works OK.

Since I'm installing this for the first time:

"The non-interactive version ("make upgrade") needs the
/etc/postfix/main.cf file from a previous installation. If the file does
not exist, use interactive installation ("make install") instead."

I do the 

    make install

step.  The 1st question it asks is "install_root=/" ?, then other paths.

I guess I'm misunderstanding this process.  What's the purpose of
telling all the compile-time defaults if I have to re-enter everything
when I install?

Since I can't run the non-interactive version, how can I "automate" the
install process so that it puts stuff where I told it to @ compile time?

Thanks!

Reply via email to