- 論壇徽章:
- 0
|
多謝樓上回復(fù)
現(xiàn)在換用outlook explore測試
果然需要通過選中需要身份驗證才能發(fā)件
看了一下日志和error信息。
不選身份驗證如下:
outlook error信息是- Helo command rejected: need fully-qualified hostname
復(fù)制代碼 postfix日志是:- Sep 7 10:09:03 ****** postfix/smtpd[4972]: connect from unknown[*.*.*.*]
- Sep 7 10:09:03 ****** postfix/trivial-rewrite[4975]: warning: do not list domain test.com in BOTH mydestination and virtual_mailbox_domains
- Sep 7 10:09:03 ****** postfix/smtpd[4972]: NOQUEUE: reject: RCPT from unknown[*.*.*.*]: 504 5.5.2 <PC200908251556>: Helo command rejected: need fully-qualified hostname; from=<test@test.com> to=<minmig@gmail.com> proto=SMTP helo=<PC200908251556>
- Sep 7 10:09:03 ****** postfix/smtpd[4972]: NOQUEUE: reject: RCPT from unknown[*.*.*.*]: 504 5.5.2 <PC200908251556>: Helo command rejected: need fully-qualified hostname; from=<test@test.com> to=<minmig@gmail.com> proto=SMTP helo=<PC200908251556>
- Sep 7 10:09:03 ****** postfix/smtpd[4972]: disconnect from unknown[*.*.*.*]
復(fù)制代碼 根據(jù)以上日志感覺是 沒有點認(rèn)證時,沒有獲取fqdn,從而在無法再mysql數(shù)據(jù)庫找到相應(yīng)記錄所以檢測不過。而不是因為ESMTP認(rèn)證不過造成的。
自己感覺,希望樓上指正。
下面是勾選了smtp認(rèn)證的日志- Sep 7 10:27:34 ****** postfix/smtpd[5024]: connect from unknown[*.*.*.*]
- Sep 7 10:27:34 ****** authdaemond: received auth request, service=smtp, authtype=login
- Sep 7 10:27:34 ****** authdaemond: authmysql: trying this module
- Sep 7 10:27:34 ****** authdaemond: authmysqllib: connected. Versions: header 50045, client 50045, server 50045
- Sep 7 10:27:34 ****** authdaemond: SQL query: SELECT username, password, "", '1000', '1000', concat('/home/domains/',maildir), concat('/home/domains/',maildir), "", name, "" FROM mailbox WHERE username = 'test@test.com'
- Sep 7 10:27:34 ****** authdaemond: password matches successfully
- Sep 7 10:27:34 ****** authdaemond: authmysql: sysusername=<null>, sysuserid=1000, sysgroupid=1000, homedir=/home/domains/test.com/test/Maildir/, address=test@test.com, fullname=test, maildir=/home/domains/test.com/test/Maildir/, quota=<null>, options=<null>
- Sep 7 10:27:34 ****** authdaemond: authmysql: clearpasswd=<null>, passwd=$1$Xb14kEH9$lpc6pMVcskOs0ZEGri/We0
- Sep 7 10:27:34 ****** authdaemond: Authenticated: sysusername=<null>, sysuserid=1000, sysgroupid=1000, homedir=/home/domains/test.com/test/Maildir/, address=test@test.com, fullname=test, maildir=/home/domains/test.com/test/Maildir/, quota=<null>, options=<null>
- Sep 7 10:27:34 ****** authdaemond: Authenticated: clearpasswd=test, passwd=********
- Sep 7 10:27:34 ****** postfix/trivial-rewrite[5028]: warning: do not list domain test.com in BOTH mydestination and virtual_mailbox_domains
- Sep 7 10:27:34 ****** postfix/smtpd[5024]: 1B8CCF270034: client=unknown[*.*.*.*], sasl_method=LOGIN, sasl_username=test@test.com
- Sep 7 10:27:34 ****** postfix/cleanup[5031]: 1B8CCF270034: message-id=<5D4AEE77B429461FAE6BBE79F869C90E@PC200908251556>
- Sep 7 10:27:34 ****** postfix/qmgr[6055]: 1B8CCF270034: from=<test@test.com>, size=1401, nrcpt=1 (queue active)
- Sep 7 10:27:34 ****** postfix/smtpd[5024]: 2E4CCF270035: client=unknown[*.*.*.*], sasl_method=LOGIN, sasl_username=test@test.com
- Sep 7 10:27:34 ****** postfix/cleanup[5031]: 2E4CCF270035: message-id=<0B8F6BBFDBA048B2870B6BF359D2E35B@PC200908251556>
- Sep 7 10:27:34 ****** postfix/qmgr[6055]: 2E4CCF270035: from=<test@test.com>, size=2179, nrcpt=1 (queue active)
- Sep 7 10:27:34 ****** postfix/smtpd[5024]: 3970FF270036: client=unknown[*.*.*.*], sasl_method=LOGIN, sasl_username=test@test.com
- Sep 7 10:27:34 ****** postfix/cleanup[5031]: 3970FF270036: message-id=<562C77B577B04EA484DE796B76BDFA52@PC200908251556>
- Sep 7 10:27:34 ****** postfix/qmgr[6055]: 3970FF270036: from=<test@test.com>, size=2179, nrcpt=1 (queue active)
- Sep 7 10:27:34 ****** postfix/smtpd[5024]: disconnect from unknown[*.*.*.*]
- Sep 7 10:27:36 ****** postfix/smtp[5035]: 3970FF270036: to=<minmig@gmail.com>, relay=gmail-smtp-in.l.google.com[209.85.222.15]:25, delay=2.8, delays=0.04/0/1.6/1.1, dsn=2.0.0, status=sent (250 2.0.0 OK 1252290456 15si14450451pzk.92)
- Sep 7 10:27:36 ****** postfix/qmgr[6055]: 3970FF270036: removed
- Sep 7 10:27:37 ****** postfix/smtp[5034]: 2E4CCF270035: to=<minmig@gmail.com>, relay=gmail-smtp-in.l.google.com[209.85.222.15]:25, delay=3.7, delays=0.03/0/2.6/1, dsn=2.0.0, status=sent (250 2.0.0 OK 1252290457 15si14651865pzk.58)
- Sep 7 10:27:37 ****** postfix/qmgr[6055]: 2E4CCF270035: removed
- Sep 7 10:27:37 ****** postfix/smtp[5033]: 1B8CCF270034: to=<minmig@gmail.com>, relay=gmail-smtp-in.l.google.com[209.85.222.15]:25, delay=3.8, delays=0.08/0/1.9/1.8, dsn=2.0.0, status=sent (250 2.0.0 OK 1252290457 15si14651774pzk.58)
- Sep 7 10:27:37 ****** postfix/qmgr[6055]: 1B8CCF270034: removed
復(fù)制代碼 弄了那么就對postfix的ESMTP認(rèn)真模塊的流程還是有點模糊
感覺是 outlook --> smtpd --> sasl2 --> authlib --> mysql 。不知道對不對,Esmtp在哪里來獲得支持,是smtpd還是sasl2還是authlib。感覺是在sasl上面做的,但是又不知道在哪里設(shè)置。
還有一點是當(dāng)初在編譯postfix的時候就直接支持mysql ,為什么還需要用通過authlib來連接mysql呢?
希望大;蚺龅竭^相關(guān)問題的朋友幫忙。
[ 本帖最后由 minmig 于 2009-9-7 11:03 編輯 ] |
|