Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Relay Access denied /fully-qualified hostname  RSS feed

 
Tanveer Hussain Awan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello guys,
I have made an application that sends emails (with attachments) to different users. It works fine when I use an email account (smtp server) from my network but not otherwise.... For example if i use it from my university then uni's smtp server must be used. But when i run it from my job, my uni's server does not work (vice versa).

I get the following exceptions:
**************************************************************************************************************
Thu Feb 05 12:46:40 CET 2004
ERROR MESSAGE: javax.mail.SendFailedException: Sending failed;
nested exception is:
class javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
class javax.mail.SendFailedException: 554 <awan4@start.no>: Recipient address rejected: Relay access denied
at javax.mail.Transport.send0(Transport.java:218)
at javax.mail.Transport.send(Transport.java:80)
at MailUtil.testOutgoingSmtp(Main.java:692)
at EmailConfigDialog.testBtActionPerformed(Main.java:1578)....
*************************************************************************************************************
Thu Feb 05 12:30:58 CET 2004
ERROR MESSAGE: javax.mail.SendFailedException: Sending failed;
nested exception is:
class javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
class javax.mail.SendFailedException: 504 <cube>: Helo command rejected: need fully-qualified hostname
at javax.mail.Transport.send0(Transport.java:218)
at javax.mail.Transport.send(Transport.java:80)
at MailUtil.testOutgoingSmtp(Main.java:692)
at EmailConfigDialog.testBtActionPerformed(Main.java:1578)
***********************************************************************************************************
my hostname is cube. Can someone please help? It is driving me crazy :: .
I am using windows xp
cheers
Awan
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24215
37
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The "relay access denied" error is coming from the server; it's telling you that computers from your work network can't use your University's mail server to send mail -- which is a good thing (cuts down on spam.)
The only solution is that your program has to use a mail server which is appropriate for where the program is installed.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!