Postfix Building RPMs

From MattWiki
Jump to: navigation, search

FedoraLogo infinity-2.png Note: This Page was written with Fedora 8 & 9 in mind, and may not work correctly with other versions or distributions.

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 clone git:// .

Next we need to download the current stable postfix release from one of the postfix download site (

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