The version of Postfix that comes with Red Hat Enterprise Linux 5 or CentOS 5 does not support MySQL lookups. You can build your own custom Postfix RPM or get a prebuilt RPM from the CentOS Plus repository. You can use the CentOS repository in RHEL since CentOS is binary compatible with RHEL. This article describes how to install Postfix with MySQL lookup table support from the CentOS Plus repository.

Edit CentOS-Base.repo1. Edit the file /etc/yum.repos.d/CentOS-Base.repo or its equivalent in RHEL and edit the lines below.


If you are using RHEL, add the lines below under the centosplus section.
name=CentOS-$releasever - Plus
yum remove postfix2. Type yum remove postfix in a terminal window to remove the standard version of Postfix.
yum install postfix3. Type yum install postfix to install the version of Postfix found in the CentOS Plus repository.
postconf -m4. To verify MySQL support, type postconf -m and check if mysql is found in the output.

Visit the forum to ask for help or to give a comment.

Posted on 1/6/2009 and last updated on 3/8/2011
Filed under CentOS 5 , Postfix , Red Hat Enterprise Linux 5