ethan,我按照文档安装在我的gentoo的系统上,webmail和webman已经没有问题了,authldaprc文件和文档是一样的,可是不能pop3认证不能通过,log如下
Mar 19 20:10:40 mail pop3d: Connection, ip=[::ffff:192.168.123.252]
Mar 19 20:10:40 mail authdaemond: received auth request, service=pop3, authtype=login
Mar 19 20:10:40 mail authdaemond: authldap: trying this module
Mar 19 20:10:40 mail authdaemond: using search filter: (&(active=1)(mail=harley@**.com))
Mar 19 20:10:40 mail slapd[7798]: conn=2 op=2 SRCH base="o=extmailAccount,dc=yeong**,dc=com" scope=2 deref=0 filter="(&(active=1)(mail=harley@**.com))"
Mar 19 20:10:40 mail slapd[7798]: conn=2 op=2 SRCH attr=homeDirectory cn userPassword mail mailQuota
Mar 19 20:10:40 mail slapd[7798]: <= bdb_equality_candidates: (active) index_param failed (18)
Mar 19 20:10:40 mail slapd[7798]: <= bdb_equality_candidates: (mail) index_param failed (18)
Mar 19 20:10:40 mail authdaemond: one entry returned, DN: mail=harley@**.com,virtualDomain=**com,o=extmailAccount,dc=**,dc=com
Mar 19 20:10:40 mail authdaemond: raw ldap entry returned:
Mar 19 20:10:40 mail authdaemond: | mail: harley@**.com
Mar 19 20:10:40 mail authdaemond: | homeDirectory: **.com/harley
Mar 19 20:10:40 mail authdaemond: | cn: harley
Mar 19 20:10:40 mail authdaemond: | mailQuota: 10485760S
Mar 19 20:10:40 mail authdaemond: | userPassword: {CRYPT}R6evCuwp6icH.
Mar 19 20:10:40 mail authdaemond: authldaplib: refuse to authenticate harley@**.com: uid=0, gid=0 (zero uid or gid not permitted)
Mar 19 20:10:40 mail authdaemond: authldaplib: sysusername=<null>, sysuserid=0, sysgroupid=0, homedir=**.com/harley, address=harley@**.com, fullname=harley, maildir=<null>, quota=10485760S, options=<null>
Mar 19 20:10:40 mail authdaemond: authldaplib: clearpasswd=<null>, passwd={CRYPT}R6evCuwp6icH.
Mar 19 20:10:40 mail slapd[7798]: conn=2 op=2 SEARCH RESULT tag=101 err=0 nentries=1 text=
Mar 19 20:10:40 mail pop3d: LOGIN FAILED, user=harley@**.com, ip=[::ffff:192.168.123.252]
Mar 19 20:10:40 mail pop3d: authentication error: Input/output error
Mar 19 20:10:40 mail authdaemond: password matches successfully
Mar 19 20:10:40 mail authdaemond: authldap: TEMPFAIL - no more modules will be tried
另外我用maildrop测试,log和上面一样
#maildrop -d harley@***.com
maildrop: Temporary authentication failure
vi /etc/sasl2/smtpd.conf
pwcheck_method:saslauthd
mech_list: PLAIN LOGIN
log_level: 3
authdaemond_path:/var/lib/courier/authdaemon/socket
mail ~ # ldapsearch -x -LLL -b "o=extmailAccount,dc=***,dc=com" "(objectclass=*)"
dn: o=extmailAccount,dc=***,dc=com
objectClass: organization
o: extmailAccount
dn: virtualDomain=***.com,o=extmailAccount,dc=***,dc=com
virtualDomain: ***.com
createDate: 2007-03-17 16:01:58
expireDate: 2008-03-16 16:01:39
description:: 6Jma5Ly85Z+fIHllb25nLWRhLmNvbQ==
domainMaxAlias: 100
domainMaxUsers: 100
domainMaxQuota: 104857600S
domainMaxNetStore: 104857600S
Transport: maildrop
active: 1
objectClass: top
objectClass: extmailDomain
dn: mail=harley@***.com,virtualDomain=***.com,o=extmailAccount,dc=ye
ong-da,dc=com
mail:
harley@***.com
virtualDomain: ***.com
uid: harley
objectClass: top
objectClass: uidObject
objectClass: extmailUser
mailMessageStore: ***.com/harley/Maildir/
homeDirectory: ***.com/harley
createDate: 2007-03-17 16:02:15
cn: harley
uidNumber: 1000
gidNumber: 1000
netdiskQuota: 10485760S
active: 1
mailQuota: 10485760S
expireDate: 2008-03-16 16:02:00
disablesmtpd: 0
disablesmtp: 0
disablewebmail: 0
disablenetdisk: 0
disableimap: 1
disablepop3: 0
userPassword:: e0NSWVBUfVI2ZXZDdXdwNmljSC4=
我google了很多文档,可是找不到答案,希望得到帮助,谢谢!