Richard
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 2.0.1 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:
CXXFLAGS="-arch x86_64"
./configure --with-mysql --with-ssl=openssl --sysconfdir=/etc
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:
If that also went without problems you are ready for installing:



Comments
12:28 am
If I try to do just “make” I get the following error:
/bin/sh: dovecot-config: Permission denied
cat: dovecot-config.in: No such file or directory
make[2]: *** [dovecot-config] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
If I “sudo make” I get this error:
Making all in lib-dovecot
/bin/sh ../../libtool –tag=CC –mode=link gcc -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wstrict-aliasing=2 -export-dynamic -o libdovecot.la -rpath /usr/local/lib/dovecot ../lib-settings/libsettings.la ../lib-dict/libdict.la ../lib-imap/libimap.la ../lib-mail/libmail.la ../lib-auth/libauth.la ../lib-dns/libdns.la ../lib-fs/libfs.la ../lib-charset/libcharset.la ../lib-master/libmaster.la ../lib/liblib.la -export-dynamic -liconv
libtool: link: rm -fr .libs/libdovecot.0.dylib .libs/libdovecot.dylib .libs/libdovecot.lax
libtool: link: gcc -dynamiclib -Wl,-undefined -Wl,dynamic_lookup -o .libs/libdovecot.0.dylib -Wl,-force_load,../lib-settings/.libs/libsettings.a -Wl,-force_load,../lib-dict/.libs/libdict.a -Wl,-force_load,../lib-imap/.libs/libimap.a -Wl,-force_load,../lib-mail/.libs/libmail.a -Wl,-force_load,../lib-auth/.libs/libauth.a -Wl,-force_load,../lib-dns/.libs/libdns.a -Wl,-force_load,../lib-fs/.libs/libfs.a -Wl,-force_load,../lib-charset/.libs/libcharset.a -Wl,-force_load,../lib-master/.libs/libmaster.a -Wl,-force_load,../lib/.libs/liblib.a -liconv -O2 -install_name /usr/local/lib/dovecot/libdovecot.0.dylib -compatibility_version 1 -current_version 1.0 -Wl,-single_module
libtool: link: (cd “.libs” && rm -f “libdovecot.dylib” && ln -s “libdovecot.0.dylib” “libdovecot.dylib”)
libtool: link: (cd .libs/libdovecot.lax/libsettings.a && ar x “/Users/lairage/Documents/DIYMacServer/Mail Server/dovecot-2.0.13/src/lib-dovecot/../lib-settings/.libs/libsettings.a”)
../../libtool: line 1101: cd: .libs/libdovecot.lax/libsettings.a: No such file or directory
make[3]: *** [libdovecot.la] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Any suggestions?
7:10 pm
No, I haven’t seen these errors before. Sounds like something is going very wrong. Which version did you download.
5:31 am
I downloaded from http://www.dovecot.org/download.html, the 2.0.13 stable release source http://www.dovecot.org/releases/2.0/dovecot-2.0.13.tar.gz
5:53 am
Okay. I re-downloaded it and executed the commands from the extracted files in ~/Downloads/dovecot-2.0.13. It worked fine. Before that I was moving the folder into ~/Documents/DIYMacServer where I’ve kept all the other sources.