Build a Mail Server with Commodity Hardware and FreeBSD
In this Recipe, I'll show you how to build a mail server for your SMB clients using simple, commodity PC hardware, the FreeBSD operating system, and several pieces of freely available open-source software. At first blush, this may appear to be a daunting task. But by following the steps in this Recipe, you'll find it's not difficult at all. In fact, you should be able to build the entire setup in just a couple of hours.
System builders who take advantage of this Recipe stand to increase their business with SMBs by fulfilling their need for low-cost, reliable, and on-site e-mail servers. Because the open-source software I recommend in this Recipe is well-suited to white box hardware, system builders have a wide variety of hardware they can use for such servers. Your customers will appreciate the control and security of a customized onsite solution, which can pay for itself in saved hosting fees.
In Part 1, I'll show you how to use FreeBSD, Postfix, and Dovecot to create a secure, basic e-mail server for a single domain. Then, in Part 2, I'll show how to add extended functionality—including spam detection, virus filtering, and Webmail access—to the basic server we'll build in this first part. Let's get started.