On Tue, Jul 11, 2017 at 01:21:44PM -0700, techlist06 wrote:

> make makefiles CCARGS=' -fPIC -DUSE_TLS -DUSE_SSL -DUSE_SASL_AUTH
> -DDEF_SERVER_SASL_TYPE=\"dovecot\" -DPREFIX=\\"/usr\\" -DHAS_PCRE
> -I/usr/include/openssl
> -I/usr/include/dovecot
> -I/usr/include'

Do NOT add "/usr/include/openssl" to the include path, the OpenSSL
headers are included as "#include <openssl/...>" and so the include
path is just "/usr/include", which should already be used by default,
but if your compiler is putting something else first, just
"/usr/include" will suffice.

The above is sufficient for "dovecot" SASL support in smtpd(8), but
not for Cyrus SASL support in smtp(8).  See SASL_README.

    http://www.postfix.org/SASL_README.html#sasl_support

> AUXLIBS='-L/usr/lib64 -L/usr/lib64/openssl
>          -lssl -lcrypto -L/usr/lib64/sasl2 -lpcre -lz -lm
>          -Wl,-rpath,/usr/lib64/openssl -pie -Wl,-z,relro'

Does the OpenSSL whose headers are in /usr/include really put
its libraries in a non-default location: /usr/lib64/openssl?

More importantly, /usr/lib64/sasl2 is surely Cyrus SASL, but you've
not enabled Cyrus support.

Compilation instructions are in:

        http://www.postfix.org/INSTALL.html

and in "README" files for various optional features:

        TLS_README
        SASL_README
        ...

-- 
        Viktor.

Reply via email to