From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Status: No, score=-2.5 required=3.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=no autolearn_force=no version=3.4.6 Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 0CEBB1F406 for ; Fri, 10 Nov 2023 21:32:13 +0000 (UTC) Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-507f1c29f25so3381200e87.1 for ; Fri, 10 Nov 2023 13:32:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699651930; x=1700256730; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=VzAG/vu3gT9gFiQCHMc8kfx0U0umSADn7vRtTzCzCDE=; b=o7+bMnq3LjjyeF4qiPof2/NtvBpc3SSleq1mzfNLpm3q+NGY9V5cqhLQVWRMcWyiSF 9o6lqjtU34HEa/DTdqEFWE3OZru93DGeqvTQgOgZLN24SVbn4nZj1gIKQp/M5gNXjo7c yoNKqVkqNpM3CmdudUXkaznd4MZkYk2Y4rHjrmQzlNwRyBhyhlJKhr5QCQNvHe5Gfawl DWEWebBcVDVB7YvQEUjkE8k2Tt09DvcAq1Tq06WFNo/F51TWWN0NTqR4MP7R6ied4q5T /S1XSeIzJJnxudNdtcRDr2jNPCI8XtESUkhB09m9d9mwZMlLhBkZsDJNxHi+/chT3B2a 23RQ== X-Gm-Message-State: AOJu0YxQkPCaQUWQSJ0eIC5ep70u3RBIvtJhTZ1RxlXIzEQdy+lrj/sT MILIghh+upNP8llsaTaw0zZ6uRalbXg= X-Google-Smtp-Source: AGHT+IGsgrqZHuCHQAT0xR3EoQYCS2ONbsKGkgmtfgCHGb5j3kAN/Lqwa3to8QiwipyUeZikSsLr+g== X-Received: by 2002:a05:6512:208c:b0:503:389d:1cc1 with SMTP id t12-20020a056512208c00b00503389d1cc1mr270883lfr.22.1699651930223; Fri, 10 Nov 2023 13:32:10 -0800 (PST) Received: from rhea.home.vuxu.org (dhcp-138-246-3-113.dynamic.eduroam.mwn.de. [138.246.3.113]) by smtp.gmail.com with ESMTPSA id q4-20020a056000136400b003233b554e6esm168967wrz.85.2023.11.10.13.32.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Nov 2023 13:32:09 -0800 (PST) Received: from localhost (rhea.home.vuxu.org [local]) by rhea.home.vuxu.org (OpenSMTPD) with ESMTPA id f1169af3; Fri, 10 Nov 2023 21:32:09 +0000 (UTC) From: Leah Neukirchen To: Eric Wong Cc: meta@public-inbox.org Subject: Re: [PATCH] public-inbox-mda: use status codes where applicable In-Reply-To: <20231110184306.M509327@dcvr> (Eric Wong's message of "Fri, 10 Nov 2023 18:43:06 +0000") References: <20180612153652.29719-1-leah@vuxu.org> <20231110184306.M509327@dcvr> Date: Fri, 10 Nov 2023 22:32:09 +0100 Message-ID: <87msvlguqu.fsf@vuxu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain List-Id: Eric Wong writes: > Leah Neukirchen wrote: >> Many MTA understand these and map them to sensible SMTP error messages. >> >> Inability to find an inbox results in "5.1.1 user unknown". >> Misformatted messages are rejected with "5.6.0 data format error". >> Unsupported inbox versions are reported as "5.3.5 local configuration error". >> >> All of these are interpreted as permanent failures. > > Resurrecting an ancient topic... > >> diff --git a/script/public-inbox-mda b/script/public-inbox-mda >> index 766d58a..1f1252a 100755 >> --- a/script/public-inbox-mda >> +++ b/script/public-inbox-mda >> @@ -38,8 +38,8 @@ my $config = PublicInbox::Config->new; >> my $recipient = $ENV{ORIGINAL_RECIPIENT}; >> defined $recipient or die "ORIGINAL_RECIPIENT not defined in ENV\n"; > > Btw, our current code still dies if ORIGINAL_RECIPIENT is unset > instead of using a sysexit.h code. > > Should that be changed to EX_USAGE or EX_NOUSER instead of die? I guess EX_NOUSER is appropriate here. -- Leah Neukirchen https://leahneukirchen.org