Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

554 Relay rejected by policy reason

843830Sep 9 2004 — edited Sep 9 2004
I searched the forum and found the following post. I have the exact same problem now.

----------------------------------------------------------
Hi, I'm using javax.mail.event.TransportListener for detecting if emails are delivered to the recipient or not.
The mechanism technically works, but i have a problem.
We have an intranet SMTP server and an extranet SMTP server.
When i use the intranet server, any e-address (even if the recipient is xxx@yyy.zz) is considered valid and i always get the event messageDelivered.
I think it's because it just delivers the email to the extra SMTPserver.
When i use the extranet server, any e-address with my internal domain (e.g. xxx@mydomain.it) is valid , any e-address with no dots in the domain (e.g. xxx@yyzz) is valid , but any e-address with at least one dot and not with my domain (e.g. xxx@yy.zz) in the domain is not valid (i get javax.mail.SendFailedException: 554 Relay rejected for policy reasons.).
I know what relay means, but i don't understand why domain with no dots are considered valid (i'd like to be notified when they are not existing addresses).
Does it all depend on my SMTPservers' policy or can i do something for getting an invalid address when the address is invalid, such for example xxx@yyzz?

Maybe the only way for having a notification is by means of the DELIVERY FAILURE email i receive, after a while, from the router server?

Thanks for help
Fulvia
-----------------------------------------------------------------------

So is there any solution for that without touching SMTP server configuration. Or any walkaround ways to successfully send email?
Any ideas and suggestions will be greatly appreciated.
The original post link is :
http://forum.java.sun.com/thread.jsp?forum=43&thread=403000
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 7 2004
Added on Sep 9 2004
2 comments
1,176 views