Setup Email Server From Scratch On FreeBSD

 Intro -> 01 Server Setup

This tutorial is partially complete 2025-05-14
Postfix, Dovecot, & PostfixAdmin work with MySQL and virtual accounts
can be created with PostfixAdmin and used with an email client. Incoming SPF
milter and outgoing OpenDKIM milter signing tested and working.

My two favorite operating systems for servers are FreeBSD and Debian. I switched from Linux to FreeBSD in 1994 and after more development found I was unable to migrate my main project back to Linux.

Fast forward 30 years, I have been using a FreeBSD bhyvie to run an Ubuntu VM with Zimbra. The system works but seems fragile. Forwarding ports with ipfw to the internal VM is tricky, and sometimes the Zimbra VM stops working and need to be rebooted. I'd rather run the email natively on my FreeBSD system so set out on a porject to learn more about email setup and document my progress on FreeBSD.

I started with Debian and used the instructions from linuxbabe.com for Debian and got everything I wanted running on Debian 12. To get it working on FreeBSD I'll match the Debian installation with comparable packages and configurations. I don't pretend to know what I am doing all of the time, and so there is some trial and error.

PLEASE NOTE I MIX PACKAGES AND PORTS AND THIS IS GENERALLY NOT ADVISED
( if it ain't broke don't fix it )

I am not going to use any images for this initially and will use text files from a knowledgebase for simplicity. Once everything is working and documented, I'll go back and make it pretty. Maybe ...


01 Server Setup
02 FAMP Install
03 Postfix SMTPD
04 Dovecot IMAP
05 PostfixAdmin
06 SPF DMARC And DKIM
25 IMAPSYNC

 Intro -> 01 Server Setup