cyradm --user cyrus --server localhost --auth plain
回车之后才会出现imap password??
奇怪ing
cyradm --user cyrus --server localhost 就没有
只有最后告诉你cyradm: cannot authenticate to server with plain as cyrus
skylove 回复于:2003-06-05 08:14:56我跟你一样的情形!!
情况介绍:redhat 9系统,前面各步骤完全依照王老大的文章配置,一直无错,在安装Cyrus-IMAP的时候由于openssl问题,下载了一个openssl,然后在configure的时候增加了with-openssl=/usr/local/ssl 参数,使得编译可以顺利通过,安装完后,启动/usr/cyrus/bin/cyrusd & 后无错,并有110和143端口打开,有上面的兄弟所提的问题,并且telnet 110和143端口的时候,也会在输入pass <密码> 后提示无法连接。
有对此问题有了解的兄弟么??
另:为了保证以后信件的中文名可以正常出现而不显示成x,需要在make install前修改imap/message.c文件 中的某一句,具体大家可以在www.linuxforum.net的精华帖内查到(我只是改了,但因为cyrusadm这里卡住了,所以还不知道实际效果)
firebird 回复于:2003-06-05 08:23:45前面都发过帖了啊,我也是在某位网友的提示下这么做的:
在编译cyrus-sasl时,加个选项--disable-otp好象就可以了,不知道这是不是攻略上疏忽了。
skylove 回复于:2003-06-05 10:24:19ok,我将问题解决了!!
我将/etc/imapd.conf 改成了
/etc/imapd.conf
configdirectory: /var/imap
partition-default: /var/spool/imap
admins: cyrus
sasl_pwcheck_method: saslauthd
sasl_mech_list: PLAIN #就增加了这行
后就可以出现imap password 显示了,但是。。。随便输入什么,都报告
Login failed: authentication failure at /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/IMAP/Admin.pm line 114
这个是为什么呢?? 我尝试了大概2个半小时。。。最后给cyrus加了个密码就成了(用passwd cyrus 命令设置个密码就成了)
呵呵,分享
糊糊 回复于:2003-06-05 22:49:34按照skylove 兄的做法终于解决了这个问题非常感谢非常
sqs617 回复于:2003-06-06 16:46:04还是搞不定,错误提示如下:
cyradm --user cyrus localhost
IMAP Password:
Login failed: generic failure at /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Cyrus/IMAP/Admin.pm line 118
cyradm: cannot authenticate to server with as cyrus
这是为什么?
skylove 回复于:2003-06-10 11:17:14你将cyrus这个用户加个密码再试一次?
王老大的文章中是没加密码的,可能在redhat 9 下用户必须有密码才可以吧。。。。
糊糊 回复于:2003-06-13 03:02:32我所理解之以上现象分析
是IMAP 安装的问题
其实cyrus 用户密码存放于两个地方 一个是sasldb2 里面 就是用saslpasswd 命令加进去的那个
还有一个是在系统自己的密码库里头
是用系统的passwd 加的
我们之所以能够在passwd 加入密码后能够通过认证,说明imap 在认证cyrus 用户的时候是从系统密码库进行认证的,具体在哪里可以修改我就不知道了
但是至少这样也无所谓
sqs617 回复于:2003-06-13 08:53:29加过密码了,而且我用的是redhat8
viento 回复于:2003-06-21 21:01:56[root@localhost root]# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK localhost.localdomain Cyrus POP3 v2.1.13 server ready <2981475812.1056200369@localhost.localdomain>
USER tester
+OK Name is a valid mailbox
PASSWD testpw
-ERR Unrecognized command
PASS testpw
-ERR [SYS/PERM] Unable to open maildrop --->>>wo de cuo wu!!!
quit
+OK
Connection closed by foreign host.
[root@localhost root]#
zhe shi na li chu wen ti???
viento 回复于:2003-06-21 21:11:12[root@localhost root]# cyradm --user cyrus localhost
Password:
cyradm: cannot authenticate to server with as cyrus
[root@localhost root]# cyradm --user cyrus --server localhost --auth plain
Password:
IMAP Password:
localhost.localdomain> cm user.cyrus
localhost.localdomain> sq user.cyrus STORAGE 10240000
localhost.localdomain> cm user.tester
localhost.localdomain> sq user.tester STORAGE 10240000
localhost.localdomain> lm
INBOX (\HasNoChildren) user.tester (\HasNoChildren)
localhost.localdomain> quit
[root@localhost root]# cyradm --user cyrus --server localhost --auth plain
Password:
IMAP Password:
localhost.localdomain> cm user.testdel
localhost.localdomain> lm
INBOX (\HasNoChildren) user.tester (\HasNoChildren)
user.testdel (\HasNoChildren)
localhost.localdomain> sam user.testdel cyrus cd
localhost.localdomain> dm user.testdel
localhost.localdomain> lm
INBOX (\HasNoChildren) user.tester (\HasNoChildren)
localhost.localdomain> quit
[root@localhost root]# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK localhost.localdomain Cyrus POP3 v2.1.13 server ready <1603503521.1056200904@localhost.localdomain>
USER tester
+OK Name is a valid mailbox
PASS testpw
+OK Maildrop locked and ready
QUIT
+OK
Connection closed by foreign host.
[root@localhost root]# imtest -m login -a tester localhost
S: * OK localhost.localdomain Cyrus IMAP4 v2.1.13 server ready
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES IDLE AUTH=OTP
S: C01 OK Completed
Please enter your password:
C: L01 LOGIN tester {6}
S: + go ahead
C: <omitted>
S: L01 OK User logged in
Authenticated.
Security strength factor: 0
.logout
* BAD Invalid tag
. logout
* BYE LOGOUT received
. OK Completed
Connection closed.
[root@localhost root]#
cheng gong le !!