On Sun, Mar 09, 2025 at 09:54:29AM +0100, Andreas Kuhlen via Postfix-users
wrote:
> But before I get to that point, I guess I
> need to make more detailed plans about which features I compile postfix
> with. STARTTLS, MySQL and SASL authentication come to mind. I don't really
> know what else is useful/required.
Less is more. Start with the basics, add only what you need.
Because I also use my own OpenSSL builds, I use:
#! /bin/sh
PFIX=/opt/postfix
OSSL=/opt/openssl/3.5
OSSL_LDFLAGS="-Wl,-R,$OSSL/lib64 -L$OSSL/lib64 -lssl -lcrypto"
OSSL_CFLAGS="-I$OSSL/include"
make -f Makefile.init dynamicmaps=yes shared=yes pie=yes
openssl_path=$OSSL/bin/openssl \
"CCARGS=$OSSL_CFLAGS "'-DNO_NIS -DUSE_SASL_AUTH -I/usr/include/sasl
-DHAS_PCRE=2 -DUSE_CYRUS_SASL -DUSE_TLS -DHAS_CDB -DHAS_LMDB' \
"AUXLIBS=$OSSL_LDFLAGS "'-lsasl2 -ldb' \
'AUXLIBS_CDB=-lcdb' \
'AUXLIBS_PCRE=-lpcre2-8' \
'AUXLIBS_LMDB=-llmdb' \
command_directory=$PFIX/sbin \
config_directory=$PFIX/etc \
daemon_directory=$PFIX/libexec \
data_directory=/var/lib/postfix \
mailq_path=$PFIX/sbin/mailq \
newaliases_path=$PFIX/sbin/newaliases \
queue_directory=/var/spool/postfix \
sendmail_path=$PFIX/sbin/sendmail \
shlib_directory=$PFIX/lib64/MAIL_VERSION \
html_directory=no \
manpage_directory=$PFIX/man \
readme_directory=no \
makefiles
This adds TLS, PCRE2, SASL, CDB and LMDB. You're likely content with
the system OpenSSL, and would then want something like:
OSSL=/usr
OSSL_LDFLAGS="-lssl -lcrypto"
OSSL_CFLAGS=""
--
Viktor.
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]