歡迎您光臨本站 註冊首頁

postfix認證及收信問題

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

postfix認證及收信問題

postfix 發信跟收信的日誌,幫看一下什麼問題,發信能正常,也能收到,收信就出問題了,好像是域名解釋的問題,我用的是動態域名,3322的
主機名是fcitx.3322.org  虛擬域名是kevinadmin.3322.org(用postfixadmin來建立的)。
發信的時候用的是smtp命令的
%telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.3322.org.
Escape character is '^]'.
220 kevinadmin.3322.org ESMTP Mail System
ehlo aaa
250-fcitx.3322.org
250-PIPELINING
250-SIZE 10240000
250-ETRN
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
mail from:test@kevinadmin.3322.org
250 2.1.0 Ok
rcpt to:test@126.com
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
this is a test mail
.
250 2.0.0 Ok: queued as 0C17211436
quit
221 2.0.0 Bye
Connection closed by foreign host.

收信命令:
%telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.3322.org.
Escape character is '^]'.
+OK Hello there.
user test
+OK Password required.
pass test
-ERR Temporary problem, please try again later
Connection closed by foreign host.

這個是authdaemond日誌
Jan 29 21:31:37 kevinadmin authdaemond: authmysql: TEMPFAIL - no more modules will be tried
Jan 29 22:24:58 fcitx pop3d: Connection, ip=
Jan 29 22:25:02 fcitx authdaemond: received auth request, service=pop3, authtype=login
Jan 29 22:25:02 fcitx authdaemond: authmysql: trying this module
Jan 29 22:25:02 fcitx authdaemond: parse_select_clause failed (DEFAULT_DOMAIN not set?)
Jan 29 22:25:02 fcitx authdaemond: authmysql: TEMPFAIL - no more modules will be tried
這裡就出錯了 認證吧  找不到原因


postfix日誌如下:
Jan 29 22:23:38 fcitx postfix/smtpd: connect from localhost.3322.org
Jan 29 22:24:03 fcitx postfix/smtpd: disconnect from localhost.3322.org
Jan 29 22:24:04 fcitx postfix/smtpd: connect from localhost.3322.org
Jan 29 22:24:20 fcitx postfix/smtpd: 0C17211436: client=localhost.3322.org
Jan 29 22:24:24 fcitx postfix/cleanup: 0C17211436: message-id=<20080129142420.0C17211436@fcitx.3322.org>
Jan 29 22:24:24 fcitx postfix/qmgr: 0C17211436: from=<test@kevinadmin.3322.org>, size=360, nrcpt=1 (queue active)
Jan 29 22:24:25 fcitx postfix/smtpd: disconnect from localhost.3322.org
Jan 29 22:24:27 fcitx postfix/smtpd: connect from localhost.3322.org
Jan 29 22:24:27 fcitx postfix/smtpd: 468E71143F: client=localhost.3322.org
Jan 29 22:24:27 fcitx postfix/cleanup: 468E71143F: message-id=<20080129142420.0C17211436@fcitx.3322.org>
Jan 29 22:24:30 fcitx postfix/smtpd: disconnect from localhost.3322.org
Jan 29 22:24:30 fcitx postfix/qmgr: 468E71143F: from=<test@kevinadmin.3322.org>, size=953, nrcpt=1 (queue active)
Jan 29 22:24:30 fcitx amavis: (00735-01) Passed CLEAN, MYNETS LOCAL <test@kevinadmin.3322.org> -> <test@126.com>, Message-ID: <20080129142420.0C17211436@fcitx.3322.org>, mail_id: d8wGKJ1Ho+ub, Hits: -0.155, size: 360, queued_as: 468E71143F, 6355 ms
Jan 29 22:24:30 fcitx postfix/smtp: 0C17211436: to=<test@126.com>, relay=127.0.0.1:10024, delay=18, delays=11/0.09/0.19/6.2, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 468E71143F)
Jan 29 22:24:30 fcitx postfix/qmgr: 0C17211436: removed
Jan 29 22:24:31 fcitx postfix/smtp: 468E71143F: to=<test@126.com>, relay=mx.126.split.netease.com:25, delay=4.1, delays=3.5/0.14/0.21/0.17, dsn=2.0.0, status=sent (250 Mail OK queued as mx9,J8mowLC7bwVGOp9Hb569AQ==.43884S2 1201617478)
Jan 29 22:24:31 fcitx postfix/qmgr: 468E71143F: removed
Jan 29 22:24:31 fcitx postfix/smtpd: connect from mx.126.split.netease.com
Jan 29 22:24:31 fcitx postfix/smtpd: A873B11441: client=mx.126.split.netease.com
Jan 29 22:24:31 fcitx postfix/cleanup: A873B11441: message-id=<479F3A46.022FCF.13686>
Jan 29 22:24:31 fcitx postfix/qmgr: A873B11441: from=<test@126.com>, size=2442, nrcpt=1 (queue active)
Jan 29 22:24:32 fcitx postfix/smtpd: disconnect from mx.126.split.netease.com
Jan 29 22:24:32 fcitx postfix/smtpd: connect from localhost.3322.org
Jan 29 22:24:32 fcitx postfix/smtpd: A039E11443: client=localhost.3322.org
Jan 29 22:24:32 fcitx postfix/cleanup: A039E11443: message-id=<479F3A46.022FCF.13686>
Jan 29 22:24:32 fcitx postfix/smtpd: disconnect from localhost.3322.org
Jan 29 22:24:32 fcitx postfix/qmgr: A039E11443: from=<>, size=3346, nrcpt=1 (queue active)
Jan 29 22:24:32 fcitx amavis: (00736-01) Blocked SPAM, <test@126.com> -> <test@kevinadmin.3322.org>, Message-ID: <479F3A46.022FCF.13686>, mail_id: Jl7oufSivSUZ, Hits: 10.068, size: 2442, 937 ms
Jan 29 22:24:32 fcitx postfix/smtp: A873B11441: to=<test@kevinadmin.3322.org>, relay=127.0.0.1:10024, delay=1.3, delays=0.23/0/0.23/0.83, dsn=2.7.0, status=sent (250 2.7.0 Ok, discarded, id=00736-01 - SPAM)
Jan 29 22:24:32 fcitx postfix/qmgr: A873B11441: removed
Jan 29 22:24:32 fcitx postfix/smtp: A039E11443: to=<postmaster@mydomain.fcitx.3322.org>, orig_to=<postmaster@mydomain>, relay=none, delay=0.13, delays=0.03/0.05/0.05/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=mydomain.fcitx.3322.org type=A: Host not found)
Jan 29 22:24:32 fcitx postfix/qmgr: A039E11443: removed
Jan 29 22:25:02 fcitx pop3d: LOGIN FAILED, user=test, ip=
Jan 29 22:25:02 fcitx pop3d: authentication error: Input/output error




一共三個問題:1.authdaemond認證
              2.pop3認證問題
              3.域名設置問題  

還請賜教,謝謝  :D

[ 本帖最後由 kevinadmin 於 2008-1-29 22:51 編輯 ]
《解決方案》

Jan 29 22:25:02 fcitx authdaemond: parse_select_clause failed (DEFAULT_DOMAIN not set?)


設置一下默認域試一下先……

[火星人 ] postfix認證及收信問題已經有658次圍觀

http://coctec.com/docs/service/show-post-32588.html