Sans Pareil Technologies, Inc.

Key To Your Business

Building Postfix

OpenIndiana does not include nisplus, while the default postfix build configuration expects nisplus for SunOS 5. The current 2.8.x no longer supports the -DNO_NIS CCARGS definition to disable nis/nisplus support. In order to build postfix on OpenIndiana, we need to remove the nis related headers from src/util/sys_defs.h for Solaris.

vi src/util/sys_defs.h 404 /** #define HAS_NIS 405 #define HAS_NISPLUS */

Postfix may now be built as usual. The following is a standard script we use to build postfix.

LD_LIBRARY_PATH=ARGS='-DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\"dovecot\"'ARGS=$ARGS' -DUSE_TLS -I/opt/csw/include'ARGS=$ARGS' -DNO_NIS'LIBS='-R/opt/csw/lib -L/opt/csw/lib -lssl -lcrypto -lpcre'make tidymake makefiles CC=/opt/solstudio12.2/bin/cc CCARGS="$ARGS" AUXLIBS="$LIBS"makepfexec make install#pfexec make upgradepfexec make clean

Omit the “CC=/opt/solstudio12.2/bin/cc” key/value from “make makefiles” if you build using GCC.