MT6 SpamAssassin

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

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

Start up the jail:

service jail start spamassassin

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

jail_manage spamassassin

Install SpamAssassin:

pkg install perl5.18 mysql55-client gnupg cd /usr/ports/mail/p5-Mail-SpamAssassin && make install clean

I enable all the options except pgsql, gnupg, and SSL.

echo 'spamd_enable="YES"' >> /etc/rc.conf echo 'spamd_flags="-v -q -x -u spamd -H /var/spool/spamd -A 127.0.0.7,127.0.0.8"' >> /etc/rc.conf service sa-spamd start