歡迎您光臨本站 註冊首頁

JAVA調用sendmail發送失敗,日誌看不懂

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

JAVA調用sendmail發送失敗,日誌看不懂

Aug 10 10:49:30 localhost sendmail: n7A2nUHB014016: ruleset=check_mail, arg1=<127.0.0.1>, relay=localhost.localdomain , reject=553 5.5.4 <127.0.0.1>... Domain name required for sender address 127.0.0.1
Aug 10 10:49:30 localhost sendmail: n7A2nUHB014016: from=<127.0.0.1>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=localhost.localdomain

不知道這四句是什麼意思,我調用本機發送到163,應該是連接上伺服器了,就是不知道為什麼發送失敗。

我用命令發送
mail -s "test" root@163.com

mail -s "test" root@163.com <  test.txt

第二句成功了,第一句失敗了,不知道第一句怎麼加「正文」

[ 本帖最後由 Mylib 於 2009-8-10 10:55 編輯 ]
《解決方案》

Domain name required for sender address 127.0.0.1

這個也是很關鍵的信息
《解決方案》

第二句成功了----去看下你收到郵件的信頭

[火星人 ] JAVA調用sendmail發送失敗,日誌看不懂已經有459次圍觀

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