庆祝postfix的TLS/IPv6 patch产品版本release 别了,长安!
Jan 20
作者: 肖建彬 | 可以转载, 转载时务必以超链接形式标明文章原始出处和作者信息及版权声明
网址:http://www.xiaojb.com/archives/mailtech/courier-authlib.shtml

从 Courier 0.48, Courier-IMAP 4.0, and SqWebMail 5.0,maildrop-1.8.0(authlib可选)开始,这些产品都使用一个模块courier-authlib,我的编译authlib时的选项是
./configure –prefix=/home/postfix/authlib –without-authpam \
–without-authcustom –without-authpgsql –without-authldap \
–without-authuserdb –without-authpwd –without-authshadow \
–without-authvchkpw –with-authmysql \
–with-authdaemonvar=/home/postfix/authlib/var \
–mandir=/home/postfix/man –without-stdheaderdir \
–sysconfdir=/home/postfix/authlib/etc
make
make install
make install-migrate
make install-configure

因为改变了courier-authlib的安装位置,所以需要加选项–without-stdheaderdir,在编译imapd的时候需要设定环境变量COURIERAUTHCONFIG,它的值就是完整courierauthconfig的路径,configure通过运行这个命令得到authlib的头文件,库文件的位置。假如没有指定COURIERAUTHCONFIG,或者指定的courierauthconfig的路径是错误的,那么courier-imap将无法找到头文件和库文件。例子:
/home/postfix/authlib/bin/courierauthconfig –ldflags
程序输出-L/home/postfix/authlib/lib/authlib
/home/postfix/authlib/bin/courierauthconfig –cppflags
程序输出-I/home/postfix/authlib/include

我编译imapd的选项是:
COURIERAUTHCONFIG=/home/postfix/authlib/bin/courierauthconfig ./configure –prefix=/home/postfix/imapd \
–silent –without-authpgsql –without-ipv6 \
–mandir=/home/postfix/man –disable-root-check
编译通过。

Tags: , , ,

Leave a Reply