Re: [Emailcore] Ticket #5: G.5. Remove or deprecate the work-around from code 552 to 452?

Michael Peddemors <michael@linuxmagic.com> Mon, 15 February 2021 23:46 UTC

Return-Path: <michael@linuxmagic.com>
X-Original-To: emailcore@ietfa.amsl.com
Delivered-To: emailcore@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id AA5E73A1324 for <emailcore@ietfa.amsl.com>; Mon, 15 Feb 2021 15:46:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, NICE_REPLY_A=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 sd4s_V6drdto for <emailcore@ietfa.amsl.com>; Mon, 15 Feb 2021 15:46:22 -0800 (PST)
Received: from mail-ob.cityemail.com (mail-ob.cityemail.com [104.128.152.19]) by ietfa.amsl.com (Postfix) with ESMTP id 4C1DC3A1322 for <emailcore@ietf.org>; Mon, 15 Feb 2021 15:46:22 -0800 (PST)
Received: (qmail 16276 invoked from network); 15 Feb 2021 23:46:20 -0000
Received: from riddle.wizard.ca (HELO [192.168.1.55]) (michael@wizard.ca@104.128.144.8) by be.cityemail.com with (DHE-RSA-AES128-SHA encrypted) SMTP (013adb94-6fe8-11eb-be95-df3a31a7bb2f); Mon, 15 Feb 2021 15:46:20 -0800
To: emailcore@ietf.org
References: <ca851fda-63ac-8739-c3eb-bde725aa25f3@isode.com> <c188413b-9337-40d8-8062-9c0f58f6cd98@www.fastmail.com> <8874dfd9-eff4-017b-da16-81db965e8f6d@wizmail.org> <5dd9b4f9-ea33-f4e3-5eef-76ef0ec99171@linuxmagic.com>
From: Michael Peddemors <michael@linuxmagic.com>
Organization: LinuxMagic Inc.
Message-ID: <ba6b34dc-b6db-5732-f9f1-3bb089c4b487@linuxmagic.com>
Date: Mon, 15 Feb 2021 15:46:20 -0800
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0
MIME-Version: 1.0
In-Reply-To: <5dd9b4f9-ea33-f4e3-5eef-76ef0ec99171@linuxmagic.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-MagicMail-OS: Linux 3.11 and newer
X-MagicMail-UUID: 013adb94-6fe8-11eb-be95-df3a31a7bb2f
X-MagicMail-Authenticated: michael@wizard.ca
X-MagicMail-SourceIP: 104.128.144.8
X-MagicMail-RegexMatch: 0
X-MagicMail-EnvelopeFrom: <michael@linuxmagic.com>
X-Archive: Yes
Archived-At: <https://mailarchive.ietf.org/arch/msg/emailcore/m19pvEeVDeyX-6kTkYxfIq7L98k>
Subject: Re: [Emailcore] Ticket #5: G.5. Remove or deprecate the work-around from code 552 to 452?
X-BeenThere: emailcore@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: EMAILCORE proposed working group list <emailcore.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/emailcore>, <mailto:emailcore-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/emailcore/>
List-Post: <mailto:emailcore@ietf.org>
List-Help: <mailto:emailcore-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/emailcore>, <mailto:emailcore-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 15 Feb 2021 23:46:24 -0000

On 2021-02-15 3:40 p.m., Michael Peddemors wrote:
> On 2021-02-15 3:26 p.m., Jeremy Harris wrote:
>> On 15/02/2021 13:41, Alexey Melnikov wrote:
>>>> The first pagaraph of Section 4.5.3.1.10 (Too Many Recipients Code)
>>>> currently says:
>>>>
>>>>      RFC 821 [3] incorrectly listed the error where an SMTP server
>>>>      exhausts its implementation limit on the number of RCPT commands
>>>>      ("too many recipients") as having reply code 552.  The correct 
>>>> reply
>>>>      code for this condition is 452.  Clients SHOULD treat a 552 
>>>> code in
>>>>      this case as a temporary, rather than permanent, failure so the 
>>>> logic
>>>>      below works.
>>>>
>>>> John noted that this suggestion may have outlived its usefulness
>>>> and/or be inconsistent with current practice. Should it be removed
>>>> and/or explicitly deprecated?
>>>
>>> I did a bit of digging and it doesn't look like Sendmail emits 552 or 
>>> treats it as 442 if received from other MTA.
>>> Postfix code has this commented out with a note that this workaround 
>>> creates more problems than it solves, due to other meaning of 552.
>>>
>>> Do people have information about other MTAs (not necessarily open 
>>> source) on this topic?
>>
>> Exim:
>>
>>   As a server, there is a configuration option (default: 452)
>>   for too-many-recipients.
>>   The documentation describing it doesn't mention standards.
>>   553 is emitted for other conditions.
>>
>>   As a client, there is no special handling for a 552; the initial
>>   5 is taken as for any other 5xx.
> 
> Hmmm.. why should this be a temporary failure?
> 
>   lmprintf("550 Too many invalid user RCPT's sent. Exiting.\r\n");
> 
> Permanent failure seems to be the proper response, otherwise an email 
> client MAY foolishly keep trying to send to the whole list again and 
> again..
> 
> And of course, another MTA may as well, when we KNOW it will fail the 
> next time and the next time..
> 
> Sorry, someone will have to enlighten me..
> 
> However, it should be noted.. there 'could' be alternate cases, where 
> for instance, in environments with rate limiters, it could be different 
> for authenticated connections (outbound rate limiters) vs inbound rate 
> limiting (MTA->MTA) vs system capabilities (Max memory limits etc 
> triggered by too many RCPTS)
> 
> I don't think even in MTA-MTA traffic we want it treated as a temporary 
> error, why keep trying to perform an action that will not succeed.

Oh, to avoid confusion.. MagicMail SMTP returns..

rcpt_checks/max_rcpts.c:    return "452 Too many recipients (#4.5.3.1)";

However, the question remains.. why should it be temporary? We have 
always just done this according to RFC, but it doesn't seem logical, as 
the remote client/MTA will just queue up that batch for retry, no?



-- 
"Catch the Magic of Linux..."
------------------------------------------------------------------------
Michael Peddemors, President/CEO LinuxMagic Inc.
Visit us at http://www.linuxmagic.com @linuxmagic
A Wizard IT Company - For More Info http://www.wizard.ca
"LinuxMagic" a Registered TradeMark of Wizard Tower TechnoServices Ltd.
------------------------------------------------------------------------
604-682-0300 Beautiful British Columbia, Canada

This email and any electronic data contained are confidential and intended
solely for the use of the individual or entity to which they are addressed.
Please note that any views or opinions presented in this email are solely
those of the author and are not intended to represent those of the company.