Breaking News
Home / Java / Java Issues / Emailer Error : Relaying Denied for your location

Emailer Error : Relaying Denied for your location

Issue

DEBUG SMTP Found extension “PIPELINING”, arg “”DEBUG SMTP Found extension “8BITMIME”, arg “”
DEBUG SMTP: use8bit false
DEBUG SMTP SENT: MAIL FROM:<liona@gmail.com>
DEBUG SMTP RCVD: 250 ok

DEBUG SMTP SENT: RCPT TO:<manohra@gmail.com>
DEBUG SMTP RCVD: 553 sorry, relaying denied from your location [50.131.5.147] (#5.7.1)
<!>Invalid Addresses
manohra@gmail.com 
DEBUG SMTPTransport: Sending failed because of invalid destination addresses
DEBUG SMTP SENT: RSET
DEBUG SMTP RCVD: 250 flushed

2011-12-03 00:45:55,556[main]ERROR EmailerTest -Failed to send Email : Invalid Addresses;
  nested exception is:
     javax.mail.SendFailedException: 553 sorry, relaying denied from your location [50.131.5.147] (#5.7.1)
 – javax.mail.SendFailedException: Invalid Addresses;
  nested exception is:
     javax.mail.SendFailedException: 553 sorry, relaying denied from your location [50.131.5.147] (#5.7.1)
 : Invalid Addresses;
  nested exception is:
     javax.mail.SendFailedException: 553 sorry, relaying denied from your location [50.131.5.147] (#5.7.1)
 
2011-12-03 00:45:55,559[main]ERROR EmailerTest -Failed to send Email : Invalid Addresses;
  nested exception is:
     javax.mail.SendFailedException: 553 sorry, relaying denied from your location [50.131.5.147] (#5.7.1)
 
javax.mail.SendFailedException: Invalid Addresses;
  nested exception is:
     javax.mail.SendFailedException: 553 sorry, relaying denied from your location [50.131.5.147] (#5.7.1)

     at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:804)
     at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:320)
     at com.infuze.service.test.EmailerTest.sendMailViaGodaddy(EmailerTest.java:46)
     at com.infuze.service.test.EmailerTest.main(EmailerTest.java:23)

Answer

Please check your SMTP server, it is not allowing email relay for location, please check with your STMP Service provider. Esp. in the above example a wrong smtp host was used for Godaddy so changing to correct fixed the issue.

[pb_builder]

Check Also

Data truncation: Data too long for column – JDBC

Issue Caused by: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column ‘columname‘ at row 1     …

Advertisment ad adsense adlogger