最近移機...把 Server 放到更內部去...結果程式內管寄送的mail出現這樣的問題....
javax.mail.sendfailedexception: Sending failed;
nested exception is:
javax.mail.sendfailedexception: Invalid Addresses;
nested exception is:
javax.mail.sendfailedexception: 554 relay access denied
於是找了以下相關的新聞
http://www.webmasterworld.com/forum23/2236.htm
http://www.javaworld.com.tw/jute/post/view?bid=7&id=7411&sty=1&tpg=9&age=0
總之就是我mail的"規定信任的用戶端"有問題...
因為我是用postfix...所以修改這個檔案...
/etc/postfix/main.cf
裡面的...
mynetworks = 127.0.0.0/8, 192.168.1.0/24
加入我移機Server所在的網域....
可以參考這個...
http://linux.vbird.org/linux_server/0380mail.php#postfix
- Aug 27 Wed 2008 20:36
-
javax.mail.sendfailedexception: 554 relay access denied
請先 登入 以發表留言。