[Dovecot] Problems with openssl library path

Christian Felsing
Fri, 16 Aug 2013 08:36:18 -0000

Hello,

I tried to compile Dovecot 2.2.5 on Debian 6 with an alternate OpenSSL
installation located at /usr/local/ssl

A compilation with

CPPFLAGS="-I/usr/local/ssl/include" \
LDFLAGS="-L/usr/local/ssl/lib -Wl,-rpath=/usr/local/ssl/lib" \
SSL_LIBS="-L/usr/local/ssl/lib -Wl,-rpath=/usr/local/ssl/lib" \
./configure \
  --prefix=/opt/dovecot-2.2.5 \
  --enable-asserts \
  --enable-largefile \
  --with-ldap=yes \
  --with-zlib \
  --with-bzlib \
  --with-libcap \
  --with-ssl=openssl \
  --with-gc \
  --with-storages=maildir,mbox,mdbox,cydir \

create a working Dovecot, but it still uses the very old Debian 6
OpenSSL 0.9.8 instead my OpenSSL 1.0.1e

LD_LIBRARY_PATH has also no effect, because Dovecot strips it out.

Any hints?

regards
Christian