Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"It's not just a computer -- it's your ass." -- Cal Keegan


computers / news.software.nntp / Re: Improving deliverability of moderated group submissions

SubjectAuthor
* Improving deliverability of moderated group submissionsJulien ÉLIE
+* Re: Improving deliverability of moderated group submissionsRichard Kettlewell
|`- Re: Improving deliverability of moderated group submissionsJulien ÉLIE
`- Re: Improving deliverability of moderated group submissionsFrank

1
Improving deliverability of moderated group submissions

<u07fbu$ick7$1@news.trigofacile.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1599&group=news.software.nntp#1599

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.trigofacile.com!.POSTED.176.143-2-105.abo.bbox.fr!not-for-mail
From: iulius@nom-de-mon-site.com.invalid (Julien ÉLIE)
Newsgroups: news.software.nntp
Subject: Improving deliverability of moderated group submissions
Date: Fri, 31 Mar 2023 22:21:18 +0200
Organization: Groupes francophones par TrigoFACILE
Message-ID: <u07fbu$ick7$1@news.trigofacile.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 31 Mar 2023 20:21:18 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="176.143-2-105.abo.bbox.fr:176.143.2.105";
logging-data="602759"; 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:VNSlG/1CHLnUy3bWS9jMb8ZfAao= sha256:LJfoRyQ1mpfB27o59SzQEHXmvxVjLMddAhjtdfraoFs=
sha1:4pm8+RjRveMhkw0+Bx4VgHTKrZg= sha256:2FrTk7BJ1j9+q7gJBox0BKsGnlYh8IZaDTPOIYkBtJ4=
 by: Julien ÉLIE - Fri, 31 Mar 2023 20:21 UTC

Hi all,

We recently had a discussion in the inn-workers mailing list about mails sent to moderators.
The common command line used to send such mails is:

/usr/lib/sendmail -oi -oem %s

where %s is replaced by the address of the moderator.

Could it be improved to notably receive errors, and how?
As a few mail experts lurk in this newsgroup, I believe we'll manage to find the right options to use :-)

To start the discussion, here is a proposal for an improved wording for the "mta" parameter in INN, based on a feedback from Grant and Russ.

*mta*
The command to use when sending a mail (e.g. mailing postings to
moderators, gatewaying news to mail, sending statistics to the
TOP1000 project, mailing errors and reports to the news
administrator). Some programs use innmail(1) which in turn runs
*mta*. The message, with its headers, will be piped into this *mta*
program. Depending on the calling program, additional header fields
may be added when appropriate, like To, Subject or Auto-Submitted
header fields.

The string %s, if present, will be replaced by the expected
recipient(s) like the e-mail address of the moderator or of a remote
list. It's strongly recommended for this command to end with %s on
the command line rather than, when not present, use the addresses in
the To and Cc header fields of the message, since the latter
approach allows the news server to be abused as a mechanism to send
mail to arbitrary addresses and will result in unexpected behavior.
There is no default value for this parameter; it must be set in
inn.conf or a fatal error message will be logged via syslog.

For most systems, "/usr/lib/sendmail -oi -oem %s" (adjusted for the
correct path to sendmail, and between double quotes) is a good
choice.

To improve deliverability of sent mails, especially moderated group
submissions, you are encouraged to install a modern and
full-featured MTA like Postfix instead of a frugal MTA like
Nullmailer. You'll then be able to configure bounces and benefit
from DSN (Delivery Status Notifications). Useful flags to add, if
your *mta* program supports them, are "-N failure" (to only return a
DSN on failure, not delay), "-F "Newsmaster"" (to set the full name
of the notification), "-fnewsmaster" (to set the envelope sender
address), and "-opnobodyreturn" (a privacy option to only return
headers in the DSN). Feel free to add any other options you think
appropriate.

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?

-odq queues mails. It means that "sendmail -q" should be periodically run to actually send the mails. I wonder whether that's really useful. Maybe a flag should be added to news2mail to configure that behaviour (for backwards compatibility: if -q is given to news2mail, then it does not queue messages).

-fxxx defaults to the newsmaster address or a specific envelope address configured in news2mail.cf for the list.
I suggest to strip an existing -f flag in mta if one is configured in news2mail.cf so as not to conflict with it.

I am unsure -pNNTP:pathhost is really necessary... Any thoughts?

--
Julien ÉLIE

« J'ai six loyaux serviteurs, ils m'ont appris tout ce que je sais : ils
s'appellent quoi, pourquoi, quand, comment, où et qui. » (Rudyard
Kipling)

Re: Improving deliverability of moderated group submissions

<wwvfs9k7gm3.fsf@LkoBDZeT.terraraq.uk>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1600&group=news.software.nntp#1600

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!nntp.terraraq.uk!.POSTED.tunnel.sfere.anjou.terraraq.org.uk!not-for-mail
From: invalid@invalid.invalid (Richard Kettlewell)
Newsgroups: news.software.nntp
Subject: Re: Improving deliverability of moderated group submissions
Date: Fri, 31 Mar 2023 22:31:16 +0100
Organization: terraraq NNTP server
Message-ID: <wwvfs9k7gm3.fsf@LkoBDZeT.terraraq.uk>
References: <u07fbu$ick7$1@news.trigofacile.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: innmantic.terraraq.uk; posting-host="tunnel.sfere.anjou.terraraq.org.uk:172.17.207.6";
logging-data="56150"; mail-complaints-to="usenet@innmantic.terraraq.uk"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:MHk2we4JlaY+AtDFnYK7pWw1dbs=
X-Face: h[Hh-7npe<<b4/eW[]sat,I3O`t8A`(ej.H!F4\8|;ih)`7{@:A~/j1}gTt4e7-n*F?.Rl^
F<\{jehn7.KrO{!7=:(@J~]<.[{>v9!1<qZY,{EJxg6?Er4Y7Ng2\Ft>Z&W?r\c.!4DXH5PWpga"ha
+r0NzP?vnz:e/knOY)PI-
X-Boydie: NO
 by: Richard Kettlewell - Fri, 31 Mar 2023 21:31 UTC

Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:
> We recently had a discussion in the inn-workers mailing list about
> mails sent to moderators. The common command line used to send such
> mails is:
>
> /usr/lib/sendmail -oi -oem %s
>
> where %s is replaced by the address of the moderator.
>
> Could it be improved to notably receive errors, and how?
> As a few mail experts lurk in this newsgroup, I believe we'll manage to find the right options to use :-)

-oem is already about as good as it gets for ensuring errors are
reported as email rather than hidden in a logfile.

[..]
> 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.

(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.

> -odq queues mails. It means that "sendmail -q" should be periodically
> run to actually send the mails. I wonder whether that's really
> useful. Maybe a flag should be added to news2mail to configure that
> behaviour (for backwards compatibility: if -q is given to news2mail,
> then it does not queue messages).

I guess the intent was to arrange that the actual sending happened in a
batch.

--
https://www.greenend.org.uk/rjk/

Re: Improving deliverability of moderated group submissions

<20230331220613.BkS7OEkGShi7@sewer.dizum.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1601&group=news.software.nntp#1601

  copy link   Newsgroups: news.software.nntp
Subject: Re: Improving deliverability of moderated group submissions
References: <u07fbu$ick7$1@news.trigofacile.com>
From: franky@xxx.yyy (Frank)
Message-ID: <20230331220613.BkS7OEkGShi7@sewer.dizum.com>
Date: Fri, 31 Mar 2023 22:06:13 -0000
Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!sewer!news.dizum.net!not-for-mail
Organization: dizum.com - The Internet Problem Provider
X-Abuse: abuse@dizum.com
Injection-Info: sewer.dizum.com - 2001::1/128
 by: Frank - Fri, 31 Mar 2023 22:06 UTC

> I am unsure -pNNTP:pathhost is really necessary... Any thoughts?

I believe its main value is to produce a
Received: from pathhost by mtahost with NNTP
header or similar.

It could be of some diagnostic use to for whoever reads mail headers on the
receiving end.

Re: Improving deliverability of moderated group submissions

<u0co3v$mu32$1@news.trigofacile.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=1603&group=news.software.nntp#1603

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.trigofacile.com!.POSTED.san13-h02-176-143-2-105.dsl.sta.abo.bbox.fr!not-for-mail
From: iulius@nom-de-mon-site.com.invalid (Julien ÉLIE)
Newsgroups: news.software.nntp
Subject: Re: Improving deliverability of moderated group submissions
Date: Sun, 2 Apr 2023 22:21:19 +0200
Organization: Groupes francophones par TrigoFACILE
Message-ID: <u0co3v$mu32$1@news.trigofacile.com>
References: <u07fbu$ick7$1@news.trigofacile.com>
<wwvfs9k7gm3.fsf@LkoBDZeT.terraraq.uk>
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>
 by: Julien ÉLIE - Sun, 2 Apr 2023 20:21 UTC

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)

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor