If you get the following error when compiling dovecot:
src/login-common/ssl-proxy-openssl.c:763: undefined reference to `SSL_CTX_set_info_callback'
Then edit that file, eg:
cd /usr/local/directadmin/custombuild/dovecot-1.1.2 nano src/login-common/ssl-proxy-openssl.c
Go down to line 762/763 and find this code
if (verbose_ssl)
SSL_CTX_set_info_callback(ssl_ctx, ssl_info_callback);
and replace it with:
// if (verbose_ssl) // SSL_CTX_set_info_callback(ssl_ctx, ssl_info_callback);
to uncomment it. Then type:
make make install