Chinaunix
标题:
telnet localhost 110 出错 帮忙解决 急急!!
[打印本页]
作者:
xgb123
时间:
2008-01-04 15:20
标题:
telnet localhost 110 出错 帮忙解决 急急!!
telnet localhost 110
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.test.com.cn.
Escape character is '^]'.
+OK Hello there.
user
test@test.com.cn
+OK Password required.
pass test
-ERR Temporary problem, please try again later
Connection closed by foreign host.
查看 maillog:
authdaemond: authldaplib: refuse to authenticate
test@test.com.cn
: uid=0, gid=0 (zero uid or gid not permitted)
pop3d: LOGIN FAILED, user=test@test.com.cn, ip=[127.0.0.1]
pop3d: authentication error: Input/output error
debug.log:
authdaemond: raw ldap entry returned:
authdaemond: | cn: Test user
authdaemond: | mail:
test@test.com.cn
authdaemond: | userPassword: {SHA}qUqP5cyxm6YcTAhz05Hph5gvu9M=
authdaemond: | mailMessageStore:test.com.cn/test/Maildir/
authdaemond: | homeDirectory: /var/domains/test.com.cn/test
authdaemond: authldaplib: sysusername=<null>, sysuserid=0, sysgroupid=0, homedir= test.com.cn/test, address=test@test.com.cn
authdaemond: authldaplib: clearpasswd=<null>, passwd={SHA}qUqP5cyxm6YcTAhz05Hph5gvu9M=
authdaemond: password matches successfully
authdaemond: authldap: TEMPFAIL - no more modules will be tried
我的authldaprc配置如下:
LDAP_URI ldap://ldap.extmail.org
LDAP_PORT 389
LDAP_PROTOCOL_VERSION 3
LDAP_BASEDN o=extmailAccount,dc=test.com.cn
LDAP_BINDDN cn=root,dc=test.com.cn
LDAP_BINDPW secret
LDAP_TIMEOUT 5
LDAP_MAIL mail
LDAP_FILTER (active=1)
LDAP_GLOB_UID vmail
LDAP_GLOB_GID vmail
LDAP_HOMEDIR homeDirectory
LDAP_MAILROOT /var/domains
LDAP_MAILDIRQUOTA mailQuota
LDAP_MAILDIR mailMessageStore
LDAP_CRYPTPW userPassword
LDAP_DEREF never
LDAP_TLS 0
main.cf文件配置如下:
readme_directory = no
mydomain = test.com.cn
myhostname = fbsd.test.com.cn
myorigin = $mydomain
virtual_mailbox_base = /var/domains
virtual_uid_maps = static:1000
virtual_gid_maps = static:1000
virtual_alias_maps = $alias_maps, ldap:/usr/local/etc/postfix/ldap_virtual_alias_maps.cf
virtual_mailbox_maps = ldap:/usr/local/etc/postfix/ldap_virtual_mailbox_maps.cf
virtual_mailbox_domains = ldap:/usr/local/etc/postfix/ldap_virtual_domains_maps.cf
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_local_domain = $myhostname
smtpd_use_tls = yes
smtpd_tls_auth_only = no
smtp_tls_CAfile = /usr/local/etc/postfix/certs/cacert.pem
smtp_tls_cert_file = /usr/local/etc/postfix/certs/mycert.pem
smtp_tls_key_file = /usr/local/etc/postfix/certs/mykey.pem
smtpd_tls_CAfile = /usr/local/etc/postfix/certs/cacert.pem
smtpd_tls_cert_file = /usr/local/etc/postfix/certs/mycert.pem
smtpd_tls_key_file = /usr/local/etc/postfix/certs/mykey.pem
smtpd_tls_received_header = yes
smtpd_tls_loglevel = 3
smtpd_starttls_timeout = 60s
virtual_transport = maildrop:
maildrop_destination_concurrency_limit = 1
maildrop_destination_recipient_limit = 1
请大家帮忙解决!
欢迎光临 Chinaunix (http://bbs.chinaunix.net/)
Powered by Discuz! X3.2