How To Upgrade Postfix On CentOS / AWS Linux
erics, Posted November 6th, 2011 at 5:39:00pm
YMMV…
1 2 3 4 5 6 |
# postconf -d | grep ^mail_version # yum install db4-devel openssl-devel cyrus-sasl cyrus-sasl-devel pcre pcre-devel openldap openldap-devel # cd # wget http://postfix.energybeam.com/source/official/postfix-2.8.4.tar.gz # tar xvzf postfix-2.8.4.tar.gz # cd postfix-2.8.4 |
For 32-bit (i386 or i686)
1 |
# make makefiles CCARGS='-fPIC -DUSE_TLS -DUSE_SSL -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -DPREFIX=\"/usr\" -DHAS_LDAP -DLDAP_DEPRECATED=1 -DHAS_PCRE -I/usr/include/openssl -I/usr/include/sasl -I/usr/include' AUXLIBS='-L/usr/lib -L/usr/lib/openssl -lssl -lcrypto -L/usr/lib/sasl2 -lsasl2 -lpcre -lz -lm -lldap -llber -Wl,-rpath,/usr/lib/openssl -pie -Wl,-z,relro' OPT='-O' DEBUG='-g' |
For 64-bit (x86_64)
1 |
# make makefiles CCARGS='-fPIC -DUSE_TLS -DUSE_SSL -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -DPREFIX=\"/usr\" -DHAS_LDAP -DLDAP_DEPRECATED=1 -DHAS_PCRE -I/usr/include/openssl -I/usr/include/sasl -I/usr/include' AUXLIBS='-L/usr/lib64 -L/usr/lib64/openssl -lssl -lcrypto -L/usr/lib64/sasl2 -lsasl2 -lpcre -lz -lm -lldap -llber -Wl,-rpath,/usr/lib64/openssl -pie -Wl,-z,relro' OPT='-O' DEBUG='-g' |
For all..
1 2 3 4 |
# make # make upgrade # service postfix restart # postconf -d | grep ^mail_version |
Note: the following files or directories still exist but are no longer part of Postfix and can be deleted:
1 2 3 4 |
rm /etc/postfix/postfix-files rm /etc/postfix/postfix-script rm /etc/postfix/post-install rm /usr/share/doc/postfix-2.3.3/README_FILES/QMQP_README |
Resources
Original post by Steve Jenkins: http://stevejenkins.com/blog/2011/01/building-postfix-2-8-on-rhel5-centos-5-from-source/
http://www.postfix.org/INSTALL.html
Leave Your Comment
All fields marked with "*" are required.