You can build a Postfix package on a machine that does not have
Postfix installed on it. All you need is Postfix source code and
a compilation environment that is compatible with the target system.
You can build a pre-built Postfix package as an unprivileged
user.
First compile Postfix. After successful compilation, execute:
% make package
With Postfix versions before 2.2 you must invoke the post-install
script directly (% sh post-install).
You will be prompted for installation parameters. Specify an
install_root directory other than /. The
mail_owner and
setgid_group
installation parameter settings will be recorded in the main.cf
file, but they won't take effect until the package is unpacked and
installed on the destination machine.
If you want to fully automate this process, specify all the
non-default installation parameters on the command line:
% make non-interactive-package install_root=/some/where...
With Postfix versions before 2.2 you must invoke the post-install
script directly (% sh post-install -non-interactive
install_root...).