🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #90233

Re: Improving deliverability of moderated group submissions

#90233
From: Julien ÉLIE
Date: Sun, 02 Apr 2023 20:21
51 lines
3310 bytes
Hi Richard and Franck,

Thanks for your messages about the parameters given to sendmail.
All of the current parameters used in the sendmail command run by 
news2mail seem useful to keep.


>> I've seen that we have an exception with the news2mail gatewaying program, which uses additional flags:
>>
>>    <mta without %s> -ee -odq -fxxx -pNNTP:pathhost addresses
>>
>> I don't know what "-ee" means.  Does someone know?  Is it still a useful flag?
> 
> -eX is a historical synonym for -oeX, and -oee means that if an error in
> is encountered when sending the message then it should be reported by an
> email, with the exit status always being 0. Contrast -oem where you get
> errors by mail but (presumably) also a nonzero exit status.

Thanks for the pointer to "-oee"!


> (Assuming the administrator actually wants to see errors) it should
> probably be -oee or -oem depending on what the calling process expects
> from the MTA’s exit status.

Indeed, the "-oee" fits better in the logic of how news2mail treats the 
return statut of the command.

To prevent conflicts in the arguments given to sendmail, I plan on 
ensuring -oem and -f are stripped from the mta command line 
(parameterized in inn.conf), as news2mail uses different values.

      my $sendmail = $INN::Config::mta;
+    # Remove %s and -f from the mta command line (we'll explicitly set
+    # recipients and an envelope sender below).
+    # Remove -oem as we'll set -oee so that sendmail exits with a
+    # non-zero status only if the mail cannot be sent.
      $sendmail =~ s!\s*%s!!;
+    $sendmail =~ s!\s*-f\s*\S*!!;
+    $sendmail =~ s!\s*-oem!!;
      my @command = (
-        split(' ', $sendmail), '-ee', '-odq', "-f$s",
+        split(' ', $sendmail), '-oee', '-odq', "-f$s",
          "-pNNTP:$INN::Config::pathhost", @a
      );

-- 
Julien ÉLIE

« Traversez la rivière en foule, le crocodile ne vous mangera pas. »
   (proverbe malgache)
Technical Details
Message-ID: <u0co3v$mu32$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <u07fbu$ick7$1@news.trigofacile.com> <wwvfs9k7gm3.fsf@LkoBDZeT.terraraq.uk>

Show Full Headers
Complete Article Headers
Message-ID: <u0co3v$mu32$1@news.trigofacile.com>
Subject: Re: Improving deliverability of moderated group submissions
Date: Sun, 2 Apr 2023 22:21:19 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <u07fbu$ick7$1@news.trigofacile.com> <wwvfs9k7gm3.fsf@LkoBDZeT.terraraq.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp
Organization: Groupes francophones par TrigoFACILE
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 2 Apr 2023 20:21:19 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="san13-h02-176-143-2-105.dsl.sta.abo.bbox.fr:176.143.2.105"; logging-data="751714"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.9.1
Cancel-Lock: sha1:/2kka0coYQcKQpXF//2YDytLdpE= sha256:3ei6Ev2jjeBiH71j2JkhEAZuhZBRHiHFPG4/4+k/fl0= sha1:89YolHVQX0bWAcIK8kZJzvpARdo= sha256:Zp48GPOLY9tREr/GbMt5fRTCxoFM3ULrOY3z17WZZnI=
In-Reply-To: <wwvfs9k7gm3.fsf@LkoBDZeT.terraraq.uk>