Just a quick update for anyone else who comes across this problem. I
have not necessarily found the root cause but know what is happening
and a work around. I thought perhaps the problem was DNS but that is
properly configured and working. Anyway the details below.

I am running the SDK on Mac OS X 10.4.11. The specific error is an
Exception with Exception Value "(1, unknown host)" on line 111.
hostname, aliases, ipaddrs = gethostbyaddr(name). In looking at the
VAR value for name my was "imac.local". In doing some testing I found
that the '.local' is not liked by getbyhostaddr().

So to work around it, I manually remove(it appears OS X is
automatically adding it) the .local by opening terminal and typing:

sudo hostname -s imac

This removed the .local and all mail functions work! It's somewhat a
pain of a workaround because each time you restart the machine you
have to change it but at least it's allowing me to continue
developing.

If anyone has a permanent fix or getting rid of the .local I'd
appreciate hearing it.

Thanks,

Dave

On Jan 9, 8:40 am, Dave <[email protected]> wrote:
> Hi Waldemar,
>
> Thanks for the reply. I appreciate it. I should have included this in
> my original post. I have configured as below(xxx = username/password):
>
> # Email server settings
> EMAIL_HOST = 'smtp.comcast.net'
> EMAIL_PORT = 25
> EMAIL_HOST_USER = 'xxxxx'
> EMAIL_HOST_PASSWORD = 'xxxx'
> EMAIL_USE_TLS = False
> DEFAULT_FROM_EMAIL = '[email protected]'
> SERVER_EMAIL = '[email protected]'
>
> I've tried TLS = True and False both.
>
> Also from terminal (i'm using OS X 10.4.11) I can successfully "telnet
> smtp.comcast.net 25" and manually send a message. Also when using
> telnet I do not have to login so I've attempt to comment out the
> EMAIL_HOST_USER and EMAIL_HOST_PASSWORD but it does not fix it.
>
> Also in looking at this more, and the output above shows the local var
> 'name' that is being used by getbyhostaddr(name) is using has my local
> machine hostname(imac.local). I've even gone into my host file to make
> sure it has imac.local with my loopback address.
>
> Again, thanks for your help. This is driving me mad!
>
> Dave
>
> On Jan 9, 7:36 am, Waldemar Kornewald <[email protected]> wrote:
>
> > HiDave,
>
> > On Jan 8, 3:36 pm,Dave<[email protected]> wrote:
>
> > > I am having a problem that I hope has an easy answer although I've
> > > looked high and low for an answer. I am using app engine with
> > > appenginepatch, including Django 1.x. When I attempt to send an email
> > > I get an 'herror" Exception with Exception Value "(1, uknown host)".
> > > From the error output, line 111 is what seems to be raising the
> > > Exception is below:
>
> > Did you configure the email server in your settings.py? See here for a
> > reference:http://docs.djangoproject.com/en/dev/ref/settings/#email-host
> > There's also DEFAULT_FROM_EMAIL and SERVER_EMAIL.
>
> > Bye,
> > Waldemar Kornewald
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to