Postfix Building RPMs

The main reson that I build my own Postfix RPMs is so i can enable the MySQL module.

Installing Prerequisites for Postfix RPM Build
First we need to make sure we have all the needed packets. yum -y install rpm-build zlib-devel openldap-devel cyrus-sasl-devel pcre-devel mysql-devel openssl-devel db4-devel sqlite-devel gcc gpg git

Download the Required Build Files
Now we need to download the required file to build the packets with. We are going to use subversion for this. cd /usr/src/redhat/SOURCES git clone git@github.com:mattrude/rpmbuild-postfix.git. Or git clone git://github.com/mattrude/rpmbuild-postfix.git.

Next we need to download the current stable postfix release from one of the postfix download site (http://postfix.energybeam.com/source/index.html)

The Build Commands
rm -rf /usr/src/redhat/RPMS/*/* rm -rf /usr/src/redhat/SRPMS/* rpmbuild -ba postfix.spec scp /usr/src/redhat/RPMS/i386/* mythtv@mythtv:/var/www/html/repo/fedora/9/i386/ scp /usr/src/redhat/SRPMS/* mythtv@mythtv:/var/www/html/repo/fedora/9/SRPMS/ ssh mythtv@mythtv /home/mythtv/bin/buildmdrrepo