Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

javax.mail.SendFailedException

29 views
Skip to first unread message

Chin Hsu

unread,
Mar 9, 2002, 1:48:52 AM3/9/02
to
I am playing with the Java Mail API and having a simple
send mail command-line program called SimpleSender.

on my own pc, SimpleSender runs fine when the email addr of the
recipient is on my smtp server. But if the addr is other than
my smtp server such as a yahoo mail account, I am getting
SendFailedException.

javax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
javax.mail.SendFailedException: 550 5.7.1
<hornta...@yahoo.com>... Relaying denied. IP name lookup failed
[135.91.238.96]

at javax.mail.Transport.send0(Transport.java:219)
at javax.mail.Transport.send(Transport.java:81)
at SimpleSender.send(SimpleSender.java:77)
at SimpleSender.main(SimpleSender.java:27)


but if I run the same program on the smtp server, both the local
mail addr and the yahoo mail addr work fine there.

is this some setting/properties issue? why does it works on the
smtp host but not my pc? it is the same code!

any pointers appreciated,

Chin

Jon Skeet

unread,
Mar 9, 2002, 3:38:03 AM3/9/02
to
Chin Hsu <hornta...@yahoo.com> wrote:
> but if I run the same program on the smtp server, both the local
> mail addr and the yahoo mail addr work fine there.
>
> is this some setting/properties issue? why does it works on the
> smtp host but not my pc? it is the same code!

Your SMTP server is refusing to act as an open relay, which is a good
thing. Do a google search for "open relay" and SMTP to find out more
about it.

--
Jon Skeet - <sk...@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too

Chin Hsu

unread,
Mar 9, 2002, 10:44:06 AM3/9/02
to
thanks a lot.

all I need to do is to add my pc to the relay-domain
of my SMTP server.

Chin

0 new messages