<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">What does this output if you run it on the same machine as your calendar server:<div><br></div><div>python -c "import socket; print socket.gethostbyaddr('127.0.0.1')"</div><div><br></div><div><br><div><div>On Mar 15, 2013, at 8:28 AM, Fabrizio Regalli <<a href="mailto:fabreg@gmail.com">fabreg@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi Morgen,<div><br></div><div>this was my first check, but it solve 127.0.0.1 to localhost (and viceversa) correctly</div><div style="">My /etc/hosts looks like:</div><div style=""><br></div><div style=""><div>127.0.0.1<span class="" style="white-space:pre">        </span>localhost</div>
<div>255.255.255.255<span class="" style="white-space:pre">        </span>broadcasthost</div><div>::1 localhost </div><div>fe80::1%lo0<span class="" style="white-space:pre">        </span>localhost</div><div><br></div><div>
<div># nslookup 127.0.0.1</div><div>Server:<span class="" style="white-space:pre">                </span>127.0.0.1</div><div>Address:<span class="" style="white-space:pre">        </span>127.0.0.1#53</div><div><br></div><div>1.0.0.127.in-addr.arpa<span class="" style="white-space:pre">        </span>name = localhost.</div>
<div><br></div><div># nslookup localhost</div><div>Server:<span class="" style="white-space:pre">                </span>127.0.0.1</div><div>Address:<span class="" style="white-space:pre">        </span>127.0.0.1#53</div><div><br></div><div>Name:<span class="" style="white-space:pre">        </span>localhost</div>
<div>Address: 127.0.0.1</div></div><div><br></div><div style="">Thank you.</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/3/15 Morgen Sagen <span dir="ltr"><<a href="mailto:sagen@apple.com" target="_blank">sagen@apple.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Here's the related server code…</div><div><br></div><div> def securityChecks(self):</div>
<div> """</div><div> Check that the connection is from the mail gateway</div><div> """</div><div> allowed = config.Scheduling['iMIP']['MailGatewayServer']</div>
<div> # Get the request IP and map to hostname.</div><div> clientip = self.request.remoteAddr.host</div><div> host, aliases, _ignore_ips = socket.gethostbyaddr(clientip)</div><div> for host in itertools.chain((host, clientip), aliases):</div>
<div> if host == allowed:</div><div> break</div><div> else:</div><div> log.err("Only %s is allowed to submit internal scheduling requests, not %s" % (allowed, host))</div>
<div> # TODO: verify this is the right response:</div><div> raise HTTPError(ErrorResponse(</div><div> responsecode.FORBIDDEN,</div><div> (caldav_namespace, "originator-allowed"),</div>
<div> "Originator server not allowed to send to this server",</div><div> ))</div><div><br></div><div>The message you're seeing means your gethostbyaddr(clientip) call is not returning "localhost". Does your /etc/hosts have a "127.0.0.1 localhost" entry?</div>
<div><br></div><div><br></div><div><div><div class="h5"><div>On Mar 15, 2013, at 1:58 AM, Fabrizio Regalli <<a href="mailto:fabreg@gmail.com" target="_blank">fabreg@gmail.com</a>> wrote:</div><br></div></div><blockquote type="cite">
<div><div class="h5"><div dir="ltr"><div>Hello, </div><div><br></div><div>I have a problem in my iCal: if I schedule a meeting and the recipient accept it, I can't receive the answer. </div><div>The log says: </div><div>
<br></div><div>2013-03-14 22:54:57+0100 [-] [caldav-8009] [PooledMemCacheProtocol,client] [twistedcaldav.scheduling.scheduler#error] Only localhost is allowed to submit internal scheduling requests, not 127.0.0.1 </div>
<div>2013-03-14 22:54:57+0100 [-] [mailgateway] 2013-03-14 22:54:57+0100 [AuthorizedHTTPGetter,client] [twistedcaldav.mail#error] Mail gateway failed to inject message <<a href="mailto:f46d043748df241b7304d7e99270@google.com" target="_blank">f46d043748df241b7304d7e99270@google.com</a>> (Reason: 403 Forbidden) </div>
<div><br></div><div>Could someone help me? </div><div><br></div><div>Thanks in advance.</div></div></div></div>
_______________________________________________<br>calendarserver-users mailing list<br><a href="mailto:calendarserver-users@lists.macosforge.org" target="_blank">calendarserver-users@lists.macosforge.org</a><br><a href="https://lists.macosforge.org/mailman/listinfo/calendarserver-users" target="_blank">https://lists.macosforge.org/mailman/listinfo/calendarserver-users</a><br>
</blockquote></div><br></div></blockquote></div><br></div>
</blockquote></div><br></div></body></html>