Autor: paul.mcilfatrick Data: A: exim-users Assumpte: [exim] Built Exim 4.72 from source on Ubuntu server 10.04 but
turning on Exim is a problem
Some background before my question.
I have been looking after our local Exim MTA for many years now and I have always built it from source on our Solaris 9 E250 server.
The E250 server is very old and one of its disk has just been replaced as it was failing so the decision has been made to build a new server using a PC running Linux.
I installed Ubuntu server 10.04 on the PC and copied over the configuration file and other files that Exim uses from the old server to the new server.
Next I downloaded the latest Exim source from exim.org, modified its Local/Makefile to match that on our old system and followed the instructions Philip Hazel's 2nd edition Official Guide to Release 4 of Exim. It built eventually (I had to do an 'apt-get build-dep exim4' before it worked!) and then did a "make install".
I have tested sending e-mails from the command line using this new Exim and they were sent and received OK.
The problem I have is following the "section 25.7 Turning Exim on" instructions in Philip Hazel's book.
There is /usr/sbin/sendmail file on the system but no /etc/init.d/sendmail as Ubuntu uses Postfix - it is this file that I had modified on our old Solaris server to set the Exim queue interval.
The /etc/init.d/postfix file exists on Ubuntu but when run this exits immediately as the /etc/postfix/main.cf file does not exist.
Instead of setting a symbolic link to /usr/sbin/sendmail as the book says, I have created a symbolic link to the postfix file with the command:
ln -s /usr/exim/bin/exim /usr/sbin/postfix
and I then modified the /etc/init.d/postfix file so it checks for the Exim configuration at the start instead of the /etc/postfix/main.cf file.
When I issue the /etc/init.d/postfix start command it fails because later in the script it is looking again for the /etc/postfix/main.cf file.
I have extracted the Debian /etc/init.d/exim4 file from its exim4-base package and I had a look at it but I am not sure if I should go down that route.
So then I thought I would e-mail you experts to ask:
Has anyone built Exim from source downloaded from exim.org and got it running on Ubuntu server?