Java Mail not sending to Hotmail/Yahoo accounts

Posted on 2011-10-12
Medium Priority
Last Modified: 2012-05-12
We have an email program which sends out emails correctly to internal addresses but when trying to send it to Hotmail, Yahoo account it gives us the following error

Relaying denied. IP name lookup failed

Any ideas ? We can send to these addresses from Outlook
Question by:abuyusuf35

Expert Comment

by:Christopher Raymond Mendoza
ID: 36955609
Have you checked the SMTP settings? Are they similar to Outlook's?

Author Comment

ID: 36955651
Is there something specific I need ?
LVL 47

Accepted Solution

for_yan earned 2000 total points
ID: 36955735
Maybe it has to do with some spam filtering on their side - they requiresometimes originating email to be reagistered.
How about sending to gmail.com - ?

Expert Comment

by:Christopher Raymond Mendoza
ID: 36955749
By my experience, the error message - 'Relaying denied. IP name lookup failed' - is sent back by the SMTP server.

This may be due to a number of factors. The most common we have seen are:
wrong credentials resulting to failed authentication

Your Outlook seems to be configured right. If not, the same error would occur.

Can you modify or at least view the SMTP settings (for outgoing mails) of Java Mail? And also check on the settings being used for Outlook?

Expert Comment

ID: 36958699
Looks like your SMTP Server do not allow  relaying to other domains. Only internal mails it will distribute.
You need to get a SMTP server  which supports relaying.Your ISP should be usually providing a SMTP server which supports relaying. Please check with your ISP or you need find an SMTP servers which support relaying.

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses
Course of the Month16 days, 11 hours left to enroll

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question