Article View: news.software.nntp
Article #89196Re: moderators global site?
From: Julien ÉLIE
Date: Fri, 04 Feb 2022 21:52
Date: Fri, 04 Feb 2022 21:52
89 lines
5049 bytes
5049 bytes
Bonsoir Jean-Daniel,
> I fail to make it work
> my summary here (not working)
>
> http://www.dodin.org/wiki/pmwiki.php?n=Doc.ConfigurerINN-2021#toc-9
I've taken the time to read your summary.
OK, I understand what's going on.
I've updated the mailpost man page to explain how it works. You have to use
"-a" and set up readers.conf (to allow the posts of approved articles) and
moderators.
I've taken into account your suggestion of not using "-b /var/tmp" in the
example for the path to a persistent database directory (I now suggest
"-b /var/spool/mailpost" if the default of <pathdb> is not usable).
Normally, mailpost is run by sendmail(8) via an alias entry:
local-mail-wreck-bikes: "|<pathbin in inn.conf>/mailpost
-b /var/spool/mailpost -t /tmp -d local local.bicycles.racing"
The -b and -t flags are useful to change the directories used by
mailpost by default. As a matter of fact, though it is recommended to
run mailpost as the news user, it is as often as not run as another
user, notably the mail user. Therefore, you should make sure to create
and set to be writable by the user that mailpost runs as the
directories where to put the database and the temporary files. Also,
mailpost must be executable by that user.
Instead of /var/spool/mailpost, the mail spool directory can be
specified, or any other directory where the mailpost process has write
access.
A common practice to gateway a newsgroup to a mailing-list is to create
a moderated newsgroup (running for instance the command "ctlinnd
newgroup local.bicycles.racing m") and set the moderation address for
this newsgroup in the moderators file in pathetc to the mailing-list
address. If you add an -a flag in the above example, then on the one
hand, when a message is sent to the mailing-list, mailpost will be run,
mark it as approved, and the message will directly reach the newsgroup.
On the other hand, when a message is posted to the newsgroup, it
normally does not have an Approved header field, so it will be sent (by
nnrpd) to the mailing-list address configured in the moderators file,
which means the message reaches the mailing-list and, like any other
messages posted to the mailing-list, it will be processed by mailpost,
approved, and finally reach the newsgroup.
In combination with:
-a addr
If the -a flag is used, addr (which is usually the e-mail address
of the poster) is added to the article as the body of an Approved
header field. It is useful if one of the newsgroup to which the
article should be posted is moderated. (Of course, this flag
should be added only if you are supposed to auto-approve your
posts.)
Be sure that the reader connection made by inews to post the
article is allowed to post approved articles (see the "A" letter in
the access parameter of access blocks in readers.conf).
And I have mentioned:
-b database
[...]
This option may be required if the
mailpost process does not have write access to the news database
directory (notably when it is executed as the mail user).
[...]
Make sure the specified location exists and is writable by the user
mailpost runs as.
Same addition to "-t tmpdir".
I hope these explanations will be helpful!
--
Julien ÉLIE
« Arrêtez vos salades, Romaines ! » (Astérix)
Technical Details
Message-ID:
<stk760$11585$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-mailReferences:
<sslvl9$9fg$1@dont-email.me> <ssn5ac$dl7$1@gal.iecc.com> <ssn844$en0$3@dont-email.me>Show Full Headers
Complete Article Headers
Message-ID: <stk760$11585$1@news.trigofacile.com> Subject: Re: moderators global site? Date: Fri, 4 Feb 2022 22:52:00 +0100 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <sslvl9$9fg$1@dont-email.me> <ssn5ac$dl7$1@gal.iecc.com> <ssn844$en0$3@dont-email.me> 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: Fri, 4 Feb 2022 21:52:01 -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="1086725"; mail-complaints-to="abuse@trigofacile.com" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.5.1 Cancel-Lock: sha1:azi1e49gW7mGQWWo6/ta1ShSZOM= sha256:jJMbgsHSguYvQNyv6sSXE1xYExBCBMaZRuVK/ZlkGjc= sha1:x/W+QDaXmpStahEy9LpKY99VwEI= sha256:s7pVsLK77rNPuAGt6Ep/3hQs6k77rOPp+9/tbhexduE= Content-Language: fr In-Reply-To: <ssn844$en0$3@dont-email.me>