First, compile and install the DKIM:
wget http://duncanthrax.net/exim-experimental/libdkim-1.0.16-tk.tar.gztar zxvf libdkim-1.0.16-tk.tar.gzcd libdkim-1.0.16-tkcd srcmakemake installcd ..cp lib/libdkim.a /usr/libcp include/dkim.h /usr/include/
Compline and Install Domainkeys:
tar zxvf libdomainkeys-0.69.tar.gzcd libdomainkeys-0.69makeecho -lresolv > dns.libmakemake installcp *.h /usr/local/include/cp *.a /usr/local/lib
Download Exim:
wget http://files.directadmin.com/services/all/exim/exim-4.69.tar.gztar xvzf exim-4.69.tar.gzcd exim-4.69/Localwget http://www.directadmin.com/Makefileperl -pi -e 's/^EXTRALIBS/#EXTRALIBS/' Makefile
Edit the Makefile:
EXPERIMENTAL_DKIM=yesCFLAGS += -I/usr/includeLDFLAGS += -ldkim -lssl -lstdc++ -L/usr/libEXPERIMENTAL_DOMAINKEYS=yesCFLAGS += -I/usr/local/includeLDFLAGS += -ldomainkeys -L/usr/local/lib#added April 9, 2008HAVE_ICONV=yesCFLAGS=-O -I/usr/local/includeEXTRALIBS_EXIM=-L/usr/local/lib -liconv#end add
Compile and Install it:
cd ..makemake install
Last job, you need to rename the compiled exim and restart:
cp -f /usr/sbin/exim-4.69-12 /usr/sbin/exim/sbin/service restart exim
That's it, you have exim with domainkeys on DirectAdmin now.