MT6 Haraka

Create a jail for Haraka
Make a zfs filesystem based off the 'base' snapshot we created:

zfs clone zroot/jails/base@10.0 zroot/jails/haraka

Start up the jail:

service jail start haraka

The jail_manage script mounts the /usr/ports from the host system and enters the jail:

jail_manage haraka

Install Haraka dependencies:

pkg install openldap-client gcc gmake iconv node npm cd /usr/local/bin; ln -s g++46 g++

Install Haraka:

npm install -g Haraka haraka -i /usr/local/haraka cd /usr/local/haraka openssl req -x509 -nodes -days 2190 -newkey rsa:1024 -keyout config/tls_key.pem -out config/tls_cert.pem echo 'listen=127.0.0.9:25,127.0.0.9:587' >> config/smtp.ini echo 'daemonize=true' >> config/smtp.ini haraka -c /usr/local/haraka

p0f
p0f is a utility that provides OS detection based on the TCP/IP fingerprint of the remote

# cd /usr/ports/net-mgmt/p0f && make install clean