Donate to Wikipedia

Transform a Mac into an Open-Source Server

The Tutorial


Postfix attempts to be fast, easy to administer, and secure mailer while at the same time being sendmail compatible enough to not upset existing users.
- Postfix Website


The Mac OS X 10.4 default installation includes Postfix version 2.1.5. MacPorts will install version 2.3.8 of Postfix.

To install the MacPorts Postfix package, execute the following from the command line (you may have to enter a Mac OS X administrative password):

sudo port install postfix


To configure the installed Postfix, we need to create configuration files in /opt/local/etc/postfix by entering the following at the command line:

cd /opt/local/etc/postfix
sudo cp
sudo cp

Before you continue with the Postfix configuration, first install and configure Webmin (see menu at left). Login to Webmin on your server once it is up, and go to Postfix under the Servers menu. Click the Module Config link, and set the following configurable options:

Full path to Postfix control command:

Full path to Postfix config command

Full path to Postfix config file:

Full path to Postfix file:

Full path to Postfix aliases generation command:

Full path to “newaliases” (Sendmail compatibility) command:
/usr/bin/newaliases -> ?

Full path to Postfix lookup table command management (`postmap'):

Full path to Postfix queue management command (`postqueue'):

Full path to Postfix supervisor command:

Mail queue base directory:

Mail queue display command:

Mail queue decoding command:

Save Configuration -> it is now Postfix 2.3.8

A log of the Postfix installation can be found here.


Chapter 10 of the Book of Webmin is a great online guide for managing Postfix with Webmin. Other online resources include Postfix Basic Configuration and Virtual Hosting email with Postfix.

Check out for a comprehensive tutorial on the installation of a database-driven Postfix, with Spamassassin, Courier and SASL.