wipl_piyush

Well-Known Member
Oct 31, 2003
66
0
156
NY
Exim Restart Failed
I got this error when i try to restart exim on my new cpnael box.


Starting exim: /usr/sbin/exim: error while loading shared libraries: libdb.so.3: cannot open shared object file: No such file or directory
[FAILED]
Starting exim-smtps: /usr/sbin/exim: error while loading shared libraries: libdb.so.3: cannot open shared object file: No such file or directory
[FAILED]

**********************************************
My config is :

Celeron , Redhat Enterprise and cpanel latest version , Exim 4
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
What O/S are you running?

No solution, but on my RHE3 servers libdb.so.3 is a symlink in /lib/ defined as:

/lib/libdb.so.3 -> libdb2.so.3

Does the symlink exist? If so, does libdb2.so.3 exist? If not, then that's a problem. If it does, you could recreate the symlink:

ln -s /lib/libdb2.so.3 /lib/libdb.so.3
 

SpringChicken

Member
Dec 16, 2003
18
0
151
nice one chirpy. you were on the nail.

I sent a trouble ticket and support fixed it. My compliments to EV1's great support. Here is what they said they did :

In the /lib folder, a symlink was created to the missing library and re-ran ldconfig. This allowed exim to start.

In whm however under server status, exim still shows up as failed ... also on cpanel for that matter ... although it IS working.

any ideas chirpy ?
 

SpringChicken

Member
Dec 16, 2003
18
0
151
i did the restart already a couple of times, rebooted, reinstalled exim, updated cpanel but still keep getting this annoying red dot !

exim (exim-4.24-30_cpanel_stmpcontrol_antivirus_rewrite_mailman2) failed BIG RED DOT

i also tried disabling mailman. I hope I dont have to live with it ... it's like a painful zit that needs popping !!!
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
I had a little further look into chkservd...do you have a file /etc/chkserv.d/exim and if so, does it contain:

#SERVICE = PORT, SEND, RESPONSE, RESTART COMMAND

service[exim]=25,QUIT,220,/etc/rc.d/init.d/exim stop;/etc/rc.d/init.d/exim stop;/etc/rc.d/init.d/exim stop;/etc/rc.d/init.d/exim start

If that's OK. Can you do this on the server from shell:

telnet 0 25
Trying 0.0.0.0...
Connected to 0 (0.0.0.0).
Escape character is '^]'.
220-www.yourdomain.com ESMTP Exim 4.24 #1 Mon, 16 Feb 2004 00:03:52 +0000

Do you get a similar first line after "Escape character is '^]'.", that is, does it start with:

220
 

SpringChicken

Member
Dec 16, 2003
18
0
151
thanks for your help dude ...

i followed your instuctions:

#SERVICE = PORT, SEND, RESPONSE, RESTART COMMAND

service[exim]=25,QUIT,554,/etc/rc.d/init.d/exim stop;/etc/rc.d/init.d/exim stop;/etc/rc.d/init.d/exim stop;/etc/rc.d/init.d/exim start


[email protected] [~]# telnet 0 25
Trying 0.0.0.0...
Connected to 0 (0.0.0.0).
Escape character is '^]'.
220-XXX.XXXXXX.com ESMTP Exim 4.24 #1 Mon, 16 Feb 2004 00:58:42 +0000
220-We do not authorize the use of this system to transport unsolicited,
220 and/or bulk e-mail.

also i have been getting emails 'exim on srv1.xxxxxxx.com failed' every 20 mins' although it's working ... ????

thanks for your help chirpy
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
33
473
Go on, have a guess
Try changing your:

service[exim]=25,QUIT,554,/etc/rc.d/init.d/exim stop;/etc/rc.d/init.d/exim stop;/etc/rc.d/init.d/exim stop;/etc/rc.d/init.d/exim start

to:

service[exim]=25,QUIT,220,/etc/rc.d/init.d/exim stop;/etc/rc.d/init.d/exim stop;/etc/rc.d/init.d/exim stop;/etc/rc.d/init.d/exim start

Note: 554 -> 220 is the difference. Then run:
/etc/init.d/chkservd stop
/etc/init.d/chkservd start