Re: WOMailDelivery UnknownHostException: mailhost
Re: WOMailDelivery UnknownHostException: mailhost
- Subject: Re: WOMailDelivery UnknownHostException: mailhost
- From: Denis Stanton <email@hidden>
- Date: Fri, 3 Oct 2003 11:37:20 +1200
Thank you Art for a further course correction.
My WO app is now able to send email
For anyone who has been following this and is not sure of the final
outcome (actually it seems you all knew the process, but just in case
there are silent lurkers hoping to learn) here is the result:
The quickest fix for my situation would have been to look at the
Network System Preference panel and note that while there were two DNS
servers listed there was no value in Search Domains.
Now I have entered maxnet.net.nz in the box WebObjects is able to
concatenate this with its default value for SMTPHost = smtp and come up
with smtp.maxnet.net.nz, which works.
This works because Maxnet have used a simple convention that matches
the WO default.
Alternatively, I could added the following to the start up parameters:
-WOSMTPHost smtp.maxnet.net.nz
This also works, and has the advantage that I could specify the smtp
server name even if it didn't match the format smtp.<isp-name>
Alternatively I could have added the following to the Application()
constructor method.
setSMTPHost(smtp.maxnet.net.nz);
Thank you all for your patience and understanding.
The only downside to the morning is that in the course of trying to use
my .mac mail account on the server (operating through Timbuktu) I seem
to have allowed it to POP the 800+ messages that I left sitting in my
.mac inbox, and now they are lost.
Fortunately all the webobjects-dev stuff was stored in a local folder.
regards to all contributors
Denis
On Friday, October 3, 2003, at 10:41 AM, Art Isbell wrote:
> On Thursday, October 2, 2003, at 12:00 PM, Denis Stanton wrote:
>
>> On the other server I get:
>>
>> [server4:~] fred% nslookup smtp
>> *** Can't find server name for address 122.89.39.192: No response
>> from server
>> *** Can't find server name for address 122.89.39.28: Non-existent
>> host/domain
>> *** Default servers are not available
>> [server4:~] fred% nslookup mailhost
>> *** Can't find server name for address 122.89.39.192: No response
>> from server
>> *** Can't find server name for address 122.89.39.28: Non-existent
>> host/domain
>> *** Default servers are not available
>>
>> So I now need to get onto the ISP where the server is hosted and ask
>> for an SMTP name that allows open relay, and ask them why they didn't
>> give is a simple name that beginners could find without even knowing
>> they were asking.
>
> No, no! The smtp server isn't the problem (at least, you can't
> determine that from the above results). The problem is that these
> machines don't have the correct name servers configured or these name
> servers (122.89.39.192 and 122.89.39.28) are unreachable for some
> reason. Until you configure these machines with correct name servers,
> you'll have to specify the IP address of the SMTP server. But
> configuring the name servers is the better solution.
>
> And there's no standard SMTP server name that an ISP should use, so
> don't rag them about their choice of names. The SMTP server used by
> my ISP is "smtp-server.hawaii.rr.com". Apple uses "smtp.mac.com" for
> its .mac accounts but "mail.apple.com" for its internal SMTP server.
> So there's no standard. The SMTP server must be set for every app
> that needs to send mail. WO chose "smtp" as the default which may
> work in more cases than any other choice, but it would fail in many
> (most?) cases.
>
> Aloha,
> Art
>
>
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.