Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Mail, diff. domain  RSS feed

 
Sunil K Bansal
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,
I am using java mail Api to send mails.
I m using my proxy server's settings for that.
I can send mails.
but let us say my domain name is abcd.com
i can send mails to only where email id ends with abcd.com
but if i change it to anyother like my hotmail id the following exception is thrown
Sending failed;
nested exception is:
javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
javax.mail.SendFailedException: 550 5.7.1 <sunilkbansal@hotmail.com>... we do not relay <info@abcd.com>
but could be the reason and what is the solution.
Thanks in Advance..
Sunil Bansal
 
Nicholas Turner
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well I'm not an expert nor do I think this is the answer but...
I found that if you send java mail for instance

blabla@myrepairshop.com is really blabla@myrepairshop.net it wont work but when i sent it to the .net it worked. I believe you have to do something for naming resolutions. Sorry I couldnt be more help
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That means that that SMTP server has turned "relaying" off -- meaning it will only allow you to send mail from the domains that the SMTP server allows. This is usually to prevent spammers from using the server to relay their e-mails at someone else's cost.
Someone more familiar with SMTP could probably elaborate further.
hth,
bear
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!