Re: WOMailDelivery UnknownHostException: mailhost
Re: WOMailDelivery UnknownHostException: mailhost
- Subject: Re: WOMailDelivery UnknownHostException: mailhost
- From: Denis Stanton <email@hidden>
- Date: Fri, 3 Oct 2003 07:55:19 +1200
Thank you for you help Hunter
I'm sure you are right about authentication, but I don't understand how
my two computers at home work without me having to think about
authentication, but the server located at the ISP is stuck on this.
There must be something in the configuration that tells WO where to
send.
The default value in each case is SMTPHost = smtp. Somehow WebObjects
gets a proper smtp address. Do you know if it uses the email settings
in Mail? The Internet System Preference also lists an Outgoing Mail
Server, so I guess that's the logical place to set it.
Your "mail.host.com" is a value I haven't tried, or is that specific to
your network? I haven't found anywhere that allows me to set user and
password inside my program.
I thought it might be a block on port 25 so I fired up Mail on the
server via Timbuktu and sent myself a message. That worked fine, and
presumably passed out through port 25
Denis
On Friday, October 3, 2003, at 05:09 AM, MadBrowser wrote:
I had a similar message. My problem was that my ISP blocks port 25 so
I cannot use it to send... When I moved my machine to another network
that allowed outbound 25, it was fine.
I set my SMTP host in my Application class:
setSMTPHost("mail.host.com");
Doesn't mac.com require SMTP to be authenticated? I.e. you have to
pass user/pass to send via their servers?
Hunter
On Thursday, October 2, 2003, at 03:36 AM, Denis Stanton wrote:
I'm having trouble using WOMailDelivery to send email from my WO
application.
It works perfectly well on my development Mac in dev mode
I works on my test deployment Mac in deployment mode (this machine
also has WO development installed, if that makes a difference)
Move it to the deployment server and when I try to send a mail I get
java.net.UnknownHostException: mailhost
All computers are Macs running OS X. 10.2.6 (well one has 10.2.8, but
that one is OK ) and WebObjects 5.2.1
I thought the problem might be because the server had never been used
for email. I fired up Mail (this is a painful process on a remote
server through Timbuktu without true broadband at my end) and found
that the owner of the server had not set up password authentication
on the email accounts. I thought maybe WebObjects would use Mail's
smtp configuration, so I corrected the omission but it hasn't helped.
I added a line to the application class
System.out.println(" SMTPHost = " + this.SMTPHost());
On startup this tells me that the SMTPHost = smtp
I tried adding -WOSMTPHost=smtp.mac.com to the WebObjects instance
startup parameters. The change is duly reflected in the println
message but I still can't get the mail out. I did manage to get the
error message to change to "relaying denied 554 recipient address
rejected"
This apparently means that the From address does not match the smtp
authentication, except that I think they are the same.
Does anyone have any other clues? Does WebObjects use the mail
configuration, or am I wasting time with that line of investigation?
Denis
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
Denis Stanton
email@hidden
Home: (09) 533 0391
mobile: 021 1433622
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.