- 论坛徽章:
- 0
|
多谢楼上回复
现在换用outlook explore测试
果然需要通过选中需要身份验证才能发件
看了一下日志和error信息。
不选身份验证如下:
outlook error信息是- Helo command rejected: need fully-qualified hostname
复制代码 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[*.*.*.*]
复制代码 根据以上日志感觉是 没有点认证时,没有获取fqdn,从而在无法再mysql数据库找到相应记录所以检测不过。而不是因为ESMTP认证不过造成的。
自己感觉,希望楼上指正。
下面是勾选了smtp认证的日志- 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
复制代码 弄了那么就对postfix的ESMTP认真模块的流程还是有点模糊
感觉是 outlook --> smtpd --> sasl2 --> authlib --> mysql 。不知道对不对,Esmtp在哪里来获得支持,是smtpd还是sasl2还是authlib。感觉是在sasl上面做的,但是又不知道在哪里设置。
还有一点是当初在编译postfix的时候就直接支持mysql ,为什么还需要用通过authlib来连接mysql呢?
希望大牛或碰到过相关问题的朋友帮忙。
[ 本帖最后由 minmig 于 2009-9-7 11:03 编辑 ] |
|