<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; "><div>Here's the related server code…</div><div><br></div><div>&nbsp; &nbsp; def securityChecks(self):</div><div>&nbsp; &nbsp; &nbsp; &nbsp; """</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Check that the connection is from the mail gateway</div><div>&nbsp; &nbsp; &nbsp; &nbsp; """</div><div>&nbsp; &nbsp; &nbsp; &nbsp; allowed = config.Scheduling['iMIP']['MailGatewayServer']</div><div>&nbsp; &nbsp; &nbsp; &nbsp; # Get the request IP and map to hostname.</div><div>&nbsp; &nbsp; &nbsp; &nbsp; clientip = self.request.remoteAddr.host</div><div>&nbsp; &nbsp; &nbsp; &nbsp; host, aliases, _ignore_ips = socket.gethostbyaddr(clientip)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; for host in itertools.chain((host, clientip), aliases):</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if host == allowed:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break</div><div>&nbsp; &nbsp; &nbsp; &nbsp; else:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; log.err("Only %s is allowed to submit internal scheduling requests, not %s" % (allowed, host))</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; # TODO: verify this is the right response:</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; raise HTTPError(ErrorResponse(</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; responsecode.FORBIDDEN,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (caldav_namespace, "originator-allowed"),</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "Originator server not allowed to send to this server",</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ))</div><div><br></div><div>The message you're seeing means your gethostbyaddr(clientip) call is not returning "localhost". &nbsp;Does your /etc/hosts have a "127.0.0.1 &nbsp;localhost" entry?</div><div><br></div><div><br></div><div><div>On Mar 15, 2013, at 1:58 AM, Fabrizio Regalli &lt;<a href="mailto:fabreg@gmail.com">fabreg@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div>Hello,&nbsp;</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.&nbsp;</div><div>The log says:&nbsp;</div><div><br></div><div>2013-03-14 22:54:57+0100 [-] [caldav-8009] &nbsp;[PooledMemCacheProtocol,client] [twistedcaldav.scheduling.scheduler#error] Only localhost is allowed to submit internal scheduling requests, not 127.0.0.1&nbsp;</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 &lt;<a href="mailto:f46d043748df241b7304d7e99270@google.com">f46d043748df241b7304d7e99270@google.com</a>&gt; (Reason: 403 Forbidden)&nbsp;</div>
<div><br></div><div>Could someone help me?&nbsp;</div><div><br></div><div>Thanks in advance.</div></div>
_______________________________________________<br>calendarserver-users mailing list<br><a href="mailto:calendarserver-users@lists.macosforge.org">calendarserver-users@lists.macosforge.org</a><br>https://lists.macosforge.org/mailman/listinfo/calendarserver-users<br></blockquote></div><br></body></html>