[CalendarServer-users] iCal problem in mailgateway

Morgen Sagen sagen at apple.com
Fri Mar 15 08:22:33 PDT 2013


Here's the related server code…

    def securityChecks(self):
        """
        Check that the connection is from the mail gateway
        """
        allowed = config.Scheduling['iMIP']['MailGatewayServer']
        # Get the request IP and map to hostname.
        clientip = self.request.remoteAddr.host
        host, aliases, _ignore_ips = socket.gethostbyaddr(clientip)
        for host in itertools.chain((host, clientip), aliases):
            if host == allowed:
                break
        else:
            log.err("Only %s is allowed to submit internal scheduling requests, not %s" % (allowed, host))
            # TODO: verify this is the right response:
            raise HTTPError(ErrorResponse(
                responsecode.FORBIDDEN,
                (caldav_namespace, "originator-allowed"),
                "Originator server not allowed to send to this server",
            ))

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?


On Mar 15, 2013, at 1:58 AM, Fabrizio Regalli <fabreg at gmail.com> wrote:

> Hello, 
> 
> I have a problem in my iCal: if I schedule a meeting and the recipient accept it, I can't receive the answer. 
> The log says: 
> 
> 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 
> 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 <f46d043748df241b7304d7e99270 at google.com> (Reason: 403 Forbidden) 
> 
> Could someone help me? 
> 
> Thanks in advance.
> _______________________________________________
> calendarserver-users mailing list
> calendarserver-users at lists.macosforge.org
> https://lists.macosforge.org/mailman/listinfo/calendarserver-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-users/attachments/20130315/60ef5a39/attachment.html>


More information about the calendarserver-users mailing list