Exim 4.84-1 does not support MySQL lookup

anadtoka

Member
Mar 22, 2012
6
0
51
cPanel Access Level
Root Administrator
Ok guys here is a deal. I am moving clients sites from Gentoo nginx+php-fpm to cpanel... and currently in process of moving exim rules... really did a lot of hard work with converting nginx rules and integrating exim ones... this is bonus for all you (the owner will buy license then) and me since I will get a job...

So now I have a cpanel installed on Centos 6.6 and wanted to enable MYSQL Lookup support since exim should be able to check mysql database of the site and for this I have to rebuild or your RPM or install another exim ... there was no 4.48-1 version in
http://updates.cpanel.net/pub/exim/ so I decided to add Artrpms repo and install
exim-mysql-4.80.1-49.el6.x86_64 plus exim-4.80.1-49.el6.x86_64

First of cource I removed current exim
Code:
rpm -e --nodeps exim
warning: /etc/localdomains saved as /etc/localdomains.rpmsave
warning: /etc/eximrejects saved as /etc/eximrejects.rpmsave
warning: /etc/exim.pl saved as /etc/exim.pl.rpmsave
Then installed but no luck
Code:
[email protected] [~]# /etc/init.d/exim restart
Shutting down exim: [FAILED]
Starting exim: /usr/sbin/exim: error while loading shared libraries: libspf2.so.2: cannot open shared object file: No such file or directory
[FAILED]
Now PLEASE help me to add exim MYSQL LOOKUP support really count on your help. IT would be cool to have your exim 4-84-1 rebuild with MySQL lookup support but if this will not be possible we can use any other solutions.

IMPORTANT: By the way was also thinking to to use /scripts/eximup ro reinstall exim but it is missing... why is that? I think in this scrip there could be some option to add MYSQL_LOOKUP support. What do you think?
 

anadtoka

Member
Mar 22, 2012
6
0
51
cPanel Access Level
Root Administrator
What I need at least is

Where can I get an srpm of exim-4.84-1.cp1146.x86_64 so I can rebuild it and re-install it..
And tell me where is /scripts/eximup ? can it be returned please? may be I can make needed changes through it and just run eximup --force to reinstall?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,225
463
Hello :)

This is not supported, and I'd advise against setting this up because you would have to maintain Exim and update it on your own. Instead, I suggest opening a feature request for this via:

Submit A Feature Request

If you do decide to go through with it, there's an older thread you may find helpful:

Configuring Exim with MySQL lookup support

Please note our documentation on setting a service to "unmanaged" before installing a custom version:

RPM Targets
RPM Cookbook

Thank you.
 

anadtoka

Member
Mar 22, 2012
6
0
51
cPanel Access Level
Root Administrator
Hurray I did it! yes I saw that thread from the beginning... Sorry have no any other varians.. need this lookup to be added.

Just an update for those who decide to make the same now... That thread is pretty outdated
Packages are now can be found at Downloads - cPanel Inc.

It would be cool if there was search rpm option but anyway you can check your local instaled packaged using rpm-qa and then check appropriate version of cpanel. For example when building from sources it also asked for below additional packages to be installed... I already had cpanel-libspf2-1.2.10-1.cp1136.x86_64.rpm installed.. from the name we can see that package is from cp1136... 11.36 version of cpanel. exim srpm package was under 11.46 version

rpm -Uhv http://httpupdate.cpanel.net/RPM/11...anel-libspf2-devel-1.2.10-1.cp1136.x86_64.rpm
rpm -Uhv http://httpupdate.cpanel.net/RPM/11...anel-libsrs_alt-devel-1.0-2.cp1136.x86_64.rpm
rpm -qa |grep cpanel-pcre
rpm -Uhv http://httpupdate.cpanel.net/RPM/11.36/centos/6/x86_64/cpanel-pcre-devel-8.35-1.cp1136.x86_64.rpm

Now what is left is disable exim updates
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,225
463
I am happy to see you were able to successfully make those changes. You can prevent updates to Exim by setting it to "unmanaged" using the instructions in the documents provided in my previous post.

Thank you.