Mar 152010
First, we need to clone Simon J. Mudd postfix repository at github
$ git clone git://github.com/sjmudd/postfix-rpm.git
Switch to (also create local) POSTFIX_2_7 branch
$ cd postfix-rpm $ git checkout --track -b POSTFIX_2_7 origin/POSTFIX_2_7
Copy postfix-rpm, which contain POSTFIX_2_7 branch
$ cd .. $ cp -rp postfix-rpm postfix-2.7
Create .rpmmacros on your homedir if you don’t have one
$ make setup
Fetch source files
$ make fetch
Setup the required build options. ie :
export POSTFIX_SMTPD_MULTILINE_GREETING=1 export POSTFIX_LDAP=1 export POSTFIX_MYSQL_REDHAT=1 export POSTFIX_PCRE=1 export POSTFIX_PGSQL=1 export POSTFIX_RBL_MAPS=1 export POSTFIX_SASL=2 export POSTFIX_TLS=1 export POSTFIX_VDA=1 export POSTFIX_DB=4
Now it’s time to compile
$ make rpm
When done. install with this command
$ sudo rpm -Uvh ~/RPM/PKG/postfix-2.7.0-1.pcre.pgsql.mysql.sasl2.vda.fc12.x86_64.rpm
You may also want to read these posts:
- postfix-2.8.0.src.rpm
- Centos 5 Compile Postfix With Tcp Table Support
- postfix-2.8-20110105 rpm source
- postfix-2.9.20110501 SRC RPM With sqlite3 Support
- Compiling Postfix-2.7.0 As RPM Package
- Hosting Your Own Git Repository on fedora 12
- postfix-2.8.0-RC3, postfix-2.9.20110118 rpm source
- Postfix, One Way Maildir Replication / Backup Using Inotify And Rsync
- Postfix Bind Sender Domain To Dedicated Outgoing IP Address
- Compiling postfix snapshot (postfix-2.7-20091209) on FreeBSD 6.1
Follow me on Twitter