兄弟帮忙呀....
从远端可以telnet并通过认证,但用outlook发信却不可以了。并且没有认证的调试信息。
以下是在远端telnet mail.liuqang.cn 25
220 mail.liuqang.cn ESMTP
helo mail.liuqang.cn
250 mail.liuqang.cn
ehlo mail.liuqang.cn
250-Requested mail action okay, completed
250-SIZE 10240000
250 8BITMIME
auth login
334 VXNlcm5hbWU6
d2FuZw==
334 UGFzc3dvcmQ6
Mjk5NDgw
235 Authentication successful
mail from: <
wang@liuqang.cn>
553 Requested action not taken: mailbox name not allowed or chunk too large
mail from: <
wang@liuqang.cn>
250 Ok
rcpt to: <
postmaster@liuqang.com.cn>
250 Ok
data
354 End data with <CR><LF>.<CR><LF>
from :wang@liuqang.cn
to:
postmaster@liuqang.com.cn
data: hi,test
This is test mail,you don't replay it.
.
250 Ok: queued as BEDD893960
quit
221 Bye
可以成功发送
以下是在远端telnet mail.liuqang.cn 25时ldap 的调试信息
@(#) $OpenLDAP: slapd 2.2.13 (Oct 18 2005 10:08:34) $
buildcentos@x8664-build:/home/buildcentos/rpmbuild/BUILD/openldap-2.2.13/openldap-2.2.13/build-servers/servers/slapd
bdb_initialize: Sleepycat Software: Berkeley DB 4.2.52: (December 3, 2003)
bdb_initialize: Sleepycat Software: Berkeley DB 4.2.52: (December 3, 2003)
bdb_db_init: Initializing BDB database
slapd starting
conn=0 fd=10 ACCEPT from IP=127.0.0.1:1509 (IP=0.0.0.0:389)
conn=0 op=0 BIND dn="mail=root@liuqang.cn,o=extmailManager,dc=liuqang,dc=cn" method=128
conn=0 op=0 BIND dn="mail=root@liuqang.cn,o=extmailManager,dc=liuqang,dc=cn" mech=SIMPLE ssf=0
conn=0 op=0 RESULT tag=97 err=0 text=
conn=0 op=1 SRCH base="o=extmailAccount,dc=liuqang,dc=cn" scope=2 deref=0 filter="(|(&(mail=wang@liuqang.cn)(active=1))(mail=wang@))"
conn=0 op=1 SRCH attr=dn
<= bdb_equality_candidates: (active) index_param failed (18)
conn=0 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
conn=0 op=2 BIND anonymous mech=implicit ssf=0
conn=0 op=2 BIND dn="mail=wang@liuqang.cn,virtualDomain=liuqang.cn,o=extmailAccount,dc=liuqang,dc=cn" method=128
conn=0 op=2 BIND dn="mail=wang@liuqang.cn,virtualDomain=liuqang.cn,o=extmailAccount,dc=liuqang,dc=cn" mech=SIMPLE ssf=0
conn=0 op=2 RESULT tag=97 err=0 text=
conn=1 fd=13 ACCEPT from IP=127.0.0.1:1510 (IP=0.0.0.0:389)
conn=1 op=0 SRCH base="o=extmailAlias,dc=liuqang,dc=cn" scope=2 deref=0 filter="(&(&(objectClass=extmailAlias)(mailLocalAddress=postmaster@liuqang.com.cn))(active=1))"
conn=1 op=0 SRCH attr=mail
conn=1 op=0 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=1 op=1 SRCH base="o=extmailAlias,dc=liuqang,dc=cn" scope=2 deref=0 filter="(&(&(objectClass=extmailAlias)(mailLocalAddress=@liuqang.com.cn))(active=1))"
conn=1 op=1 SRCH attr=mail
conn=1 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=2 fd=14 ACCEPT from IP=127.0.0.1:1511 (IP=0.0.0.0:389)
conn=2 op=0 SRCH base="o=extmailAlias,dc=liuqang,dc=cn" scope=2 deref=0 filter="(&(&(objectClass=extmailAlias)(mailLocalAddress=postmaster@liuqang.com.cn))(active=1))"
conn=2 op=0 SRCH attr=mail
conn=2 op=0 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=2 op=1 SRCH base="o=extmailAlias,dc=liuqang,dc=cn" scope=2 deref=0 filter="(&(&(objectClass=extmailAlias)(mailLocalAddress=@liuqang.com.cn))(active=1))"
conn=2 op=1 SRCH attr=mail
conn=2 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=3 fd=15 ACCEPT from IP=127.0.0.1:1515 (IP=0.0.0.0:389)
conn=3 op=0 SRCH base="o=extmailAlias,dc=liuqang,dc=cn" scope=2 deref=0 filter="(&(&(objectClass=extmailAlias)(mailLocalAddress=liuqang.cn))(active=1))"
conn=3 op=0 SRCH attr=mail
conn=3 op=0 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=3 op=1 SRCH base="o=extmailAccount,dc=liuqang,dc=cn" scope=2 deref=0 filter="(&(objectClass=extmailDomain)(virtualDomain=liuqang.cn))"
conn=3 op=1 SRCH attr=virtualDomain
<= bdb_equality_candidates: (virtualDomain) index_param failed (18)
conn=3 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
conn=3 op=2 SRCH base="o=extmailAlias,dc=liuqang,dc=cn" scope=2 deref=0 filter="(&(&(objectClass=extmailAlias)(mailLocalAddress=liuqang.com.cn))(active=1))"
conn=3 op=2 SRCH attr=mail
conn=3 op=2 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=3 op=3 SRCH base="o=extmailAccount,dc=liuqang,dc=cn" scope=2 deref=0 filter="(&(objectClass=extmailDomain)(virtualDomain=liuqang.com.cn))"
conn=3 op=3 SRCH attr=virtualDomain
<= bdb_equality_candidates: (virtualDomain) index_param failed (18)
conn=3 op=3 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=4 fd=16 ACCEPT from IP=127.0.0.1:1516 (IP=0.0.0.0:389)
conn=4 op=0 SRCH base="o=extmailAlias,dc=liuqang,dc=cn" scope=2 deref=0 filter="(&(&(objectClass=extmailAlias)(mailLocalAddress=postmaster@liuqang.com.cn))(active=1))"
conn=4 op=0 SRCH attr=mail
conn=4 op=0 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=4 op=1 SRCH base="o=extmailAlias,dc=liuqang,dc=cn" scope=2 deref=0 filter="(&(&(objectClass=extmailAlias)(mailLocalAddress=@liuqang.com.cn))(active=1))"
conn=4 op=1 SRCH attr=mail
conn=4 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=2 op=2 SRCH base="o=extmailAlias,dc=liuqang,dc=cn" scope=2 deref=0 filter="(&(&(objectClass=extmailAlias)(mailLocalAddress=postmaster@liuqang.com.cn))(active=1))"
conn=2 op=2 SRCH attr=mail
conn=2 op=2 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=2 op=3 SRCH base="o=extmailAlias,dc=liuqang,dc=cn" scope=2 deref=0 filter="(&(&(objectClass=extmailAlias)(mailLocalAddress=@liuqang.com.cn))(active=1))"
conn=2 op=3 SRCH attr=mail
conn=2 op=3 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=3 op=4 SRCH base="o=extmailAlias,dc=liuqang,dc=cn" scope=2 deref=0 filter="(&(&(objectClass=extmailAlias)(mailLocalAddress=liuqang.com.cn))(active=1))"
conn=3 op=4 SRCH attr=mail
conn=3 op=4 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=3 op=5 SRCH base="o=extmailAccount,dc=liuqang,dc=cn" scope=2 deref=0 filter="(&(objectClass=extmailDomain)(virtualDomain=liuqang.com.cn))"
conn=3 op=5 SRCH attr=virtualDomain
<= bdb_equality_candidates: (virtualDomain) index_param failed (18)
conn=3 op=5 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=0 fd=10 closed
conn=1 fd=13 closed
conn=2 fd=14 closed
conn=3 fd=15 closed
conn=4 fd=16 closed
slapd shutdown: waiting for 0 threads to terminate
slapd stopped.
以下是在远端telnet mail.liuqang.cn 25时的maillog:
Apr 8 14:52:50 mail postfix/smtpd[9231]: connect from unknown[192.168.119.2]
Apr 8 14:54:13 mail postfix/smtpd[9231]: 57B7A93960: client=unknown[192.168.119.2], sasl_method=login, sasl_username=wang
Apr 8 14:54:41 mail postfix/cleanup[9233]: 57B7A93960: message-id=<
20060408065402.57B7A93960@mail.liuqang.cn>
Apr 8 14:54:41 mail postfix/qmgr[8074]: 57B7A93960: from=<
wang@liuqang.cn>, size=360, nrcpt=1 (queue active)
Apr 8 14:54:47 mail postfix/smtpd[9231]: disconnect from unknown[192.168.119.2]
Apr 8 14:54:51 mail postfix/smtpd[9237]: starting TLS engine
Apr 8 14:54:51 mail postfix/smtpd[9237]: unable to get private key from '/etc/postfix/newreq.pem'
Apr 8 14:54:51 mail postfix/smtpd[9237]: 9237:error:0906406D

EM routines

EF_CALLBACK:problems getting password:pem_lib.c:105:
Apr 8 14:54:51 mail postfix/smtpd[9237]: 9237:error:0906A068

EM routines

EM_do_header:bad password read:pem_lib.c:399:
Apr 8 14:54:51 mail postfix/smtpd[9237]: 9237:error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:PEM lib:ssl_rsa.c:707:
Apr 8 14:54:51 mail postfix/smtpd[9237]: TLS engine: cannot load RSA cert/key data
Apr 8 14:54:51 mail postfix/smtpd[9237]: connect from localhost.localdomain[127.0.0.1]
Apr 8 14:54:53 mail postfix/smtpd[9237]: D6AC693961: client=localhost.localdomain[127.0.0.1]
Apr 8 14:54:53 mail postfix/cleanup[9233]: D6AC693961: message-id=<
20060408065402.57B7A93960@mail.liuqang.cn>
Apr 8 14:54:53 mail postfix/smtpd[9237]: disconnect from localhost.localdomain[127.0.0.1]
Apr 8 14:54:53 mail postfix/qmgr[8074]: D6AC693961: from=<
wang@liuqang.cn>, size=792, nrcpt=1 (queue active)
Apr 8 14:54:53 mail amavis[2132]: (02132-03) Passed CLEAN, LOCAL [192.168.119.2] [192.168.119.2] <
wang@liuqang.cn> -> <
postmaster@liuqang.com.cn>, Message-ID: <
20060408065402.57B7A93960@mail.liuqang.cn>, mail_id: ngtNXx5qfNbs, Hits: 0.55, 11380 ms
Apr 8 14:54:53 mail postfix/smtp[9234]: 57B7A93960: to=<
postmaster@liuqang.com.cn>, relay=localhost[127.0.0.1], delay=51, status=sent (250 2.6.0 Ok, id=02132-03, from MTA([127.0.0.1]:10025): 250 Ok: queued as D6AC693961)
Apr 8 14:54:53 mail postfix/qmgr[8074]: 57B7A93960: removed
Apr 8 14:54:53 mail postfix/smtp[9238]: D6AC693961: to=<
postmaster@liuqang.com.cn>, relay=mail.liuqang.com.cn[201.93.134.58], delay=2, status=sent (250 ok I will take care of that right away sir 1144479517 qp 19146)
Apr 8 14:54:53 mail postfix/qmgr[8074]: D6AC693961: removed
以下是远端用Outlook收发邮件的信息:
Apr 8 15:01:49 mail postfix/smtpd[9240]: connect from unknown[192.168.119.2]
Apr 8 15:01:49 mail postfix/smtpd[9240]: NOQUEUE: reject: RCPT from unknown[192.168.119.2]: 554 <
postmaster@liuqang.com.cn>: Relay access denied; from=<
wang@liuqang.cn> to=<
postmaster@liuqang.com.cn> proto=ESMTP helo=<netstudio>
Apr 8 15:01:49 mail postfix/smtpd[9240]: disconnect from unknown[192.168.119.2]
Apr 8 15:01:49 mail pop3d: Connection, ip=[::ffff:192.168.119.2]
Apr 8 15:01:49 mail pop3d: LOGIN: ip=[::ffff:192.168.119.2], command=USER
Apr 8 15:01:49 mail pop3d: LOGIN: ip=[::ffff:192.168.119.2], command=PASS
Apr 8 15:01:49 mail pop3d: LOGIN: ip=[::ffff:192.168.119.2], username=wang
Apr 8 15:01:49 mail pop3d: LOGIN: ip=[::ffff:192.168.119.2], password=299480
Apr 8 15:01:49 mail authdaemond: received auth request, service=pop3, authtype=login
Apr 8 15:01:49 mail authdaemond: authldap: trying this module
Apr 8 15:01:49 mail authdaemond: using search filter: (&(active=1)(mail=wang@liuqang.cn))
Apr 8 15:01:49 mail authdaemond: one entry returned, DN: mail=wang@liuqang.cn,virtualDomain=liuqang.cn,o=extmailAccount,dc=liuqang,dc=cn
Apr 8 15:01:49 mail authdaemond: raw ldap entry returned:
Apr 8 15:01:49 mail authdaemond: | mail:
wang@liuqang.cn
Apr 8 15:01:49 mail authdaemond: | cn: wang
Apr 8 15:01:49 mail authdaemond: | mailQuota: 10485760S
Apr 8 15:01:49 mail authdaemond: | userPassword: {CRYPT}J2i4ZoIvxBjLQ
Apr 8 15:01:49 mail authdaemond: | homeDirectory: liuqang.cn/wang
Apr 8 15:01:49 mail authdaemond: authldaplib: sysusername=<null>, sysuserid=500, sysgroupid=500, homedir=/home/vmail/domains/liuqang.cn/wang, address=wang, fullname=wang, maildir=<null>, quota=10485760S, options=<null>
Apr 8 15:01:49 mail authdaemond: authldaplib: clearpasswd=<null>, passwd={CRYPT}J2i4ZoIvxBjLQ
Apr 8 15:01:49 mail authdaemond: rebinding with DN 'mail=wang@liuqang.cn,virtualDomain=liuqang.cn,o=extmailAccount,dc=liuqang,dc=cn' to validate password
Apr 8 15:01:49 mail authdaemond: authentication bind successful
Apr 8 15:01:49 mail authdaemond: Authenticated: sysusername=<null>, sysuserid=500, sysgroupid=500, homedir=/home/vmail/domains/liuqang.cn/wang, address=wang, fullname=wang, maildir=<null>, quota=10485760S, options=<null>
Apr 8 15:01:49 mail authdaemond: Authenticated: clearpasswd=299480, passwd={CRYPT}J2i4ZoIvxBjLQ
Apr 8 15:01:49 mail pop3d: LOGIN, user=wang, ip=[::ffff:192.168.119.2]
Apr 8 15:01:49 mail pop3d: LOGOUT, user=wang, ip=[::ffff:192.168.119.2], top=0, retr=0, rcvd=12, sent=39, time=0
Apr 8 15:02:36 mail postfix/smtpd[9240]: connect from unknown[192.168.119.2](此处为发信时的連接)
Apr 8 15:02:36 mail postfix/smtpd[9240]: NOQUEUE: reject: RCPT from unknown[192.168.119.2]: 554 <
postmaster@liuqang.com.cn>: Relay access denied; from=<
wang@liuqang.cn> to=<
postmaster@liuqang.com.cn> proto=ESMTP helo=<netstudio>
Apr 8 15:02:36 mail postfix/smtpd[9240]: disconnect from unknown[192.168.119.2]
以下是用outlook收信时的ldap 调试信息,发信时没有出现任何ldap调试信息
slapd starting
conn=0 fd=10 ACCEPT from IP=127.0.0.1:2231 (IP=0.0.0.0:389)
conn=0 op=0 BIND dn="mail=root@liuqang.cn,o=extmailManager,dc=liuqang,dc=cn" method=128
conn=0 op=0 BIND dn="mail=root@liuqang.cn,o=extmailManager,dc=liuqang,dc=cn" mech=SIMPLE ssf=0
conn=0 op=0 RESULT tag=97 err=0 text=
conn=0 op=1 SRCH base="o=extmailAccount,dc=liuqang,dc=cn" scope=2 deref=0 filter="(&(active=1)(mail=wang@liuqang.cn))"
conn=0 op=1 SRCH attr=homeDirectory cn clearPassword userPassword mail mailquota
<= bdb_equality_candidates: (active) index_param failed (18)
conn=1 fd=13 ACCEPT from IP=127.0.0.1:2232 (IP=0.0.0.0:389)
conn=0 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
conn=1 op=0 BIND dn="mail=wang@liuqang.cn,virtualDomain=liuqang.cn,o=extmailAccount,dc=liuqang,dc=cn" method=128
conn=1 op=0 BIND dn="mail=wang@liuqang.cn,virtualDomain=liuqang.cn,o=extmailAccount,dc=liuqang,dc=cn" mech=SIMPLE ssf=0
conn=1 op=0 RESULT tag=97 err=0 text=
请你们帮我看看,谢谢