-
Notifications
You must be signed in to change notification settings - Fork 179
Q0117
Is there a quick walk-through of an Exim install from source anywhere?
Here! This is a contribution from a Red Hat user, somewhat edited. On other operating systems things may be slightly different, but the general approach is the same.
- Install the db needed for Exim. This needs to be done first if you t have a DBM library installed. Go to http://www.sleepycat.com download db-4.1.25.tar.gz, or whatever the current release is. :
gunzip db-4.1.25.tar.gz
tar -xvf db-4.1.25.tar
cd db-4.1.25
cd build_unix
../dist/configure
make
make install
- Add a user for use by Exim, unless you want to use an existing user as mail:
adduser exim
- Now you can prepare to build Exim. Go to
http://www.exim.org or of its mirrors, or the
master ftp site
ftp://ftp.csx.cam.ac.uk/pub/software/email/exim/exim4
, and download
exim-4.20.tar.gz
or whatever the current release is. Then:
gunzip exim-4.20.tar.gz
tar -xvf exim-4.20.tar
cd exim-4.20
cp src/EDITME Local/Makefile
cp exim_monitor/EDITME Local/eximon.conf
- Edit Local/Makefile:
Comment out EXIM_MONITOR= unless you want to install the Exim monitor (it requires X-windows). Set the user you want Exim to use for itself:
EXIM_USER=exim
If your DBM library is Berkeley DB, set up to use its native interface:
USE_DB=yes
Make sure Exim's build can find the DBM library and its headers. If you've installed Berkeley DB 4 you'll need to have settings like this in Local/Makefile:
INCLUDE=-I/usr/local/BerkeleyDB.4.1/include
DBMLIB=/usr/local/BerkeleyDB.4.1/lib/libdb.a
(Check that the first directory contains the db.h file and that the second library exists.) You don't need to change anything else, but you might want to review the default settings in the must specify > section.
-
Build Exim by running the make command.
-
Install Exim by running, as root:
make install
You must be root to do this. You do not have to be root for any of the previous building activity.
-
Run some tests on Exim; see if it will do local and remote veries. Change the configuration if necessary (for example, mmenting
group
on the local_delivery transport if you don't a sticky bit > directory). -
Change Sendmail to Exim (of course you need to have had Sendmail alled to do this).
/etc/init.d/sendmail stop
mv /usr/sbin/sendmail /usr/sbin/sendmail.org
ln -s /usr/exim/bin/exim /usr/sbin/sendmail
/etc/init.d/sendmail start
- Check the Exim log. Either use the Exim monitor, or:
tail -f /var/spool/exim/log/mainlog
- I'm having a problem with an Exim RPM.
- I can't get Exim to compile with Berkeley DB version 2.x or 3.x.
- I'm getting an undefined symbol error for
hosts_ctl
when I try to - I'm about to upgrade no se to a new Exim release. Do I need to ensure
- What does the error install-info: command not found mean?
- Exim doesn't seem to be recognizing my operating system type correctly,
- Exim fails to build, complaining about the absence of the
killpg
- I'm getting an unresolved symbol
ldap_is_ldap_url
when trying to build - I'm getting an unresolved symbol
mysql_close
when trying to build - I'm trying to build Exim with PAM support. I have included
-lpam
in - I'm getting the error db.h: No such file or directory when I try to
- I'm getting the error /usr/bin/ld: cannot find -ldb when I try to
- I've compiled Exim and I've managed to start it but there was one
- How can I remove Sendmail from my system? I've built Exim and run
- What does Can't open ../scripts/newer*: No such file or directory*
- I have tried to build Exim with Berkeley DB 3 and 4, but I always get
- Is there a quick walk-through of an Exim install from source anywhere?
- I've set
LOOKUP_INCLUDE=-I/client/include
in Local/Makefile, but the - I know there are some 3rd-party patches for Exim, for exiscan and other
- I'm trying to compile with LOOKUP_WHOSON, but I keep getting *In