Solved

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

Posted on 2011-09-13
5
1,634 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
ID: 36534163
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
ID: 36534193
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 27

Accepted Solution

by:
mrcoffee365 earned 300 total points
ID: 36534198
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
ID: 36536068
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 27

Expert Comment

by:mrcoffee365
ID: 36536861
Great -- good luck!
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
advertisement module in core php 4 159
servlet  URL Rewriting 1 36
reverse digits of a number using for loop 5 40
hibernate example using maven 12 41
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
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…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

813 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

11 Experts available now in Live!

Get 1:1 Help Now