亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

Chinaunix

標(biāo)題: postfix socket發(fā)送郵件 錯(cuò)誤 [打印本頁(yè)]

作者: j0117    時(shí)間: 2011-10-10 18:00
標(biāo)題: postfix socket發(fā)送郵件 錯(cuò)誤
這是發(fā)送郵件的頁(yè)面輸出
email send start!
waiting...
domain waiting...
Trying to smtp.domain.com:25
220 Welcome to our mail.domain.com ESMTP,Warning: Version not Available!
Connected to relay host smtp.domain.com
> HELO localhost
250 mail.domain.com
> AUTH LOGIN c29vbGx5980=
334 UGFzc3dvcmQ6
> MXFhenhzdzIt=
535 5.7.8 Error: authentication failed: no mechanism available
Error: Remote host returned "535 5.7.8 Error: authentication failed: no mechanism available"
Error: Error occurred while sending HELO command.
Error: Cannot send email to
Disconnected from remote host

MIME-Version: 1.0 Content-Type: multipart/alternative;boundary="=====003_Dragon087524817555_=====" To: myqqmail@qq.com From: mymail@domain.com Subject: =?gb2312?B?aHV6aGlmZWkgc29ja2V0ILei08q8/iCy4srUSFRNTA==?= Date: Mon, 10 Oct 2011 10:31:59 +0200 X-Mailer:By Redhat (PHP/5.3.5) Message-ID: <20111010103159.586873.mymail@domain.com>
------------------------

這是相關(guān)代碼1:
  1.         echo 'domain waiting...<br>';
  2. $smtpserver = "smtp.domain.com";//SMTP服務(wù)器
  3. $smtpserverport =25;//SMTP服務(wù)器端口
  4. $smtpusermail = "mymail@domain.com";//SMTP服務(wù)器的用戶(hù)郵箱
  5. $smtpemailto = "myqqmail@qq.com";//發(fā)送給誰(shuí)
  6. $smtpuser = "mymail";//SMTP服務(wù)器的用戶(hù)帳號(hào)
  7. $smtppass = "******";//SMTP服務(wù)器的用戶(hù)密碼
  8. $mailsubject = 'domain socket 發(fā)郵件 測(cè)試'.$type;//郵件主題
復(fù)制代碼
代碼2:
  1. $smtp = new smtp($smtpserver,$smtpserverport,true,$smtpuser,$smtppass);//這里面的一個(gè)true是表示使用身份驗(yàn)證,否則不使用身份驗(yàn)證.
  2. $smtp->debug = true;//是否顯示發(fā)送的調(diào)試信息
  3. $log=$smtp->sendmail($smtpemailto, $smtpusermail, $mailsubject, $mailbody, $mailtype);
復(fù)制代碼
這是maillog:
Oct 10 16:22:49 localhost postfix/smtpd[1737]: connect from smtp.domain.com[***.***.***.***]
Oct 10 16:22:49 localhost postfix/smtpd[1737]: warning: smtp.domain.com[***.***.***.***]: SASL LOGIN authentication failed: no mechanism available
Oct 10 16:22:49 localhost postfix/smtpd[1737]: disconnect from smtp.domain.com[***.***.***.***]

作者: taojie2000    時(shí)間: 2011-10-10 18:12
回復(fù) 1# j0117


少   SASL 相關(guān)的包吧?  

你仔細(xì)對(duì)照教程 看下
作者: j0117    時(shí)間: 2011-10-11 10:24
回復(fù) 2# taojie2000


    有人說(shuō)是  FQDN沒(méi)設(shè)置好  去掉reject_non_fqdn_hostname

后出現(xiàn)這樣的錯(cuò)誤
由于服務(wù)器拒絕收件人之一,無(wú)法發(fā)送郵件。被拒絕的電子郵件地址是“myqqmail@qq.com”。 主題 'pop3 test', 帳戶(hù): 'mymail@domain.com', 服務(wù)器: 'smtp.domain.com', 協(xié)議: SMTP, 服務(wù)器響應(yīng): '554 5.7.1 <myqqmail@qq.com>: Relay access denied', 端口: 25, 安全(SSL): 否, 服務(wù)器錯(cuò)誤: 554, 錯(cuò)誤號(hào): 0x800CCC79

作者: taojie2000    時(shí)間: 2011-10-11 10:31
回復(fù) 1# j0117


    我不要客戶(hù)端提示的錯(cuò)誤日志  我只看maillog日志
作者: j0117    時(shí)間: 2011-10-11 11:04
本帖最后由 j0117 于 2011-10-11 11:06 編輯

回復(fù) 4# taojie2000


    不好意思:)
這是發(fā)往相同域 domain 的maillog
Oct 11 10:57:23 localhost postfix/smtpd[1586]: connect from mail.domain.com[***.***.***.***]
Oct 11 10:57:23 localhost postfix/smtpd[1586]: 5FE3A8025: client=mail.domain.com[***.***.***.***]
Oct 11 10:57:23 localhost postfix/cleanup[1594]: 5FE3A8025: message-id=<C7BEC209464E42BE904DE3D465DDEA5C@domain2bb8e7d9>
Oct 11 10:57:23 localhost postfix/qmgr[1480]: 5FE3A8025: from=<mymail@domain.com>, size=1413, nrcpt=1 (queue active)
Oct 11 10:57:23 localhost postfix/smtpd[1586]: disconnect from mail.domain.com[***.***.***.***]
Oct 11 10:57:23 localhost postfix/pipe[1596]: 5FE3A8025: to=<mymail2@domain.com>, relay=maildrop, delay=0.12, delays=0.07/0.01/0/0.04, dsn=2.0.0, status=sent (delivered via maildrop service)
Oct 11 10:57:23 localhost postfix/qmgr[1480]: 5FE3A8025: removed

這是發(fā)往QQ的maillog
Oct 11 10:59:54 localhost postfix/smtpd[1602]: connect from mail.domain.com[***.***.***.***]
Oct 11 10:59:54 localhost postfix/smtpd[1602]: NOQUEUE: reject: RCPT from mail.domain.com[***.***.***.***]: 554 5.7.1 <myqqmail@qq.com>: Relay access denied; from=<mymail@domain.com> to=<myqqmail@qq.com> proto=SMTP helo=<domain2bb8e7d9>
Oct 11 10:59:54 localhost postfix/smtpd[1602]: disconnect from mail.domain.com[***.***.***.***]


請(qǐng)高手指教啊
作者: taojie2000    時(shí)間: 2011-10-11 11:13
回復(fù) 5# j0117


    嗯 等私聊




歡迎光臨 Chinaunix (http://www.72891.cn/) Powered by Discuz! X3.2