Postfix
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
- Postfix Website
Installation
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
Configuration
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 main.cf.sample main.cf
sudo cp master.cf.sample master.cf
sudo cp main.cf.sample main.cf
sudo cp master.cf.sample master.cf
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:
/opt/local/sbin/postfix
Full path to Postfix config command
opt/local/sbin/postconf
Full path to Postfix config file:
/opt/local/etc/postfix/main.cf
Full path to Postfix master.cf file:
/opt/local/etc/postfix/master.cf
Full path to Postfix aliases generation command:
/opt/local/sbin/postalias
Full path to “newaliases” (Sendmail compatibility) command:
/usr/bin/newaliases -> ?
Full path to Postfix lookup table command management (`postmap'):
/opt/local/sbin/postmap
Full path to Postfix queue management command (`postqueue'):
/opt/local/sbin/postqueue
Full path to Postfix supervisor command:
/opt/local/sbin/postsuper
Mail queue base directory:
/opt/local/var/spool/postfix
Mail queue display command:
/opt/local/bin/mailq
Mail queue decoding command:
/opt/local/sbin/postcat
Save Configuration -> it is now Postfix 2.3.8
/opt/local/sbin/postfix
Full path to Postfix config command
opt/local/sbin/postconf
Full path to Postfix config file:
/opt/local/etc/postfix/main.cf
Full path to Postfix master.cf file:
/opt/local/etc/postfix/master.cf
Full path to Postfix aliases generation command:
/opt/local/sbin/postalias
Full path to “newaliases” (Sendmail compatibility) command:
/usr/bin/newaliases -> ?
Full path to Postfix lookup table command management (`postmap'):
/opt/local/sbin/postmap
Full path to Postfix queue management command (`postqueue'):
/opt/local/sbin/postqueue
Full path to Postfix supervisor command:
/opt/local/sbin/postsuper
Mail queue base directory:
/opt/local/var/spool/postfix
Mail queue display command:
/opt/local/bin/mailq
Mail queue decoding command:
/opt/local/sbin/postcat
Save Configuration -> it is now Postfix 2.3.8
A log of the Postfix installation can be found here.
Documentation
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 Postfix-Tutorial.com for a comprehensive tutorial on the installation of a database-driven Postfix, with Spamassassin, Courier and SASL.


