make -f Makefile.init makefiles 'CCARGS=-DUSE_SASL_AUTH -L/usr/lib/sasl2 -lsasl2 -lz -lm'
make install
配置过后启动smtp看log,发现如下错误:
warning: unsupported SASL server implementation: cyrus
postfix/smtpd[13710]: fatal: SASL per-process initialization failed
postfix/master[13575]: warning: process /usr/libexec/postfix/smtpd pid 13710 exit status 1
postfix/master[13575]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
经过调查,原因如下:
[Incompat 20051220] The Postfix-with-Cyrus-SASL build procedure has
changed. You now need to specify -DUSE_CYRUS_SASL in addition to
-DUSE_SASL_AUTH or else you end up without any Cyrus SASL support.
The error messages are:
unsupported SASL server implementation: cyrus
unsupported SASL client implementation: cyrus
更换下面的make语句。
make -f Makefile.init makefiles 'CCARGS=-DUSE_CYRUS_SASL -L/usr/lib/sasl2 -lsasl2 -lz -lm'
搞定~