|
我装的是postfix+cyrus-imap+cyrus-sasl2都是最新版本,
按照说明装好并配置好,
起初imap/pop3能认证(telnet,imtest,cyradm都能认证成功)
但postfix的smtp不能认证,后来发现是/etc/sasldb2不能被postfix访问,把postfix加入
mail组后smtp就能成功认证了,然后我就telnet 到localhost 25,发了一封信给cyrus
(saslpasswd2产生的),看postfix日志已成功发出,
ls /var/spool/imap/user/cyrus也能看到那封信,
我就telnet localhost 110
奇怪的是竟不能登录了!(从开始能被认证到这时,也就是解决smtp认证问题的时间不过一个下午,中间
重启过几次,但肯定没有改动cyrus-imap/sasl)
imapd.conf里的sasl_pwcheck_method 用的auxprop
但是改成其它的pwcheck等用系统用户就能被认证,
postfix 的smtpd.conf也是用auxprop,saslpasswd2产生的cyrus能认证,
还有就是sasldblistusers2却说listusers failed...
之后又重装了一次cyrus-imap
求大家帮我看看,什么原因,谢谢
下面是一些配置和log;
cyrus.conf:
##########################################################################
# standard standalone server implementation
START {
# do not delete this entry!
recover cmd="ctl_cyrusdb -r"
# this is only necessary if using idled for IMAP IDLE
# idled cmd="idled"
}
# UNIX sockets start with a slash and are put into /var/imap/socket
SERVICES {
# add or remove based on preferences
imap cmd="imapd" listen="imap" prefork=0
imaps cmd="imapd -s" listen="imaps" prefork=0
pop3 cmd="pop3d" listen="pop3" prefork=0
pop3s cmd="pop3d -s" listen="pop3s" prefork=0
# sieve cmd="timsieved" listen="sieve" prefork=0
# these are only necessary if receiving/exporting usenet via NNTP
# nntp cmd="nntpd" listen="nntp" prefork=0
# nntps cmd="nntpd -s" listen="nntps" prefork=0
# at least one LMTP is required for delivery
# lmtp cmd="lmtpd" listen="lmtp" prefork=0
lmtpunix cmd="lmtpd" listen="/var/imap/socket/lmtp" prefork=0
# this is only necessary if using notifications
# notify cmd="notifyd" listen="/var/imap/socket/notify" proto="udp" prefork=1
}
EVENTS {
# this is required
checkpoint cmd="ctl_cyrusdb -c" period=30
# this is only necessary if using duplicate delivery suppression,
# Sieve or NNTP
delprune cmd="cyr_expire -E 3" at=0400
# this is only necessary if caching TLS sessions
tlsprune cmd="tls_prune" at=0400
}
#############################################################################
imapd.conf:
#############################################################################
configdirectory: /var/imap
partition-default: /var/spool/imap
admins: cyrus
sasl_pwcheck_method: auxprop
##############################################################################
auth.log:
Dec 17 22:31:22 test perl: DIGEST-MD5 client step 2
Dec 17 22:31:31 test perl: No worthy mechs found
#################################################################
imapd.log:
Dec 17 22:23:44 test master[8557]: setrlimit: Unable to set file descriptors limit to -1:
Operation not permitted
Dec 17 22:23:44 test master[8557]: retrying with 1024 (current max)
Dec 17 22:23:44 test master[8557]: process started
Dec 17 22:23:44 test master[8558]: about to exec /usr/cyrus/bin/ctl_cyrusdb
Dec 17 22:23:45 test ctl_cyrusdb[8558]: recovering cyrus databases
Dec 17 22:23:45 test ctl_cyrusdb[8558]: skiplist: recovered /var/imap/mailboxes.db (0
records, 144 bytes) in 0 seconds
Dec 17 22:23:45 test ctl_cyrusdb[8558]: skiplist: recovered /var/imap/annotations.db (0
records, 144 bytes) in 0 seconds
Dec 17 22:23:45 test ctl_cyrusdb[8558]: done recovering cyrus databases
Dec 17 22:23:45 test master[8557]: ready for work
Dec 17 22:23:45 test master[8567]: about to exec /usr/cyrus/bin/ctl_cyrusdb
Dec 17 22:23:45 test ctl_cyrusdb[8567]: checkpointing cyrus databases
Dec 17 22:23:45 test ctl_cyrusdb[8567]: archiving database file: /var/imap/annotations.db
Dec 17 22:23:45 test ctl_cyrusdb[8567]: archiving log file: /var/imap/db/log.0000000001
Dec 17 22:23:45 test ctl_cyrusdb[8567]: archiving database file: /var/imap/mailboxes.db
Dec 17 22:23:45 test ctl_cyrusdb[8567]: archiving log file: /var/imap/db/log.0000000001
Dec 17 22:23:45 test ctl_cyrusdb[8567]: done checkpointing cyrus databases
Dec 17 22:23:45 test master[8557]: process 8567 exited, status 0
Dec 17 22:25:51 test master[8579]: about to exec /usr/cyrus/bin/pop3d
Dec 17 22:25:51 test pop3[8579]: executed
Dec 17 22:25:51 test pop3[8579]: accepted connection
Dec 17 22:26:11 test pop3[8579]: badlogin: test.darkslack.com [192.168.0.214] plaintext cyrus
SASL(-13): user not found: checkpass failed
Dec 17 22:26:38 test master[8581]: about to exec /usr/cyrus/bin/imapd
Dec 17 22:26:39 test imap[8581]: executed
Dec 17 22:26:39 test imap[8581]: accepted connection
Dec 17 22:26:51 test imap[8581]: badlogin: test.darkslack.com [192.168.0.214] plaintext cyrus
SASL(-13): user not found: checkpass failed
Dec 17 22:27:17 test master[8557]: process 8579 exited, status 0
Dec 17 22:28:06 test master[8557]: process 8581 exited, status 0
Dec 17 22:31:22 test master[8593]: about to exec /usr/cyrus/bin/imapd
Dec 17 22:31:22 test imap[8593]: executed
Dec 17 22:31:22 test imap[8593]: accepted connection
Dec 17 22:31:28 test imap[8593]: badlogin: test.darkslack.com [192.168.0.214] DIGEST-MD5
[SASL(-13): user not found: no secret in database]
Dec 17 22:32:31 test master[8557]: process 8593 exited, status 0
################################################################
messages:
Dec 17 22:23:44 test master[8557]: process started
Dec 17 22:23:45 test ctl_cyrusdb[8558]: recovering cyrus databases
Dec 17 22:23:45 test ctl_cyrusdb[8558]: skiplist: recovered /var/imap/mailboxes.db (0
records, 144 bytes) in 0 seconds
Dec 17 22:23:45 test ctl_cyrusdb[8558]: skiplist: recovered /var/imap/annotations.db (0
records, 144 bytes) in 0 seconds
Dec 17 22:23:45 test ctl_cyrusdb[8558]: done recovering cyrus databases
Dec 17 22:23:45 test master[8557]: ready for work
Dec 17 22:23:45 test ctl_cyrusdb[8567]: checkpointing cyrus databases
Dec 17 22:23:45 test ctl_cyrusdb[8567]: done checkpointing cyrus databases
Dec 17 22:26:11 test pop3[8579]: badlogin: test.darkslack.com [192.168.0.214] plaintext cyrus
SASL(-13): user not found: checkpass failed
Dec 17 22:26:51 test imap[8581]: badlogin: test.darkslack.com [192.168.0.214] plaintext cyrus
SASL(-13): user not found: checkpass failed
Dec 17 22:31:28 test imap[8593]: badlogin: test.darkslack.com [192.168.0.214] DIGEST-MD5
[SASL(-13): user not found: no secret in database]
Dec 17 22:31:31 test perl: No worthy mechs found
####################################################################### |
|