Solved

javax.mail.SendFailedException: 554 Relay rejected for policy reasons

Posted on 2011-09-13
5
1,519 Views
Last Modified: 2012-05-12
I'm getting the following error when trying to send emails externally from within my organization.  Any ideas what might be causing this?

javax.mail.SendFailedException: 554 Relay rejected for policy reasons

Thanks in advance!
0
Comment
Question by:nightshadz
5 Comments
 
LVL 19

Assisted Solution

by:ramazanyich
ramazanyich earned 100 total points
Comment Utility
Depending on your from and To headers mail server can reject your mail. For example if domain name is not in the range of accepted domains on server
0
 
LVL 13

Assisted Solution

by:George K.
George K. earned 100 total points
Comment Utility
Seems like email server configuration problem in order to accept accept relay.

Email server should be configured - make a rule - to allow relay fro specific server.
0
 
LVL 26

Accepted Solution

by:
mrcoffee365 earned 300 total points
Comment Utility
Lots of conditions cause that response.  Basically, the email server you're using is not allowing you to send email.   I assume you're using the corporate mail server?  You should check that it allows people to send mail out .  Relay should be turned off, of course, and presumably you're accessing it correctly so that you're not sending relay email.  If you are doing something to send outgoing email over port 25, sometimes that is turned off by default.  I have heard that ISPs in China frequently don't have SMTP servers, which for some reason results in the 554 error (it should give another error, but mail servers are notorious for being inconsistent with standards).

I have to say that usually this is not a problem if you are using a legitimate user on the mail server (with password) in order to send email.

If you are in a situation where you believe you need to send email using relay, then your corporate server can be configured to allow relay from the specific server from which you're trying to send email.

If you don't understand any of this, post your code and we'll try to help you.
0
 

Author Comment

by:nightshadz
Comment Utility
It's part of an HR application that is set up to send automated emails externally to candidates that are applying for a job.  I talked to another department and the mail server needs to be set up to allow messages to go out to the internet.  Thanks for the responses!
0
 
LVL 26

Expert Comment

by:mrcoffee365
Comment Utility
Great -- good luck!
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
strCount chalenge 3 50
word0 challenge 3 56
Java passing arguments (type error) 2 33
Checkbox and ListView in Android Layout 4 36
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

744 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now