如何在 OS X 10.10.3 上将 SASL 支持编译到 Postfix-3.0.0

How do I compile SASL support into Postfix-3.0.0 on OS X 10.10.3

我正在尝试从 postfix.org 和 运行 的源代码中编译带有 SASL 支持的 Postfix-3.0.0,但遇到了一些麻烦。 该版本正在寻找

dict_ni.c:39:10: fatal error: 'netinfo/ni.h' file not found
#include <netinfo/ni.h>

但我不知道在 make 生成文件行中放什么.... 这适用于 TLS

make makefiles CCARGS="-DUSE_TLS -I/usr/local/include"  AUXLIBS="-L/opt/local/lib -lssl -lcrypto”

非常感谢任何帮助,谢谢。

我终于搞定了。这适用于 Yosemite 10.10.3,安装了 Postfix-3.1、Dovecot 和 Mysql,并编译了 SASL&TLS。 我使用了新的 - 撰写本文时最新的 postfix-3.1.xxx 和最新的 Dovecot.

make -f Makefile.init dynamicmaps=yes CCARGS='-DHAS_MYSQL -I/usr/local/include/mysql -DUSE_TLS -DUSE_SASL_AUTH -DDEF_SERVER_SASL_TYPE=\"dovecot\" -DHAS_PCRE -I/opt/local/include' 'AUXLIBS=-L/opt/local/lib -lssl -lcrypto' 'AUXLIBS_MYSQL=-L/usr/local/lib -lmysqlclient -lz -lm' 'AUXLIBS_PCRE=-L/opt/local/lib -lpcre’ makefiles

仅供参考。