Install Postfix in CentOS 5.3
Check if postfix installed.
# rpm -qa | grep postfix
#
no postfix, maybe sendmail ?
# rpm -qa | grep sendmail
sendmail-8.13.8-2.el5
Remove sendmail
# yum remove sendmail
Install requirement development stuff
# yum groupinstall ‘Development Tools’
# yum groupinstall ‘Development Libraries’
Build postfix with quota and mysql support
# wget -c http://ftp-stud.fht-esslingen.de/Mirrors/centos/5.3/os/SRPMS/postfix-2.3.3-2.1.el5_2.src.rpm
# rpm -ivh postfix-2.3.3-2.1.el5_2.src.rpm
1:postfix warning: user mockbuild does not exist – using root
warning: group mockbuild does not exist – using root
warning: user mockbuild does not exist – using root
warning: group mockbuild does not exist – using root
warning: user mockbuild does not exist – using root
warning: group mockbuild does not exist – using root
warning: user mockbuild does not exist – using root
warning: group mockbuild does not exist – using root
warning: user mockbuild does not exist – using root
warning: group mockbuild does not exist – using root
warning: user mockbuild does not exist – using root
warning: group mockbuild does not exist – using root
warning: user mockbuild does not exist – using root
warning: group mockbuild does not exist – using root
warning: user mockbuild does not exist – using root
warning: group mockbuild does not exist – using root
warning: user mockbuild does not exist – using root
warning: group mockbuild does not exist – using root
warning: user mockbuild does not exist – using root
warning: group mockbuild does not exist – using root
warning: user mockbuild does not exist – using root
warning: group mockbuild does not exist – using root
########################################### [100%]
warning: user mockbuild does not exist – using root
warning: group mockbuild does not exist – using root
warning: user mockbuild does not exist – using root
warning: group mockbuild does not exist – using root
warning: user mockbuild does not exist – using root
warning: group mockbuild does not exist – using root
Next build
# cd /usr/src/redhat/SOURCES
# wget -c http://vda.sourceforge.net/VDA/postfix-2.3.3-vda.patch.gz
# gunzip postfix-2.3.3-vda.patch.gz
# cd /usr/src/redhat/SPECS/
Edit postfix.spec
# nano postfix.spec
Change :
%define MYSQL 0 into
%define MYSQL 1
and add :
Patch0: postfix-2.3.3-vda.patch
into patches area, like this :
# Patches
Patch0: postfix-2.3.3-vda.patch
Patch1: postfix-2.1.1-config.patch
Patch3: postfix-alternatives.patch
Patch6: postfix-2.1.1-obsolete.patch
Patch7: postfix-2.1.5-aliases.patch
Patch8: postfix-large-fs.patch
Patch9: postfix-2.2.5-cyrus.patch
Patch10: postfix-CVE-2008-2936.patch
# rpmbuild -ba postfix.spec
error: Failed build dependencies:
pcre-devel is needed by postfix-2.3.3-2.1.i386
mysql-devel is needed by postfix-2.3.3-2.1.i386
Ok, install pcre-devel dan mysql-devel.
# yum install pcre-devel
# yum install mysql-devel
Try again.
# cd /usr/src/redhat/RPMS/i386 && ls -l
total 11208
-rw-r–r– 1 root root 3792217 May 3 00:19 postfix-2.3.3-2.1.i386.rpm
-rw-r–r– 1 root root 7596206 May 3 00:19 postfix-debuginfo-2.3.3-2.1.i386.rpm
-rw-r–r– 1 root root 49793 May 3 00:19 postfix-pflogsumm-2.3.3-2.1.i386.rpm
Install
# rpm -ivh postfix-2.3.3-2.1.i386.rpm
Preparing… ########################################### [100%]
1:postfix ########################################### [100%]
#
Check it.
# rpm -qa | grep postfix
postfix-2.3.3-2.1
Yes, postfix installation process work well
Incoming search terms for the article:
- postfix-2 3 3-2 1 el5_2 src rpm
- postfix-2 3 3-vda patch gz
- centos mockbuild
- centos postfix postfix-vda patch
- postfix VDA CENTOS
- postfix-pcre centos install
- warning group development libraries does not exist
Incoming search terms for the article:
- postfix-2 3 3-2 1 el5_2 src rpm
- postfix-2 3 3-vda patch gz
- centos mockbuild
- centos postfix postfix-vda patch
- postfix VDA CENTOS
- postfix-pcre centos install
- warning group development libraries does not exist