I used the following to build from source after backing up my config dir: make makefiles \ CCARGS='-fPIC -DUSE_TLS -DUSE_SSL \ -DHAS_MYSQL -I/usr/include/mysql -DPREFIX=\"/usr\" \ -DSNAPSHOT -I/usr/include/openssl \ -I/usr/include' \ AUXLIBS='-L/usr/lib64 -L/usr/lib/openssl -lssl -lcrypto \ -lz -lm -L/usr/lib64/mysql -lmysqlclient -lz -lm \ -Wl,-rpath,/usr/lib/openssl -pie -Wl,-z,relro' \ OPT='-O' \ DEBUG='-g'
Then used checkinstall to build an RPM. Copying files to the temporary directory...OK Stripping ELF binaries...OK Compressing man pages...OK Building file list...OK Building RPM package...OK NOTE: The package will not be installed Erasing temporary files...OK Deleting temp dir...OK Done. The new package has been saved to /usr/src/redhat/RPMS/x86_64/postfix-2.8.0-1.x86_64.rpm You can install it in your system anytime using: rpm -Uhv postfix-2.8.0-1.x86_64.rpm