This is a bare-bones package to build the latest release of dovecot available (dovecot-1.0.alpha4 as of Nov 10, 2005) on OpenBSD and includes changes to permit compiling with ldap support if desired. It will build this release of dovecot under OpenBSD 3.7 but I believe should work with minimal or no changes on earlier releases.
Archives for each version of the package are available here:
OpenBSD 3.7: dovecot-openbsd3.7.tar
OpenBSD 3.8: dovecot-openbsd3.8.tar
To build with ldap support, enable the ldap FLAVOR and "make" using a command like one of the following:
env FLAVOR="ldap" make package
or
env FLAVOR="ldap" sudo make package
I had hoped this package would become obsolete when OpenBSD 3.8 was released November 1. 2005 but dovecot remains in the final stages of release candidate testing and the latest version has not yet been adopted by the dovecot package maintainer.