This mail-server setup is based on Postfix from Wietse Venema and the Dovecot IMAP and POP3 server. Parts of this mail-server are already included in the standard installation of Mac OS X Leopard, like postfix, but it lacks some important features. For instance, if you want to receive mail from more than one user on different (virtual) domains.
To do that you need some more extensions and added features to de-couple the Postfix user management from the OS X user management, add some virtual domain handling, enable the users to send the mail securely over SSL and don’t open the server for abuse. To be able to do this you need to compile our own version Postfix with support for MySQL (user management), dovecot SASL (authentication), TLS (SSL) and use Dovecot IMAP (virtual mailboxes) or use POP3 to have people download the messages from their mailbox.
Dovecot is going to be included in the server version of OS X Snow Leopard. I haven’t seen it yet on the pre-released version of the workstation version but who know. For our Leopard installation we will compile our own version of Dovecot.
With this setup you can provide email services for friends and family with their own domains and email addresses and without to give them a user account on your machine.
Building the components in 32 bits on Leopard:
Building the components in 64 bits on Leopard:
Configuring the components on Leopard:
When everything is built and installed you are ready to configure all the separate components before we can start it up. I will explain most of the configuration settings as we go along when possible.
- Installing PostfixAdmin 2.2.x
- Creating the mailbox directories on Leopard
- Configuring Postfix for virtual domains and Dovecot authentication
- Configuring Dovecot on Leopard
Get everything running on Leopard:
Now everything is compiled and configured it is time to start everything up and to test if it is working properly. This step also takes care of having everything start-up automatically after a reboot.