<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>肖建彬的博客 &#187; Courier</title>
	<atom:link href="http://www.xiaojb.com/archives/tag/courier/feed" rel="self" type="application/rss+xml" />
	<link>http://www.xiaojb.com</link>
	<description>奋斗无止境 爱拼才会赢</description>
	<lastBuildDate>Sun, 16 Oct 2011 14:27:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>courier-authlib的应用</title>
		<link>http://www.xiaojb.com/archives/mailtech/courier-authlib.shtml</link>
		<comments>http://www.xiaojb.com/archives/mailtech/courier-authlib.shtml#comments</comments>
		<pubDate>Thu, 20 Jan 2005 15:49:59 +0000</pubDate>
		<dc:creator>xjb</dc:creator>
				<category><![CDATA[MailTech]]></category>
		<category><![CDATA[Authlib]]></category>
		<category><![CDATA[Courier]]></category>
		<category><![CDATA[Maildrop]]></category>
		<category><![CDATA[Postfix]]></category>

		<guid isPermaLink="false">http://www.xiaojb.com/wp/?p=41</guid>
		<description><![CDATA[从 Courier 0.48, Courier-IMAP 4.0, and SqWebMail 5.0.开始，这些产品都将使用一个模块courier-authlib，介绍一下使用authlib的一些经验。]]></description>
			<content:encoded><![CDATA[<p>从 Courier 0.48, Courier-IMAP 4.0, and SqWebMail 5.0,maildrop-1.8.0(authlib可选)开始，这些产品都使用一个模块courier-authlib，我的编译authlib时的选项是<br />
./configure &#8211;prefix=/home/postfix/authlib &#8211;without-authpam \<br />
&#8211;without-authcustom &#8211;without-authpgsql &#8211;without-authldap \<br />
&#8211;without-authuserdb &#8211;without-authpwd &#8211;without-authshadow \<br />
&#8211;without-authvchkpw &#8211;with-authmysql \<br />
&#8211;with-authdaemonvar=/home/postfix/authlib/var \<br />
&#8211;mandir=/home/postfix/man &#8211;without-stdheaderdir \<br />
&#8211;sysconfdir=/home/postfix/authlib/etc<br />
make<br />
make install<br />
make install-migrate<br />
make install-configure</p>
<p>因为改变了courier-authlib的安装位置，所以需要加选项&#8211;without-stdheaderdir,在编译imapd的时候需要设定环境变量COURIERAUTHCONFIG,它的值就是完整courierauthconfig的路径，configure通过运行这个命令得到authlib的头文件，库文件的位置。假如没有指定COURIERAUTHCONFIG,或者指定的courierauthconfig的路径是错误的，那么courier-imap将无法找到头文件和库文件。例子:<br />
/home/postfix/authlib/bin/courierauthconfig &#8211;ldflags<br />
程序输出-L/home/postfix/authlib/lib/authlib<br />
/home/postfix/authlib/bin/courierauthconfig &#8211;cppflags<br />
程序输出-I/home/postfix/authlib/include</p>
<p>我编译imapd的选项是：<br />
COURIERAUTHCONFIG=/home/postfix/authlib/bin/courierauthconfig ./configure &#8211;prefix=/home/postfix/imapd \<br />
        &#8211;silent &#8211;without-authpgsql &#8211;without-ipv6 \<br />
        &#8211;mandir=/home/postfix/man &#8211;disable-root-check<br />
编译通过。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xiaojb.com/archives/mailtech/courier-authlib.shtml/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

