Detailed Mail Server Setup – FreeBSD
This is a rough note I took down while setting up Mail Server for our school. Corrections are welcome.
This setup is composed of Postfix, Dovecot, ClamAV, Mailscanner, Apache, PHP, MySQL, and Horde Groupware Mail.
Desclaimer: This tutorial is based on similar tutorials I have collected from the internet. This was tested only once but it worked for us. Use this at your own risk.
Take note that I am assuming your FreeBSD box has been installed already. At the time of this writing, the latest version was 7.2. In case you don’t know how to install it, you can check out this site.
Before anything else update FreeBSD ports:
#portsnap fetch extract
Upgrade relevant ports collections so we dont snafu in between!
#mkdir -p /opt/mail
#cd /opt/mail
#fetch http://bsdinn.com/dl/ports.mailserver
#csup -g -L 2 ports.mailserver
#cd /opt/mail
#fetch http://bsdinn.com/dl/ports.mailserver
#csup -g -L 2 ports.mailserver
Install openssl:
#pgrade openssl first
#cd /usr/ports/security/openssl
#make deinstall
#make reinstall
#cd /usr/ports/security/openssl
#make deinstall
#make reinstall