Exim with MySQL support

jouwnaam

Verified User
Joined
Mar 17, 2005
Messages
22
I am trying to build greylisting into exim 4.51 (see here
for info), but it seems that there is no support for MySQL in the da-exim RPM ?

What should I do?
 
This is true... There is no mysql support in DA's exim builds. You can do greylisting without using mysql, however.

If you want to go the mysql route, you can rebuild the exim package (use the source rpm if you're on RH/Centos). I have a 4.51 rpm with mysql support that I can provide if you need it.
 
I have CentOs 3, so I downloaded the source RPM. It took me more than an hour to find out what to change (in the MakeFile), but it worked!

Thanks for pointing me in the right direction!

*edit

I you wonder where to look: the makefile you need to change is /usr/src/redhat/SOURCES/da_exim-Makefile

The procedure:
wget http://files.directadmin.com/services/da_exim-4.51-1.src.rpm
rpm -ivh da_exim-4.51-1.src.rpm
nano -w /usr/src/redhat/SOURCES/da_exim-Makefile

*look for and uncomment/change (this is what I have)
LOOKUP_MYSQL=yes
LOOKUP_INCLUDE=-I /usr/include/mysql
LOOKUP_LIBS=-L/usr/lib -lmysqlclient

cd /usr/src/redhat/SPECS
rpmbuild -bb exim.spec
cd /usr/src/redhat/RPMS/i386
rpm -Uvh --force da_exim-4.51-1.i386.rpm
 
Last edited:
Back
Top