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.

1. Edit the file /etc/yum.repos.d/CentOS-Base.repo or its equivalent in RHEL and edit the lines below.
[base] exclude=postfix [update] exclude=postfix [centosplus] enabled=1 includepkgs=postfix
name=CentOS-$releasever - Plus mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus gpgcheck=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
Visit the forum to ask for help or to give a comment.
***
Posted on 1/6/2009 and last updated on 11/6/2009
Filed under CentOS 5 , Postfix , Red Hat Enterprise Linux 5



March 19th, 2009 at 8:54 am
Thanks! That’s the first working tutorial that i’ve found after weeks!
September 10th, 2009 at 8:18 pm
thanks to the author. i have been looking for installing postfix with mysql for more than a day.this steps helped me a lot.now i successfully installed it.