Raspberry Pi as a bind DNS slave and an exim MX backup

DRAFT, to be completed, but this still might help you:

This was for an Rpi B with 512MB RAM.  Raspbian Jessie.

This is a custom exim 4.86 TLS build to use OpenSSL instead of GNUTLS.

Follow the instructions here, to secure your Rpi: Setting up your pi ; if you don’t do this “they” will take it over in minutes, once you enable the ssh port forwards in your router.

P.S. for the “Jessie” distribution, the static IP address instructions above do not work.  You need to edit /etc/dhcpcd.conf (read it! not dhcpd.conf, but dhcpcd.conf).

DO NOT set the static IP address until you have disabled the “pi” account and root login.

Log in as your new user.

sudo bash

# apt-get install update

# apt-get install upgrade

Have a coffee.

apt-get install -y bind9 clamav-daemon dnsutils libdb5.3-dev libldap2-dev libpcre3-dev libssl-dev libxaw7-dev libxt-dev slapd whois ftp

Have some food.

useradd -s /bin/false -g exim -U exim

cd /usr/local/src

wget http://www.mirrorservice.org/sites/ftp.exim.org/pub/exim/exim4/exim-4.86.tar.gz

after checking the checksum:

tar xvfz exim-4.86.tar.gz

cd exim-4.86

Copy in the makefiles to ./Local (to be uploaded soon).

make

make install

… to be continued…

 

 

This entry was posted in DNS, Linux, smtp. Bookmark the permalink.

Comments are closed.