PDA

View Full Version : exim can not start


crea
03-11-2007, 07:32 AM
hi
i restart exim service manager but it not start
i got an error when i connect ssh

/usr/sbin/sendmail: No such file or directory

how can i fix it

smtalk
03-11-2007, 07:36 AM
Try:


# cd /usr/sbin
# ln -s exim sendmail
# service exim restart

If it doesn't help:
# wget http://files.directadmin.com/services/da_exim-4.66-1.src.rpm
# rpmbuild --rebuild da_exim-4.66-1.src.rpm
# rpm -Uvh /usr/src/redhat/RPMS/i386/da_exim-4.66-1.i386.rpm
# /sbin/service exim restart

crea
03-11-2007, 07:44 AM
i try them

1.
ln: creating symbolic link `sendmail' to `exim': File exists
[root@server sbin]# service exim restart
Shutting down exim:
Starting exim: /etc/init.d/exim: line 30: /usr/sbin/exim: No such file or directory


2.
tls-openssl.c:346: error: wrong type argument to unary exclamation mark
make[1]: *** [tls.o] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/da_exim-4.66/build-Linux-i386'
make: *** [go] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.15105 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.15105 (%build)

smtalk
03-11-2007, 07:48 AM
In this case you should compile exim from the source. Follow these steps:
wget ftp://mirror.hostfuss.com/exim/ftp/exim/exim4/exim-4.66.tar.gz
tar xvzf exim-4.66.tar.gz
cd exim-4.66/Local
wget http://www.directadmin.com/Makefile
perl -pi -e 's/^EXTRALIBS/#EXTRALIBS/' Makefile
cd ..
make
make install
mv -f /usr/sbin/exim-4.66-1 /usr/sbin/exim
chmod 4755 /usr/sbin/exim

crea
03-11-2007, 07:51 AM
:S
In file included from tls.c:86:
tls-openssl.c: In function ātls_initā:
tls-openssl.c:346: error: wrong type argument to unary exclamation mark
make[1]: *** [tls.o] Error 1
make[1]: Leaving directory `/root/exim-4.66/build-Linux-athlon'
make: *** [go] Error 2

smtalk
03-11-2007, 08:00 AM
I guess you're using openSSL 0.9.8e. The one way to solve this problem is to downgrade openSSL to 0.9.8d.

The other (better) way to do this is :
# wget -O exim-4.66-openssl.patch http://www.exim.org/bugzilla/attachment.cgi?id=78&action=view
# patch -p0 < exim-4.66-openssl.patch

Do this after "tar xzvf exim-4.66.tar.gz". And after this follow the other steps. Good luck.

jlasman
03-11-2007, 09:18 AM
Note that using exim source downloaded from anywhere besides the official DA repository could give you a version of exim that won't run properly with DA. Be sure especially to use the DA SpamBlocker exim.conf file and the latest DA exim.pl file to be able to deliver mail the way DA expects it.

Jeff