Re: [ietf-smtp] How is EAI mail implemented ?

Jeremy Harris <jgh@wizmail.org> Tue, 15 June 2021 18:37 UTC

Return-Path: <jgh@wizmail.org>
X-Original-To: ietf-smtp@ietfa.amsl.com
Delivered-To: ietf-smtp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7119C3A3952 for <ietf-smtp@ietfa.amsl.com>; Tue, 15 Jun 2021 11:37:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=neutral reason="invalid (unsupported algorithm ed25519-sha256)" header.d=wizmail.org header.b=/kM5VoZQ; dkim=pass (2048-bit key) header.d=wizmail.org header.b=P3zuSqZS
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IFqZqFm7cazo for <ietf-smtp@ietfa.amsl.com>; Tue, 15 Jun 2021 11:36:54 -0700 (PDT)
Received: from wizmail.org (wizmail.org [IPv6:2a00:1940:107::2:0:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 827B93A3956 for <ietf-smtp@ietf.org>; Tue, 15 Jun 2021 11:36:54 -0700 (PDT)
DKIM-Signature: v=1; a=ed25519-sha256; q=dns/txt; c=relaxed/relaxed; d=wizmail.org; s=e202001; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:To:Subject:From: Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive:Autocrypt; bh=FCMejASFa6jdchTC7Sp0WmkSIbVN0aTmLJUbRVsBIqc=; b=/kM5VoZQMh5ii7ohx2vIVb+7pQ hNeybyTimzRstimdUKRQIBr4YZ2s6YDb0KIBvDQPZBHwkbYf7c5YW5kXwTDQ==;
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=wizmail.org ; s=r202001; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:To:Subject:From:Sender:Reply-To: Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive:Autocrypt; bh=FCMejASFa6jdchTC7Sp0WmkSIbVN0aTmLJUbRVsBIqc=; b=P3zuSqZSNzUa6va6/D1kYtKNop mNruPdxSsYbCAaFzFfeZxRhi/g81KErJ31Vs6cluMxH+0xMr473i8SMBhHIy9KCUCCJ8HQ54MLO47 y266Qi/SoH2++REdS6163WkhdxIc4bODba+5G9SV9pdJxqdkbbM0xQBQ6q4PI2zBY0bPQt9L2/Izp /8hzUnOG7h0BV3c35/Ylegmgit2AmlzqR/pR4npUJUHB0/VgYrQpjiZmfT6DIOMaSQqyVgDm2sHAt D0l/k/jrHMQtw/so5LRZ6HxC5ajFCije80uj8jLI6tmKaWoiQ7venhhfSJmGxD7aRaXb8bh+LCxCx /XlWKdcw==;
Authentication-Results: wizmail.org; iprev=pass (vgate18.wizint.net) smtp.remote-ip=2a00:1940:107::1:2f:0; auth=pass (PLAIN) smtp.auth=jgh@wizmail.org
Received: from vgate18.wizint.net ([2a00:1940:107::1:2f:0] helo=lap.dom.ain) by wizmail.org (Exim 4.94.126) (TLS1.3) tls TLS_AES_128_GCM_SHA256 with esmtpsa id 1ltDve-000yFL-VF for ietf-smtp@ietf.org (return-path <jgh@wizmail.org>); Tue, 15 Jun 2021 18:36:51 +0000
To: ietf-smtp@ietf.org
References: <5bb26c2f-a94d-ccaf-8fc1-51684f25f48@taugh.com> <20210615182626.GA57503@kiel.esmtp.org>
From: Jeremy Harris <jgh@wizmail.org>
Message-ID: <dcfd33c0-2dcb-77af-eb93-f4a7acfcb6ac@wizmail.org>
Date: Tue, 15 Jun 2021 19:36:50 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1
MIME-Version: 1.0
In-Reply-To: <20210615182626.GA57503@kiel.esmtp.org>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-GB
Content-Transfer-Encoding: 7bit
X-Pcms-Received-Sender: vgate18.wizint.net ([2a00:1940:107::1:2f:0] helo=lap.dom.ain) with esmtpsa
Archived-At: <https://mailarchive.ietf.org/arch/msg/ietf-smtp/1mPnTDa_v6iKe-zUlggMpWdqPyk>
Subject: Re: [ietf-smtp] How is EAI mail implemented ?
X-BeenThere: ietf-smtp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Discussion of issues related to Simple Mail Transfer Protocol \(SMTP\) \[RFC 821, RFC 2821, RFC 5321\]" <ietf-smtp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ietf-smtp>, <mailto:ietf-smtp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ietf-smtp/>
List-Post: <mailto:ietf-smtp@ietf.org>
List-Help: <mailto:ietf-smtp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf-smtp>, <mailto:ietf-smtp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 15 Jun 2021 18:37:03 -0000

On 15/06/2021 19:26, Claus Assmann wrote:
> On Tue, Jun 15, 2021, John R Levine wrote:
>> Nobody I've seen tags messages as EAI in their internal queues.
> 
> sendmail does:
> writing: queueup()
> 	/* send various flag bits through */
> ...
> 	if (e->e_smtputf8)
> 		*p++ = 'e';
> 
> reading: readqf()
> ...
> 	  case 'e':	/* message requires EAI */
> 		e->e_smtputf8 = true;
> 

and Exim does:

writing: spool_write_header()
...
  if (message_smtputf8)
   {
   fprintf(fp, "-smtputf8\n");

reading: spool_read_header()
...
     else if (Ustrncmp(p, "mtputf8", 7) == 0)
       message_smtputf8 = TRUE;

-- 
Cheers,
   Jeremy