Photo by Helena Lopes on


If you are running the Postfix version originally came with CentOS 7 or other linux flavor, it will have v2.10.10 or less than v3.

2.10.10 was launched in year 2016 and it is unsupported, this is the reason you should upgrade it to the supported version, at least 3.5.0 or higher. This way you can use many new features as well as your implemention will be less buggy.

Make sure you have tested the config in your test environment before you do these steps in prod.

  • Keep copy of config and other config files like transport, relaylist etc before you uninstall older version.
  • Suggested to make copy of complete /etc/postfix directory.

Uninstall Older Version

yum remove postix
  • Take back up of config files
mv /etc/postfix/ /etc/postfix_old

Download Postfix

  • Download postfix 3 binaries
touch /etc/yum.repos.d/gf.repo
nano /etc/yum.repos.d/gf.repo
name=Ghettoforge packages that won't overwrite core distro packages.
name=Ghettoforge packages that will overwrite core distro packages.
# Please read *before* enabling this repository!

Install Postfix3

  • Install Postfix 3, SASL and other related binaries
yum install postfix3 postfix3-ldap postfix3-mysql postfix3-mysql
yum install cyrus-sasl cyrus-sasl-plain cyrus-sasl-md5
yum enable saslauthd
yum start saslauthd
  • Make configuration file updates, like copy config to /etc/postfix/
  • Now, you can start postfix and verify postfix version.
postconf | grep "ver"
yum enable postfix
yum start postfix

Thanks you for reading !