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

Adrien de Croy <adrien@qbik.com> Thu, 16 February 2012 12:57 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 C414221F8722 for <imap5@ietfa.amsl.com>; Thu, 16 Feb 2012 04:57:34 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.172
X-Spam-Level:
X-Spam-Status: No, score=-4.172 tagged_above=-999 required=5 tests=[AWL=-1.573, 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 xHoW0bPXi8wg for <imap5@ietfa.amsl.com>; Thu, 16 Feb 2012 04:57:30 -0800 (PST)
Received: from smtp.qbik.com (smtp.qbik.com [210.55.214.35]) by ietfa.amsl.com (Postfix) with ESMTP id D79BC21F872F for <imap5@ietf.org>; Thu, 16 Feb 2012 04:57:29 -0800 (PST)
Received: From [192.168.1.10] (unverified [219.89.217.118]) by SMTP Server [210.55.214.35] (WinGate SMTP Receiver v7.1.0 (Build 3381)) with SMTP id <0018866408@smtp.qbik.com>; Fri, 17 Feb 2012 01:57:28 +1300
Message-ID: <4F3CFD35.10501@qbik.com>
Date: Fri, 17 Feb 2012 01:57:25 +1300
From: Adrien de Croy <adrien@qbik.com>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20120202 Thunderbird/11.0
MIME-Version: 1.0
To: Bron Gondwana <brong@fastmail.fm>
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><3077.1329386263.642278@puncture> <4F3CD728.3010203@qbik.com><3077.1329388899.383165@puncture> <4F3CE16B.3060603@qbik.com><3077.1329391344.173214@puncture> <4F3CEB35.9080200@qbik.com> <1329394296.953.140661037317197@webmail.messagingengine.com>
In-Reply-To: <1329394296.953.140661037317197@webmail.messagingengine.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
Cc: Arnt Gulbrandsen <arnt@gulbrandsen.priv.no>, "Discussion on drastically slimming-down IMAP." <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 12:57:34 -0000

On 17/02/2012 1:11 a.m., Bron Gondwana wrote:
> On Fri, Feb 17, 2012, at 12:40 AM, Adrien de Croy wrote:
>> On 17/02/2012 12:22 a.m., Dave Cridland wrote:
>>> Right, sure, understood (after s/MTA/MUA/) but what has port 25 got to
>>> do with it?
>> back to my point about getting everything over 1 port.  If we had that,
>> then blocking 25 wouldn't have affected me.
> If you were using port 587, it wouldn't have affected you - that's been
> standardised for a while.
>
> The more important thing is - if we were going over one port, it would
> have either not affected you, or TOTALLY affected you - with nothing
> working.  Either of those is significantly more understandable to the
> "punter" than some things working, and others not.

that's what I've noticed in support.

> The same with "Send succeeds, but then append-to-Sent-folder fails" if
> your IMAP connection is unavailable but your SMTP server isn't.  Or if
> you're over quota.
>
> BURL at least solves the second one, but it solves it in a half arsed
> way that the little XSEND I put together last week doesn't.

aieeee BURL...

until then, a mail server vendor had no need to write an IMAP client.

Would have been a trillion times simpler to implement submission from 
IMAP.  I can't even think of a mail server product with IMAP that 
doesn't have SMTP already.

Did anyone actually implement this?

It seems so fraught with problems / fragile that I'd expect very few 
implementations.  That's even apart from the complexity.

> With XSEND, you upload the message to IMAP first, then you say:
>
> TAG XSEND UID

how do you provide the SMTP forward path?  Is that scraped from the headers?

maybe should be

TAG XSEND UID (addr, addr...)

> Which sends the message UNLESS it has the \XSent flag already.
>
> And it sets the \XSent flag as soon as the message is sent.  No
> waiting on network IO.  So the only gap is a failure within the
> server itself.  If the client disconnects and tries again, the
> flag will already be set, and it will not duplicate the message.
>
> No partial failures.  No multiple systems depending on each other
> to be up, configured correctly, routing to each other.
>
> (Implementation in this case is "Call sendmail -bmi and pipe the
> spool file to it")
>
>>> What we need to do is identify the core problems to be solved, instead
>>> of finding solutions and trying to figure out how to use them.
>> * SPAM
> There's a checklist for why this one won't be solved.
>
>> * UDNs
> In the case of wingate, because of the embedded SMTP server, you could
> theoretically hold the client waiting until you had tried one outbound
> SMTP.  Only fixes the first hop of course.

sure, but if you're delivering direct to end MTA, you have pretty much 
the whole path.

>
> A "ocean boiling" solution to this would involve server level magic on
> control messages.  You'd want forgery protection though... gets trickier
> when you consider active attacks.  Mind you, MDN is already fraught with
> active attacks.

half the problem is lack of standardisation.  MDNs should be 
machine-readable.

Adrien

>
> Bron.

-- 
Adrien de Croy - WinGate Proxy Server - http://www.wingate.com