Building Postfix

The Postfix .rpm binaries do not come with mysql support enabled- therefore you must compile your own. Download the Postfix SRPM and build the packages this way:
rpm -ivh postfix.src.rpm
cd /usr/src/redhat/SPECS
Fire up your favorite text editor and edit postfix.spec
Change the line from:
%define MYSQL 0
to:
%define MYSQL 1
Exit editor, then:
cd ../
rpmbuild -ba SPEC/postfix.spec
(It will take a while to finish compiling)
cd RPMS/i386
Then, install the RPMs:
rpm -Uvh *.rpm --replacefiles


Amin Astaneh 2007-02-28