Last updated: Jul 24, 2019

FreeBSD Version: 12.0-RELEASE-p8

First, I would like to thank DrkShdw, Worth, and Fr0zen from ##FreeBSD on FreeNode for their time and ideas when it came down to me writing this tutorial/guide. So, thanks a ton, fellas! Now, on with it!

I wrote this tutorial because of the many, MANY times I’ve been asked about how to set up Postfix on a FreeBSD system. There are many great tutorials out there that can guide people through a Postfix setup. However, none of them are related to FreeBSD. So, I’ve decided to give it a go and here it is.

Note: Please be aware that there will be a lot more installed than actually concentrated on due to this tutorial utilizing the FreeBSD Ports System and installing any dependencies that a port may require to run efficiently.

Any questions or comments can be sent to the PHO Postfix Mailing Lists. Standard comments are welcome here on the site. However, there will be no replies via the comment pages. Also, it just seems more useful for others to be able to read questions and answers on the mailing lists. You can also join us for whatever reason you see fit on our PHO IRC Server. So, enjoy and please, please, PLEASE let me know if you run into any problems. How the hell am I to fix something if no one reports errors?

With the above being stated and you having still read to here, I’ll go ahead and assume that you’re going to follow this tutorial/guide. If so, please keep in mind that anything written in BOLD, RED TEXT will need to be executed, added or edited. Also, you should be sure that your FreeBSD Ports Tree is up-to-date. So, let’s get started, shall we? Use the links below to begin.

Base MTA Setup:

Page 1 – Maia-Mailguard Install

Page 2 – MySQL Setup

Page 3 – Dovecot Setup

Page 4 – Postfix Setup

Page 5 – Apache Setup

Page 6 – PHP Setup

Page 7 – Postfixadmin Setup

Page 8 – SpamAssassin Setup

Page 9 – FuzzyOCR Setup

Page 10 – Clam Anti-Virus Setup

Page 11 – PEAR Setup

Page 12 – Maia-Mailguard Setup

Optional Applications:

Page 13 – Roundcube Install

Page 14 – Mailman Install

Page 15 – Mailgraph Install

Extras!

Add SPF (Policy Check and DNS)

Dovecot “Last Login” Addition

