Postfix 2.9 Upgrade

Building Postfix 2.10 on RHEL6 / CentOS 6 from Source 6

Postfix 2.9 UpgradeI’ve previously written a how-to for compiling Postfix from source on a CentOS 5 box. I recently tried following the same steps on a CentOS 6 box, to upgrade from Postfix 2.6.6 which is installed by default.

I’m glad to report that the same instructions will work just fine to upgrade from Postfix 2.6.6 to 2.10. The only difference I found was after the make upgrade command, I saw the following:

Editing /etc/postfix/, adding missing entry for postscreen TCP service
Editing /etc/postfix/, adding missing entry for smtpd unix-domain service
Editing /etc/postfix/, adding missing entry for dnsblog unix-domain service
Editing /etc/postfix/, adding missing entry for tlsproxy unix-domain service

Which is basically just informing me that the upgrade process tweaked to support the upgrade.

My CentOS 6 box now reports the following:

# postconf -d | grep mail_version
mail_version = 2.10.0

So feel free to follow these same steps for upgrading a RHEL 6/CentOS 6 box with the default Postfix 2.6.6 to Postfix 2.10 built from source. Good luck!

  • Flin

    Hi Steve,

    good blog, i’ve this error after make upgrade command:

    Please review the INSTALL instructions first.

    What’s this?

  • the diamond

    type “make clean” that fixed INSTALL instructions first for me

  • Gao

    Thanks for the great instruction. I just followed it and it
    works. I installed it on a new CentOS 6.4 64bit with MariaDB. There
    is only one change I made is that I have to use an additional
    “-lrt” flag when doing the makefile.

  • Ard Righ

    I was wondering have you tried building Postfix from the source RPM file, and rpmbuild tools?

    I am trying to build the CentOS Postfix package, but enable the Postgres support in the spec file, and not having much luck.

    I have tried ‘mock’ as that seems to be what people recommend, but the documentation for ‘mock’ is not very accurate.

    • Hi, Ard. I tried it a while back, and ran into issues. That’s why I just build direct from the source now. I actually find it easier than rolling my own RPM.

  • Shiva

    Hi ..!!
    i have installed/configured postfix mail server and now i want to send mass mails, is there option to break those bulk mails into single mails and queue 1000 recipients to one after the other ?