Re: [imap5] Feature set? - was Re: Designing a new replacement protocol for IMAP

Adrien de Croy <adrien@qbik.com> Thu, 16 February 2012 20:50 UTC

Return-Path: <adrien@qbik.com>
X-Original-To: imap5@ietfa.amsl.com
Delivered-To: imap5@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A6DBB11E80B5 for <imap5@ietfa.amsl.com>; Thu, 16 Feb 2012 12:50:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.132
X-Spam-Level:
X-Spam-Status: No, score=-4.132 tagged_above=-999 required=5 tests=[AWL=-1.533, BAYES_00=-2.599]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zUp5RXu8LKGW for <imap5@ietfa.amsl.com>; Thu, 16 Feb 2012 12:50:19 -0800 (PST)
Received: from smtp.qbik.com (smtp.qbik.com [210.55.214.35]) by ietfa.amsl.com (Postfix) with ESMTP id CF8AC11E808E for <imap5@ietf.org>; Thu, 16 Feb 2012 12:50:18 -0800 (PST)
Received: From sago.qbik.com (unverified [192.168.0.3]) by SMTP Server [192.168.0.1] (WinGate SMTP Receiver v7.1.0 (Build 3381)) with SMTP id <0018867037@smtp.qbik.com>; Fri, 17 Feb 2012 09:50:15 +1300
Received: From [192.168.0.10] (unverified [192.168.0.10]) by SMTP Server [192.168.0.3] (WinGate SMTP Receiver v7.0.8 (Build 3364)) with SMTP id <0010060731@sago.qbik.com>; Fri, 17 Feb 2012 09:50:01 +1300
Message-ID: <4F3D6BF9.6040801@qbik.com>
Date: Fri, 17 Feb 2012 09:50:01 +1300
From: Adrien de Croy <adrien@qbik.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120202 Thunderbird/11.0
MIME-Version: 1.0
To: Cyrus Daboo <cyrus@daboo.name>
References: <B764BD8C8B6047E659EABBE2@caldav.corp.apple.com> <4F397212.1030107@qbik.com> <20120213210805.GB13029@launde.brong.net> <alpine.LSU.2.00.1202151405550.30682@hermes-2.csi.cam.ac.uk> <1329315552.1444.140661036879893@webmail.messagingengine.com> <4F3BBFA4.8010107@isode.com> <1329316981.8310.140661036883625@webmail.messagingengine.com> <4F3BC7DA.5070803@gulbrandsen.priv.no> <20120215181047.GB13906@launde.brong.net> <alpine.OSX.2.00.1202151020140.38441@hsinghsing.panda.com> <20120215213122.GB16253@launde.brong.net> <4F3C2C1B.6030408@qbik.com> <3077.1329344733.342803@puncture> <4F3CA887.9050509@gulbrandsen.priv.no> <3077.1329382177.374908@puncture> <4F3CCA6C.3020004@qbik.com> <8CA186A707E99CE0FB2B38E9@tyrion.rrz.uni-koeln.de> <4F3CD1EB.20002@panozzo.it> <58468AD004760C13E7117347@caldav.corp.apple.com>
In-Reply-To: <58468AD004760C13E7117347@caldav.corp.apple.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
Cc: imap5@ietf.org
Subject: Re: [imap5] Feature set? - was Re: Designing a new replacement protocol for IMAP
X-BeenThere: imap5@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: "Discussion on drastically slimming-down IMAP." <imap5.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/imap5>, <mailto:imap5-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/imap5>
List-Post: <mailto:imap5@ietf.org>
List-Help: <mailto:imap5-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/imap5>, <mailto:imap5-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 16 Feb 2012 20:50:23 -0000

One of the things that discovery gives you is an opportunity when the 
discovery is initiated to make a decision about what will provide the 
service(s).

this means load-balancing, failover etc can be implemented.

One issue with using a well-known http URI for user account discovery, 
is that most organisations that run web services already have a website 
set up on their base domain.  So you'd have to wedge the discovery 
provision into an existing web site and infrastructure.

Another option could be to use DNS again.

e.g. do a dns SRV lookup for say _localpart._allservices._example.com

which could return multiple records, one for each available service.  
Could even use SRV records for this where the record name is _ldap._tcp 
etc.... possibly need some CNAME glue.

Adrien


On 17/02/2012 4:23 a.m., Cyrus Daboo wrote:
> Hi Giovanni,
>
> --On February 16, 2012 10:52:43 AM +0100 Giovanni Panozzo 
> <giovanni@panozzo.it> wrote:
>
>> b) Autoconfiguration is checked only at client configuration. I would
>> like to have the client reconfigured at every startup. This will let me
>> do major changes at the server sides (ie: enable SSL ? Change server
>> names ?), and client will be able to reconfigure themselves at next
>> startup.
>
> One of the things we are doing in CalDAV is supporting a server-driven 
> client re-configuration mode. In large scale CalDAV deployments it is 
> sometimes more efficient to "redirect" users to a specific host rather 
> than rely on some internal-to-the-server reverse proxying. To deal 
> with that we simply have servers change a WebDAV property from a path 
> absolute value (e.g. '/calendars/users/cyrus') to one with an FQDN 
> (e.g. 'https://newserver.example.com/calendars/users/cyrus'). Clients 
> are then expected to check that property on a regular basis and if 
> they see it point to a new host, they "re-base" the user account 
> accordingly.
>
> And of course IMAP has a similar mechanism - RLOGIN.
>
> Now I think I would prefer to stick to a mechanism like that - i.e. 
> the service (imap, CalDAV etc) provides a "redirect" mechanism or at 
> least a signal to the client, to indicate that a re-basing of the 
> account is needed. But that could also be the trigger for the client 
> to go re-do account provisioning. However, you need to be careful in 
> terms of understanding client side "layering". i.e. there are 
> different apps for each service, and possible a separate overall 
> account configuration system. It may not be feasible for say the email 
> app to tell the account config app to re-do all the services for that 
> account. In any case, there are some interesting things to think about 
> here.
>

-- 
Adrien de Croy - WinGate Proxy Server - http://www.wingate.com
WinGate 7 is released! - http://www.wingate.com/getlatest/