• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 35917
  • Last Modified:

550 RELAY NOT PERMITTED when sending mail to external recipients via JAVAMAIL

I read here about the email problem some people are having with getting 550 RELAY NOT PERMITTED.

I am having the same problem when using JavaMail to send emails through my internet provider. From the info I read on the subject, I didn't see any programatic resolution or configuration I can use to resolve this issue.

The following are my test cases for this problem -

When executing the tests from JAVAMAIL:

From user@patmedia.net
To user@patmedia.net

SUCCESSFUL

From user@patmedia.net
To user@hotmail.com

550 RELAY NOT PERMITTED

When executing the same test from Outloook Express:

From user@patmedia.net
To user@hotmail.com

550 RELAY NOT PERMITTED

When executing the same test from patmedia.net's email website:

From user@patmedia.net
To user@hotmail.com

SUCCESSFUL

I still don't understand from the comments before me why this is occurring. Why can I email from patmedia's site, but not from outlook express or from Javamail to external email accounts? How do I resolve this - both through Javamail and Outlook Express?

Someone please throw me a bone here.... This is most annoying!

Thanks for your support,
- Mike
0
wrath481
Asked:
wrath481
  • 2
  • 2
2 Solutions
 
jlevieCommented:
Your service provider might require authentication for mail sent from an external client. Have you checked to see if that's the case?
0
 
wrath481Author Commented:
I forgot to mention the following which may contribute to the issue -

I am using PATMEDIA's mail server to send mail. However, my ISP is with Roadrunner. I recently moved and forgot that this is the case. I am still using a PATMEDIA email address and host (the account is still active), but my ISP is not with PATMEDIA anymore. I have a feeling that this is part of the issue. How do I handle this situation? When I go to authenticate what user name and password should I use? Patmedia's or roadrunners?
0
 
jlevieCommented:
That is almost certainly the issue. Many ISP's will only relay mail if the source IP is one of their customers. You'll need to contact PATMEDIA and see if they offer SMTP AUTH, which would allow relay from an external IP.
0
 
wrath481Author Commented:
Thanks... I will check.
0

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now