DK on DA

gozargah

Verified User
Joined
Oct 21, 2008
Messages
35
Question: I need to setup domain key (DK) on DirectAdmin (DA) control panel. DirectAdmin used exim as mail server by default.

Answer: First, compile and install the DKIM:

wget http://duncanthrax.net/exim-experime...0.16-tk.tar.gz
tar zxvf libdkim-1.0.16-tk.tar.gz
cd libdkim-1.0.16-tk
cd src
make
make install
cd ..
cp lib/libdkim.a /usr/lib
cp include/dkim.h /usr/include/


Compline and Install Domainkeys:


tar zxvf libdomainkeys-0.69.tar.gz
cd libdomainkeys-0.69
make
echo -lresolv > dns.lib
make
make install
cp *.h /usr/local/include/
cp *.a /usr/local/lib


Download Exim:


wget http://files.directadmin.com/service...im-4.69.tar.gz
tar xvzf exim-4.69.tar.gz
cd exim-4.69/Local
wget http://www.directadmin.com/Makefile
perl -pi -e 's/^EXTRALIBS/#EXTRALIBS/' Makefile
Edit the Makefile:
EXPERIMENTAL_DKIM=yes
CFLAGS += -I/usr/include
LDFLAGS += -ldkim -lssl -lstdc++ -L/usr/lib
EXPERIMENTAL_DOMAINKEYS=yes
CFLAGS += -I/usr/local/include
LDFLAGS += -ldomainkeys -L/usr/local/lib
#added April 9, 2008
HAVE_ICONV=yes
CFLAGS=-O -I/usr/local/include
EXTRALIBS_EXIM=-L/usr/local/lib -liconv
#end add

Compile and Install it:

cd ..
make
make 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.


Question: Exim installed on my server by default.
Can i change current configuration for use domain key? or its must remove first. And if its must remove first, how can?


Now, can you help me about second question?
 
You can make any changes to the exim.conf file; whether or not it will still work is entirely up to you. If you need to make any changes to the exim.pl file you must ADD, rather than replace, or you'll probably break the Exim configuration required for DirectAdmin.

I'm not sure what elwse you'd want to change.

Jeff
 
Back
Top