亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費注冊 查看新帖 |

Chinaunix

  平臺 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
查看: 1051 | 回復(fù): 0
打印 上一主題 下一主題

Problem of Cyrus-IMAP & Cyrus-SASL [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報告]
發(fā)表于 2009-08-18 11:41 |只看該作者 |倒序瀏覽

  • COMPILE CONFIG:

1.openssl:
./config --prefix=/usr --openssldir=/usr/local/openssl
2.BerkeleyDB-4.7.25
../dist/configure --prefix=/usr
3.cyrus-sasl:
./configure --enable-checkapop --enable-auth-sasldb

注意:
1).因為cyrus-sasl-2.1.23 現(xiàn)在的configure只支持到db-4.4,而rhel5.3里面內(nèi)置了db-4.3,并且放在了/lib下,所以就算是裝了bdb-4.7,鏈接時也會鏈接到bdb-4.3。這也許還不夠得上一個bug,誰讓rhel5.3內(nèi)置bdb-4.3那,但最好還是能像(cyrus-imap里面一樣,添加一個 --with-bdb 的配置選項,那樣比較智能了)
改正方法:用 find .|xargs grep db-4.3,然后會查到很多configure或者.m4文件,在每個for后面都添加上db-4.7,大概修改7-8個文件,然后再configure就可以了。
2).--enable-auth-sasldb這個選項在根目錄下configure --help中并沒有說明,是在saslauthd中的configure --help中提示的,如果不加這個選項將不能用bdb(也就是/etc/sasldb2)作為用戶認(rèn)證數(shù)據(jù)庫來用。

make;make install完就可以測試了,
1。用saslpasswd2 -c 來創(chuàng)建一個用戶。
2.用sasldblistusers2 來dump出用戶名來看是否一致
3.saslauthd 是個認(rèn)證服務(wù)程序,運行:saslauthd -a sasldb
4.用testsaslauthd -u  -p  來測試,如果都成功,就成功了。
如果不成功,錯誤日志在/var/log/message中
4.cyrus-imap:
./configure --with-bdb=db-4.7 --with-openssl=/usr/local/openssl

make; make install
然后進入perl/imap目錄 ,按照README來做
        perl Makefile.PL
        make
        make test       # or see below
        make install
make test 沒弄明白是什么,可以不做啦

http://cyrusimap.web.cmu.edu/imapd/install-configure.html

然后添加cyrus用戶,并且設(shè)置密碼:useradd cyrus;passwd cyrus
然后用saslpasswd2 創(chuàng)建 cyrus用戶,不然會出現(xiàn)后面的錯誤的。
saslpasswd2  cyrus

創(chuàng)建/etc/imap.conf配置文件,內(nèi)容從cyrus-imap主頁上抄的.
   configdirectory: /var/imap
   partition-default: /var/spool/imap
   admins: curtj abell
   sasl_pwcheck_method: saslauthd
然后拷貝master/normal.conf 為/etc/cyrus.conf
在用cyrus -u cyrus localhost
>cm user.
千萬記住前面的user. 不然很麻煩

4.postfix
1). make tidy
2). make makefiles CCARGS="-DHAS_DB -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/local/include/sasl" AUXLIBS="-L/usr/local/lib/sasl2 -lsasl2 -ldb-4.7"
3). make

http://www.postfix.org/INSTALL.html

小心系統(tǒng)自帶的saslauthd,系統(tǒng)自帶的這個版本(我的是22)用的本地socket是/var/run/saslauthd/mux,
而自己編譯的saslauthd和libsasl2用的是/var/state/saslauthd/mux,如果弄混了就會出現(xiàn)連不上的情況。
chmod 666 /etc/sasldb2

這個文件是smtpd的認(rèn)證配置文件,有些文檔里面寫的應(yīng)該放在/usr/lib/sasl/目錄下,這樣也可以,cyrus-sasl2的源碼中明確說明了新版本的默認(rèn)搜索目錄變?yōu)?usr/lib/sasl2:/etc/sasl2。
/etc/sasl2/smtpd.conf

smtpd.conf的內(nèi)容:
pwcheck_method: saslauthd
mech_list: plain login

  • ISSUE:

1._sasldb_getkeyhandle has failed
我遇到的問題是因為bdb版本不兼容問題,雖然在configure配置的是dbd-4.7,但實際上鏈接的是bdb-4.3(rhel5.3自帶bdb4.3)。解決方法是把/lib和/usr/lib下的有關(guān)libbdb-4.3的文件都刪掉

2.ERR: USER command only available under a layer
在/etc/imap.conf中添加:
allowplaintext:yes

3.cyradm不能登陸,在/var/log/message中出現(xiàn) “unable to tell master 1/2/3 : Broken pipe”和“perl: No worthy mechs found”錯誤提示
在/etc/imap.conf中添加
sasl_mech_list: PLAIN


3.IMAP Password:
先給系統(tǒng)的cyrus賬戶添加密碼,passwd cyrus
再給imap中的cyrus賬戶添加密碼,saslpasswd2 cyrus

  • CONFIG FILE

1.Cyrus-imap:
/etc/cyrus.conf
/etc/imapd.conf
2.Cyrus-sasl:
Postfix command:
postsuper -d  刪除發(fā)送隊列中的郵件 當(dāng)message-id為ALL時為刪除全部
postconf -n


本文來自ChinaUnix博客,如果查看原文請點:http://blog.chinaunix.net/u2/86948/showart_2030600.html
您需要登錄后才可以回帖 登錄 | 注冊

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報專區(qū)
中國互聯(lián)網(wǎng)協(xié)會會員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP