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.

ARGS=$ARGS' -DUSE_TLS -I/opt/csw/include'
LIBS='-R/opt/csw/lib -L/opt/csw/lib -lssl -lcrypto -lpcre'

make tidy
make makefiles CC=/opt/solstudio12.2/bin/cc CCARGS="$ARGS" AUXLIBS="$LIBS"
pfexec make install
#pfexec make upgrade
pfexec make clean

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