Dovecot is an open source IMAP and POP3 server for Linux/UNIX-like systems, written with security primarily in mind. Dovecot is an excellent choice for both small and large installations. It’s fast, simple to set up, requires no special administration and it uses very little memory.

First you need to download the latest version, which you can find on the download page of the dovecot site. We’ve used 1.2 for the first supported version. See the blog for further updates on this.

Unpack the Dovecot source into a directory, use the Terminal and ‘cd’ into the directory where you unpacked it. Issue the following commands as a normal user:

CFLAGS="-arch x86_64" \
CXXFLAGS="-arch x86_64"
./configure --with-mysql --with-ssl=openssl --sysconfdir=/etc/dovecot

This will create the appropriate Makefile for compiling dovecot with support for MySQL, SSL and will set the configuration directory to ‘/etc/dovecot’. If that all went without problems then follow with:

make

If that also went without problems you are ready for installing:

sudo make install