2010-12-15 284 views
0

我使用的是Linux服務器來運行我的Tomcat應用程序,它的發送電子郵件,但收到以下錯誤郵件發送錯誤 - SMTPAddressFailedException

通過查看這個日誌我找不到哪兒的問題, 有什麼建議麼???

15/12/2010 06:00:32 [MIS] ERROR [Thread-7] MailSendingThread.sendMail(155) | Could not send mail 
org.springframework.mail.MailSendException: Failed messages: javax.mail.SendFailedException: Invalid Addresses; 
    nested exception is: 
com.sun.mail.smtp.SMTPAddressFailedException: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1) 
; 
    nested exception is: 
com.sun.mail.smtp.SMTPAddressFailedException: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1) 
; message exception details (1) are: 
Failed message 1: 
javax.mail.SendFailedException: Invalid Addresses; 
    nested exception is: 
com.sun.mail.smtp.SMTPAddressFailedException: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1) 
; 
    nested exception is: 
com.sun.mail.smtp.SMTPAddressFailedException: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1) 

at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1294) 
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:635) 
at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:416) 
at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:340) 
at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:336) 
at com.edc.common.service.MailSendingThread.sendMail(MailSendingThread.java:196) 
at com.edc.common.service.MailSendingThread.sendMail(MailSendingThread.java:147) 
at com.edc.common.service.MailSendingThread.run(MailSendingThread.java:126) 
Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1) 
; 
    nested exception is: 
com.sun.mail.smtp.SMTPAddressFailedException: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1) 

at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1145) 
... 7 more 
Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1) 

回答

0

它看起來像你試圖發送電子郵件到一個地址已被電子郵件服務器限制。

2

553是來自服務器的「中繼拒絕錯誤」,即您沒有提供正確的憑據(在這種情況下,它似乎與您的電子郵件地址一樣)。

3

清單

1.檢查哪個主機郵件服務器正在運行。如果本地計算機上,設置主機地址在外部郵件服務器的情況下運行爲0.0.0.0

2.如果,檢查郵件的憑據即用戶電子郵件地址和密碼

1

它看起來像你使用春天框架發送您的郵件。 請同時檢查您已使用mail.smtp.auth屬性激活身份驗證:

<bean id="mailsender" class="org.springframework.mail.javamail.JavaMailSenderImpl" > 
    <property name="javaMailProperties"> 
    <props> 
     <prop key="mail.smtp.auth">true</prop> 
    </props> 
    </property> 
    <property name="host" value="smtp.server.com" /> 
    <property name="username" value="your.smtp.user" /> 
    <property name="password" value="your.smtp.password" /> 
</bean>