Exim crashes

Hi all,

I think the problem is that the binary package is compiled for 5.x series. Anyway, most users are using I think 6.x series because the drivers and kernel are just going better and better. Well, I'll give the source a try... keep you posted... but I think I will also encounter the same problems that floris had.
 
just a quick note.
I'm on CentOS 3

also , tried compiling the exim package yesterday, but somehow my dev libs aren't correctly installed.

Keep getting
gcc -o exim_dbmbuild
/usr/bin/ld: cannot find -ldb
collect2: ld returned 1 exit status
make[1]: *** [exim_dbmbuild] Error 1
make[1]: Leaving directory `/root/downloads/exim/exim-4.63/build-Linux-i386'
make: *** [go] Error 2

tried troubleshooting at exim.org , but all they say is install the Berkeley Database.

which is installed , so i'm a bit clueless here :confused:
 
Last edited:
Hello,

I've compiled a new binary package on FreeBSD 6.0. Getting around the lperl.o error, I had to remove the -static option from the Makefile. So, this is a dynamic exim binary, not static. It will be linked against libraries for FreeBSD 6.0, so I'm not sure what will happen with 6.1.

http://files.directadmin.com/services/freebsd6.0/da_exim-4.63-2.tgz

Daank: the "cannot find -ldb" means you need to install the "db4-devel" rpm (or whatever version of db you have)

John
 
Appears as if the package was not properly created. Wrong package name + wrong extract directory? Not sure.

nebula# pkg_add -v da_exim-4.63-2.tgz
Requested space: 2132964 bytes, free space: 9185884160 bytes in /var/tmp/instmp.H4fDT6
pkg_add: package bsdpan-CPAN-1.87 has no origin recorded
pkg_add: package bsdpan-DB_File-1.814 has no origin recorded
pkg_add: package bsdpan-Net_SSLeay.pm-1.30 has no origin recorded
pkg_add: package bsdpan-Term-ReadLine-Perl-1.0302 has no origin recorded
pkg_add: package bsdpan-TermReadKey-2.30 has no origin recorded
pkg_add: package bsdpan-libwww-perl-5.805 has no origin recorded
pkg_add: package bsdpan-mod_perl-1.29 has no origin recorded
pkg_add: package bsdpan-razor-agents-2.82 has no origin recorded
Running pre-install for name exim-4.63-1..
extract: Package name is name exim-4.63-1
extract: CWD to /
extract: //etc/exim.conf
extract: //etc/system_filter.exim
extract: //etc/exim.cert_config
extract: //etc/exim.pl
extract: //usr/local/etc/rc.d/exim
extract: //usr/sbin/exim
extract: //usr/sbin/exim_checkaccess
extract: //usr/sbin/exim_dumpdb
extract: //usr/sbin/exim_fixdb
extract: //usr/sbin/exim_lock
extract: //usr/sbin/exim_tidydb
extract: //usr/sbin/exinext
extract: //usr/sbin/exiwhat
extract: //usr/sbin/exim_dbmbuild
extract: //usr/sbin/exicyclog
extract: //usr/sbin/exigrep
extract: //usr/sbin/eximstats
extract: //usr/sbin/exiqgrep
extract: //usr/sbin/exiqsumm
extract: //usr/local/share/doc/exim/Exim3.upgrade
extract: //usr/local/share/doc/exim/Exim4.upgrade
extract: //usr/local/share/doc/exim/OptionLists.txt
extract: //usr/local/share/doc/exim/README
extract: //usr/local/share/doc/exim/dbm.discuss.txt
extract: //usr/local/share/doc/exim/pcre.txt
extract: //usr/local/share/doc/exim/pcretest.txt
extract: CWD to .
Running post-install for name exim-4.63-1..
Attempting to record package into /var/db/pkg/name exim-4.63-1..
chmod: exim-4.63-1: No such file or directory
pkg_add: couldn't change modes of '/var/db/pkg/name exim-4.63-1' to '444'
mv: /var/db/pkg/name: No such file or directory
pkg_add: move_file: could not perform '/bin/mv ./+COMMENT /var/db/pkg/name exim-4.63-1'
 
Thanks.. should be fixed now.. give 'er another try ;)

Also, rename it to da_exim-4.63-1.tgz from da_exim-4.63-2.tgz .. as it is just a 4.63-1 release... might not matter.

John
 
After compiling the source and installing the new exim i see this in my exim/mainlog:

1GGtEd-000OoQ-3b failed to expand condition "${perl{check_limits}}" for lookuphost router: Undefined subroutine &main::check_limits called.

Not sure why check_limits isn't found? The exim.conf is as default as it can be.

Edit:
Stupid me: exim.pl was missing

Now, exim seems to run fine. Weird thing though: when i send a mail through php, nothing shows up in the mainlog and the mail is not delivered. I recompiled apache and php, but no change. I cannot force the mail out, as there is simply no mail scheduled to go out.

Floris
 
Last edited:
DirectAdmin Support said:

Daank: the "cannot find -ldb" means you need to install the "db4-devel" rpm (or whatever version of db you have)

John

actually i installed that , so that's what's puzzling me
 
Well...

Hi all,

Well, everyone who is running a FreeBSD 6.1 installation with the latest kernel should compile exim from source. Because of the problems mentioned above, this script here below (with credits to floris and I added some extra lines) should do the trick and works like a dream ;).

Code:
cp /etc/exim.conf /etc/exim.conf.keep
cp /etc/system_filter.exim /etc/system_filter.exim.keep
cp /etc/exim.pl /etc/exim.pl.keep
cp /usr/local/etc/rc.d/exim /usr/local/etc/rc.d/exim.keep

cd ~
fetch [url]ftp://ftp.eu.uu.net/pub/unix/mail/exim/exim/exim4/exim-4.63.tar.gz[/url]

tar xvzf exim-4.63.tar.gz

cd exim-4.63/Local

fetch [url]http://www.directadmin.com/Makefile[/url]

vi Makefile
#TLS_LIBS=-L/usr/local/openssl/lib -lssl -lcrypto
#TLS_INCLUDE=-I/usr/local/openssl/include/ -I/usr/kerberos/include
#EXTRALIBS=-static

pkg_delete `pkg_info | grep exim | awk '{ print $1 }'`

cd ..
make
make install

killall exim

rm /usr/sbin/exim
cp /usr/sbin/exim-4.63-1 /usr/sbin/exim
rm /usr/sbin/exim-4.63-1
chmod 4755 /usr/sbin/exim

cp /etc/exim.conf /etc/exim.conf.new
cp /etc/system_filter.exim /etc/system_filter.exim.new
cp /etc/exim.conf.keep /etc/exim.conf
cp /etc/system_filter.exim.keep /etc/system_filter.exim
cp /etc/exim.pl.keep /etc/exim.pl
cp /usr/local/etc/rc.d/exim.keep /usr/local/etc/rc.d/exim

/usr/local/etc/rc.d/exim restart

Recompile apache_2 and php_ap2.
 
Last edited:
Back
Top