<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> 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>On Mar 15, 2013, at 1:58 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"><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">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>
_______________________________________________<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>