Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

I can't drive 55.


computers / news.software.nntp / Re: debugging mailpost

SubjectAuthor
* debugging mailpostjdanield
`* Re: debugging mailpostJulien ÉLIE
 `* Re: debugging mailpostjdanield
  `* Re: debugging mailpostyamo'
   `* Re: debugging mailpostjdanield
    +* Re: debugging mailpostGrant Taylor
    |`* Re: debugging mailpostjdanield
    | `* Re: debugging mailpostGrant Taylor
    |  `* Re: debugging mailpostjdanield
    |   `- Re: debugging mailpostGrant Taylor
    `* Re: debugging mailpostjdanield
     +- Re: debugging mailpostJulien ÉLIE
     `* Re: debugging mailpostJulien ÉLIE
      `- Re: debugging mailpostjdanield

1
debugging mailpost

<ssgn9m$gdh$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jdd...@dodin.org (jdanield)
Newsgroups: news.software.nntp
Subject: debugging mailpost
Date: Sat, 22 Jan 2022 11:46:14 +0100
Organization: A noiseless patient Spider
Lines: 47
Message-ID: <ssgn9m$gdh$1@dont-email.me>
Reply-To: jdd@dodin.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 22 Jan 2022 10:46:14 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="94b2a975e223da0a647cde525508eac7";
logging-data="16817"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Z8WqqgV+sg59fl7DBCjbGeqDEylKLXPU="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.4.1
Cancel-Lock: sha1:N20sAAIfGYiSYm3Uls4hj2cte5g=
Content-Language: en-US
 by: jdanield - Sat, 22 Jan 2022 10:46 UTC

Hello,

I have yet an other problem.

My goal is to feed a mailing list to my INN server. I used to do this
with mailman, and mailman manage itself the setup, but now my mailing
list is managed with sympa that don't.

mailing list and usenet server are different machines.

fir test purpose I created a "test@dodin.fr.nf" user in a "test" mailing
list.

I added in /etc/aliases the line:

test: jdd, "| /usr/lib/news/bin/mailpost -a test@culte.org -b /var/tmp
-t /var/tmp -d local culte.test -o /etc/news/mailpost.txt"

jdd receive the mails... but I have no post in culte.test, neither
mailpost.txt local file. One can subscribe to culte.test on dodin.fr.nf
and see the messages posted *directly* on the newsgroups are ok, but no
message from the test list.

I tried to send manually a message to mailpost

cat test.eml | /usr/lib/news/bin/mailpost -a test@culte.org -b /var/tmp
-t /var/tmp -d local culte.test

(as test.eml I just copied a former message)

first time I got:

/etc/news> cat test.eml | /usr/lib/news/bin/mailpost -a test@culte.org
-b /var/tmp -t /var/tmp -d local culte.test
inews failed: inews: warning: What server? inews: article will be spooled

if I repeat the command, I get:

/etc/news> cat test.eml | /usr/lib/news/bin/mailpost -a test@culte.org
-b /var/tmp -t /var/tmp -d local culte.test
Duplicate article <sympa.1642846923.6555.653@culte.org>.

so something works. But what is the "server" mailpost asks for? inews
problem?

thanks
jdd

Re: debugging mailpost

<ssgnvk$1ld1$1@news.trigofacile.com>

  copy mid

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

  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: iul...@nom-de-mon-site.com.invalid (Julien ÉLIE)
Newsgroups: news.software.nntp
Subject: Re: debugging mailpost
Date: Sat, 22 Jan 2022 11:57:56 +0100
Organization: Groupes francophones par TrigoFACILE
Message-ID: <ssgnvk$1ld1$1@news.trigofacile.com>
References: <ssgn9m$gdh$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 22 Jan 2022 10:57:56 -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="54689"; 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.0
Cancel-Lock: sha1:8YKt2IQj/QzT5VZF6XjjgIoUqyM= sha256:yCApLvIr13e6fS7sK5LuIkroY9RAf6wbT9+qSzfUm0I=
sha1:qIpZ+6TEuOsSNtPyeL1Q68UtY00= sha256:QUXA1GlwigEogVQG/VuBZNSEH2Z7qwHN8it2ccfGmro=
Content-Language: fr
In-Reply-To: <ssgn9m$gdh$1@dont-email.me>
 by: Julien ÉLIE - Sat, 22 Jan 2022 10:57 UTC

Bonjour Jean-Daniel,

> /etc/news> cat test.eml | /usr/lib/news/bin/mailpost -a test@culte.org
> -b /var/tmp -t /var/tmp -d local culte.test
> inews failed: inews: warning: What server? inews: article will be spooled
>
> so something works. But what is the "server" mailpost asks for? inews
> problem?

I keep telling you that your installation is not yet finished, but do
not listen.
Did you read CHECKLIST?

https://www.eyrie.org/~eagle/software/inn/docs/checklist.html

"""
Start with inn.conf; you must fill in [...] the NNTP server to use for
posts (server is commonly set to localhost).
"""

--
Julien ÉLIE

« Moi, je n'ai pas goûté le sel de cette plaisanterie. » (Astérix)

Re: debugging mailpost

<ssgtdv$mk7$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jdd...@dodin.org (jdanield)
Newsgroups: news.software.nntp
Subject: Re: debugging mailpost
Date: Sat, 22 Jan 2022 13:30:55 +0100
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <ssgtdv$mk7$1@dont-email.me>
References: <ssgn9m$gdh$1@dont-email.me> <ssgnvk$1ld1$1@news.trigofacile.com>
Reply-To: jdd@dodin.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 22 Jan 2022 12:30:55 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="94b2a975e223da0a647cde525508eac7";
logging-data="23175"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19M3y0cNYjwd5lNVWIEPJki+b4S671TwhE="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.4.1
Cancel-Lock: sha1:xVwwWa+CdlueM3Ty3nJh5xYx1ro=
In-Reply-To: <ssgnvk$1ld1$1@news.trigofacile.com>
Content-Language: en-US
 by: jdanield - Sat, 22 Jan 2022 12:30 UTC

Le 22/01/2022 à 11:57, Julien ÉLIE a écrit :

> I keep telling you that your installation is not yet finished, but do
> not listen.

of course I do

> Did you read CHECKLIST?

yes

>
> https://www.eyrie.org/~eagle/software/inn/docs/checklist.html
>
> """
> Start with inn.conf; you must fill in [...] the NNTP server to use for
> posts (server is commonly set to localhost).
> """
>
well, it's localhost as default, why don't this works? the error is no
more the same if I give full domain name,

> cat test.eml | /usr/lib/news/bin/mailpost -a test@culte.org -b
/var/tmp -t /var/tmp -d local culte.test
inews failed: inews: cannot send article to server: 441 You are not
allowed to approve postings inews: article not posted

this is from hand, of course still no result from the mailing list :-(

sorry
jdd

Re: debugging mailpost

<ssjd55$ct3$1@rasp.pasdenom.info>

  copy mid

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

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!news.niel.me!pasdenom.info!.POSTED.2a01:e0a:21:ea80:e9d9:8793:c9a0:4846!not-for-mail
From: yam...@beurdin.invalid (yamo')
Newsgroups: news.software.nntp
Subject: Re: debugging mailpost
Date: Sun, 23 Jan 2022 12:11:33 +0100
Organization: Serveur de salon
Message-ID: <ssjd55$ct3$1@rasp.pasdenom.info>
References: <ssgn9m$gdh$1@dont-email.me> <ssgnvk$1ld1$1@news.trigofacile.com>
<ssgtdv$mk7$1@dont-email.me>
Reply-To: yamo@groumpf.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 23 Jan 2022 11:11:33 -0000 (UTC)
Injection-Info: rasp.pasdenom.info; posting-account="stephane"; posting-host="2a01:e0a:21:ea80:e9d9:8793:c9a0:4846";
logging-data="13219"; mail-complaints-to="abuse@pasdenom.info"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
Firefox/68.0 SeaMonkey/2.53.10.2
Cancel-Lock: sha1:Gkg0Q3DN8w4GhlA6ct8lSpgnjow=
X-Seamonkey: <https://www.seamonkey-project.org/>
In-Reply-To: <ssgtdv$mk7$1@dont-email.me>
 by: yamo' - Sun, 23 Jan 2022 11:11 UTC

Hi,

jdanield a tapoté le 22/01/2022 13:30:
> well, it's localhost as default, why don't this works? the error is no
> more the same if I give full domain name,

It may be a wrong configuration of your fqdn?

On my server :
$ hostname
rasp.pasdenom.info

But some commands (maybe inews) will by default (I don't know why) speak
with news.pasdenom.info

--
Stéphane

Re: debugging mailpost

<ssjmfs$lso$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jdd...@dodin.org (jdanield)
Newsgroups: news.software.nntp
Subject: Re: debugging mailpost
Date: Sun, 23 Jan 2022 14:50:52 +0100
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <ssjmfs$lso$1@dont-email.me>
References: <ssgn9m$gdh$1@dont-email.me> <ssgnvk$1ld1$1@news.trigofacile.com>
<ssgtdv$mk7$1@dont-email.me> <ssjd55$ct3$1@rasp.pasdenom.info>
Reply-To: jdd@dodin.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 23 Jan 2022 13:50:52 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="a7e507426b5462450c156394fbe2d074";
logging-data="22424"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+fzkgcScn3kPPlUUb1bCGj1Lt45Fep7Xw="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.4.1
Cancel-Lock: sha1:nsMxpSAc8ih8RfqEPbAK4NGIGKQ=
In-Reply-To: <ssjd55$ct3$1@rasp.pasdenom.info>
Content-Language: en-US
 by: jdanield - Sun, 23 Jan 2022 13:50 UTC

Le 23/01/2022 à 12:11, yamo' a écrit :
> Hi,
>
> jdanield a tapoté le 22/01/2022 13:30:
>> well, it's localhost as default, why don't this works? the error is no
>> more the same if I give full domain name,
>
> It may be a wrong configuration of your fqdn?

dunno :-(. I restored "localhost", rereading the doc it says "mostly
used", not "default". As fdqn, I often wonder id it's the domain name
(ie dodin.fr.nf) or including the hostname (here: ns507557)

>
> On my server :
> $ hostname
> rasp.pasdenom.info
>
> But some commands (maybe inews) will by default (I don't know why) speak
> with news.pasdenom.info
>
>
may be some alias to add to /etc/hosts?

thanks
jdd

Re: debugging mailpost

<ssk67h$edi$1@tncsrv09.home.tnetconsulting.net>

  copy mid

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

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!tncsrv06.tnetconsulting.net!tncsrv09.home.tnetconsulting.net!.POSTED.alpha.home.tnetconsulting.net!not-for-mail
From: gtay...@tnetconsulting.net (Grant Taylor)
Newsgroups: news.software.nntp
Subject: Re: debugging mailpost
Date: Sun, 23 Jan 2022 11:19:35 -0700
Organization: TNet Consulting
Message-ID: <ssk67h$edi$1@tncsrv09.home.tnetconsulting.net>
References: <ssgn9m$gdh$1@dont-email.me> <ssgnvk$1ld1$1@news.trigofacile.com>
<ssgtdv$mk7$1@dont-email.me> <ssjd55$ct3$1@rasp.pasdenom.info>
<ssjmfs$lso$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 23 Jan 2022 18:19:29 -0000 (UTC)
Injection-Info: tncsrv09.home.tnetconsulting.net; posting-host="alpha.home.tnetconsulting.net:198.18.18.251";
logging-data="14770"; mail-complaints-to="newsmaster@tnetconsulting.net"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
In-Reply-To: <ssjmfs$lso$1@dont-email.me>
Content-Language: en-US
 by: Grant Taylor - Sun, 23 Jan 2022 18:19 UTC

On 1/23/22 6:50 AM, jdanield wrote:
> As fdqn, I often wonder id it's the domain name (ie dodin.fr.nf) or
> including the hostname (here: ns507557)

FQDN is the Fully Qualified Domain Name, meaning that it's supposed to
be the entire name. E.g. ns507557.dodin.fr.nf from your example.

IMHO, the output of `hostname` (without any parameters) /should/ be the
FQDN. Some people / Distributions (Debian) say that the output of
`hostname` should be unqualified.

There is a reason that Bash and Zsh have different variables for the
base name and the FQDN for use in the prompt and elsewhere. These
variables have the same value if the hostname doesn't contain the FQDN
and have the expected different values if the hostname does contain the
FQDN.

Bash:
\h the hostname up to the first `.'
\H the hostname

Zsh:
%m The hostname up to the first `.'.
%M The full machine hostname.

There's also the fact that every commercial Unix distribution that I've
checked have the FQDN in the hostname.

ProTip: use the fqdn for the hostname.

--
Grant. . . .
unix || die

Re: debugging mailpost

<ssk6ni$9rm$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jdd...@dodin.org (jdanield)
Newsgroups: news.software.nntp
Subject: Re: debugging mailpost
Date: Sun, 23 Jan 2022 19:28:01 +0100
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <ssk6ni$9rm$1@dont-email.me>
References: <ssgn9m$gdh$1@dont-email.me> <ssgnvk$1ld1$1@news.trigofacile.com>
<ssgtdv$mk7$1@dont-email.me> <ssjd55$ct3$1@rasp.pasdenom.info>
<ssjmfs$lso$1@dont-email.me> <ssk67h$edi$1@tncsrv09.home.tnetconsulting.net>
Reply-To: jdd@dodin.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 23 Jan 2022 18:28:02 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="a7e507426b5462450c156394fbe2d074";
logging-data="10102"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/MLC1S5VZgaA0KbfAHdlwdz4kf87SiNYo="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.4.1
Cancel-Lock: sha1:Qkf9kkpba9nohSPlWYmEZVWgnVg=
In-Reply-To: <ssk67h$edi$1@tncsrv09.home.tnetconsulting.net>
Content-Language: fr
 by: jdanield - Sun, 23 Jan 2022 18:28 UTC

Le 23/01/2022 à 19:19, Grant Taylor a écrit :
> On 1/23/22 6:50 AM, jdanield wrote:
>> As fdqn, I often wonder id it's the domain name (ie dodin.fr.nf) or
>> including the hostname (here: ns507557)
>
> FQDN is the Fully Qualified Domain Name, meaning that it's supposed to
> be the entire name. E.g. ns507557.dodin.fr.nf from your example.

yes, sound reasonable
>
> IMHO, the output of `hostname` (without any parameters) /should/ be the
> FQDN. Some people / Distributions (Debian) say that the output of
> `hostname` should be unqualified.

my openSUSE gives only

# hostname
ns507557

when /et/hosts have (now - the order of the domains names don't seems to
be relevant:

127.0.0.1 localhost dodin.fr.nf ns507557.dodin.fr.nf news.dodin.fr.nf

jdd

Re: debugging mailpost

<ssk772$de7$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jdd...@dodin.org (jdanield)
Newsgroups: news.software.nntp
Subject: Re: debugging mailpost
Date: Sun, 23 Jan 2022 19:36:18 +0100
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <ssk772$de7$1@dont-email.me>
References: <ssgn9m$gdh$1@dont-email.me> <ssgnvk$1ld1$1@news.trigofacile.com>
<ssgtdv$mk7$1@dont-email.me> <ssjd55$ct3$1@rasp.pasdenom.info>
<ssjmfs$lso$1@dont-email.me>
Reply-To: jdd@dodin.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 23 Jan 2022 18:36:18 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="a7e507426b5462450c156394fbe2d074";
logging-data="13767"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18meqWcaewOOs1/am92UnsI4OyBiCzuvC4="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.4.1
Cancel-Lock: sha1:2Du0wrlrJw2stLETIo97hAUl+Ys=
In-Reply-To: <ssjmfs$lso$1@dont-email.me>
Content-Language: en-US
 by: jdanield - Sun, 23 Jan 2022 18:36 UTC

Le 23/01/2022 à 14:50, jdanield a écrit :

> may be some alias to add to /etc/hosts?
>

I added them but it don't seems to have made things better, but... I
received during my test session one message with a hint:

/usr/lib/news/bin/mailpost culte.test". Command output: Database
directory /var/lib/news is not writable

I was very surprised as I just did a full test with

inncheck -a -v -f --pedantic --perm

and applied all the patchs needed

(as advertised in checklist) so /var/lib/news was already owned by news:news

I had to make it chmod 777 and now it works.

I just wonder if this is not too unsecure?

thanks
jdd

Re: debugging mailpost

<ssn9g3$bub5$2@news.trigofacile.com>

  copy mid

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

  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: iul...@nom-de-mon-site.com.invalid (Julien ÉLIE)
Newsgroups: news.software.nntp
Subject: Re: debugging mailpost
Date: Mon, 24 Jan 2022 23:33:39 +0100
Organization: Groupes francophones par TrigoFACILE
Message-ID: <ssn9g3$bub5$2@news.trigofacile.com>
References: <ssgn9m$gdh$1@dont-email.me> <ssgnvk$1ld1$1@news.trigofacile.com>
<ssgtdv$mk7$1@dont-email.me> <ssjd55$ct3$1@rasp.pasdenom.info>
<ssjmfs$lso$1@dont-email.me> <ssk772$de7$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 24 Jan 2022 22:33:39 -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="391525"; 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.0
Cancel-Lock: sha1:ouxl+u+rgeb1cIq6yIIrdmkaXI8= sha256:3Oum9gNwUbl8+7nLboQHe3vDnuhjsCkSCKnBdy58sOc=
sha1:A5jiUXLsX1TBuc6eOugnTKMHkgY= sha256:hSd77427lFi39pZZvx94jF1ElFKkpNmlCckJxVSMi9g=
Content-Language: fr
In-Reply-To: <ssk772$de7$1@dont-email.me>
 by: Julien ÉLIE - Mon, 24 Jan 2022 22:33 UTC

Bonjour Jean-Daniel,

> I added them but it don't seems to have made things better, but... I
> received during my test session one message with a hint:
>
> /usr/lib/news/bin/mailpost culte.test". Command output: Database
> directory /var/lib/news is not writable
>
> I had to make it chmod 777 and now it works.
>
> I just wonder if this is not too unsecure?

Maybe you could just setuid mailpost? (It will then run as the news
user and have access to the database.)

--
Julien ÉLIE

« Il y a deux sortes de justice : vous avez l'avocat qui connaît bien la
loi, et l'avocat qui connaît bien le juge ! » (Coluche)

Re: debugging mailpost

<ssnbhq$bvna$1@news.trigofacile.com>

  copy mid

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

  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: iul...@nom-de-mon-site.com.invalid (Julien ÉLIE)
Newsgroups: news.software.nntp
Subject: Re: debugging mailpost
Date: Tue, 25 Jan 2022 00:08:42 +0100
Organization: Groupes francophones par TrigoFACILE
Message-ID: <ssnbhq$bvna$1@news.trigofacile.com>
References: <ssgn9m$gdh$1@dont-email.me> <ssgnvk$1ld1$1@news.trigofacile.com>
<ssgtdv$mk7$1@dont-email.me> <ssjd55$ct3$1@rasp.pasdenom.info>
<ssjmfs$lso$1@dont-email.me> <ssk772$de7$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 24 Jan 2022 23:08:42 -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="392938"; 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.0
Cancel-Lock: sha1:q3crbL9PlH9T859bPqfLPicF2vg= sha256:IX2BbZPQ7tHdohDTuDx8di+am6C1kp6ztChEPtswGgs=
sha1:zLpu8U4MrHEf02M/U+k8onKuuk4= sha256:O4H2zi++V1JMS0o/MiQ9evEEKn9fnO79WHpRtpZS6aw=
Content-Language: fr
In-Reply-To: <ssk772$de7$1@dont-email.me>
 by: Julien ÉLIE - Mon, 24 Jan 2022 23:08 UTC

Bonjour Jean-Daniel,

> /usr/lib/news/bin/mailpost culte.test". Command output: Database
> directory /var/lib/news is not writable
>
> I was very surprised as I just did a full test with
>
> inncheck -a -v -f --pedantic --perm
>
> and applied all the patchs needed
>
> (as advertised in checklist) so /var/lib/news was already owned by
> news:news

Incidentally, I see that you changed the "-b /var/tmp" option given in
the man page, and also in your previous messages in this thread.

That's why you faced these problems of write access.

Please note that the documentation says:
https://www.eyrie.org/~eagle/software/inn/docs/mailpost.html

"Instead of /var/tmp, the mail spool directory can be specified, or any
other directory where the mailpost process has write access."

.... and here you changed the "-b /var/tmp" example to a directory where
mailpost (run as the mail user here) does not have write access...

--
Julien ÉLIE

« Il y a deux sortes de justice : vous avez l'avocat qui connaît bien la
loi, et l'avocat qui connaît bien le juge ! » (Coluche)

Re: debugging mailpost

<ssni4g$2sp$1@tncsrv09.home.tnetconsulting.net>

  copy mid

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

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!rocksolid2!i2pn.org!weretis.net!feeder6.news.weretis.net!tncsrv06.tnetconsulting.net!tncsrv09.home.tnetconsulting.net!.POSTED.alpha.home.tnetconsulting.net!not-for-mail
From: gtay...@tnetconsulting.net (Grant Taylor)
Newsgroups: news.software.nntp
Subject: Re: debugging mailpost
Date: Mon, 24 Jan 2022 18:01:11 -0700
Organization: TNet Consulting
Message-ID: <ssni4g$2sp$1@tncsrv09.home.tnetconsulting.net>
References: <ssgn9m$gdh$1@dont-email.me> <ssgnvk$1ld1$1@news.trigofacile.com>
<ssgtdv$mk7$1@dont-email.me> <ssjd55$ct3$1@rasp.pasdenom.info>
<ssjmfs$lso$1@dont-email.me> <ssk67h$edi$1@tncsrv09.home.tnetconsulting.net>
<ssk6ni$9rm$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 25 Jan 2022 01:01:04 -0000 (UTC)
Injection-Info: tncsrv09.home.tnetconsulting.net; posting-host="alpha.home.tnetconsulting.net:198.18.18.251";
logging-data="2969"; mail-complaints-to="newsmaster@tnetconsulting.net"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
In-Reply-To: <ssk6ni$9rm$1@dont-email.me>
Content-Language: en-US
 by: Grant Taylor - Tue, 25 Jan 2022 01:01 UTC

On 1/23/22 11:28 AM, jdanield wrote:
> my openSUSE gives only
>
> # hostname
> ns507557

I would argue that's wrong and that it should give you ns507557.dodin.fr.nf.

> when /et/hosts have (now - the order of the domains names don't seems to
> be relevant:
>
> 127.0.0.1 localhost dodin.fr.nf ns507557.dodin.fr.nf news.dodin.fr.nf

Why do you have what appears to be a domain name, dodin.fr.nf, as a
hostname alias?

The format of the hosts file is:

<IP> <canonical name> <alias>

Where you can have any number of aliases. (I assume there's an upper
bound, but I've never found it, nor looked for it.)

--
Grant. . . .
unix || die

Re: debugging mailpost

<ssoadr$g7h$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jdd...@dodin.org (jdanield)
Newsgroups: news.software.nntp
Subject: Re: debugging mailpost
Date: Tue, 25 Jan 2022 08:55:39 +0100
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <ssoadr$g7h$1@dont-email.me>
References: <ssgn9m$gdh$1@dont-email.me> <ssgnvk$1ld1$1@news.trigofacile.com>
<ssgtdv$mk7$1@dont-email.me> <ssjd55$ct3$1@rasp.pasdenom.info>
<ssjmfs$lso$1@dont-email.me> <ssk67h$edi$1@tncsrv09.home.tnetconsulting.net>
<ssk6ni$9rm$1@dont-email.me> <ssni4g$2sp$1@tncsrv09.home.tnetconsulting.net>
Reply-To: jdd@dodin.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 25 Jan 2022 07:55:39 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="e69cbf6828b2f591b5dc6d02538ae985";
logging-data="16625"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/J40N7jVryPSrl5OCtWNvq8BtDCUfI79U="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.4.1
Cancel-Lock: sha1:lw/TRmtZG+6vqygUDD4lRarsnmY=
In-Reply-To: <ssni4g$2sp$1@tncsrv09.home.tnetconsulting.net>
Content-Language: en-US
 by: jdanield - Tue, 25 Jan 2022 07:55 UTC

Le 25/01/2022 à 02:01, Grant Taylor a écrit :
> On 1/23/22 11:28 AM, jdanield wrote:
>> my openSUSE gives only
>>
>> # hostname
>> ns507557
>
> I would argue that's wrong and that it should give you ns507557.dodin.fr.nf.

it's the choice of my openSUSE Leap distribution, no idea why

>
>> when /et/hosts have (now - the order of the domains names don't seems to
>> be relevant:
>>
>> 127.0.0.1 localhost dodin.fr.nf ns507557.dodin.fr.nf news.dodin.fr.nf
>
> Why do you have what appears to be a domain name, dodin.fr.nf, as a
> hostname alias?

to try fixing the wrong hostname

:-(
thanks
jdd

Re: debugging mailpost

<ssobr1$p1m$1@dont-email.me>

  copy mid

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

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jdd...@dodin.org (jdanield)
Newsgroups: news.software.nntp
Subject: Re: debugging mailpost
Date: Tue, 25 Jan 2022 09:19:45 +0100
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <ssobr1$p1m$1@dont-email.me>
References: <ssgn9m$gdh$1@dont-email.me> <ssgnvk$1ld1$1@news.trigofacile.com>
<ssgtdv$mk7$1@dont-email.me> <ssjd55$ct3$1@rasp.pasdenom.info>
<ssjmfs$lso$1@dont-email.me> <ssk772$de7$1@dont-email.me>
<ssnbhq$bvna$1@news.trigofacile.com>
Reply-To: jdd@dodin.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 25 Jan 2022 08:19:45 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="e69cbf6828b2f591b5dc6d02538ae985";
logging-data="25654"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18qkebd5dPIz5wFMIba1iK2Lz+SVsNQ8IM="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.4.1
Cancel-Lock: sha1:xjfUwYnqIprWHkL2FuwP/lPmDVE=
In-Reply-To: <ssnbhq$bvna$1@news.trigofacile.com>
Content-Language: en-US
 by: jdanield - Tue, 25 Jan 2022 08:19 UTC

Le 25/01/2022 à 00:08, Julien ÉLIE a écrit :

> Incidentally, I see that you changed the "-b /var/tmp" option given in
> the man page, and also in your previous messages in this thread.

I tested dozen of variations :-(. I got the idea it was the default.
seems not :-(. man page also says: "Two paths are tried by default:
pathtmp as set in inn.conf, and then /var/tmp if pathtmp is not
writable." I wrongly supposed it was the same for db.

that said if the db have to be persistent, /var/tmp may be an unsecure place

> ... and here you changed the "-b /var/tmp" example to a directory where
> mailpost (run as the mail user here) does not have write access...
>

thanks. What I missed completely is "run as the mail user here". This
allowed me also to find mailpost logs in mails logs

that said, my mail<->news system still don't works and I'm asked
elsewhere :-(

thanks
jdd

Re: debugging mailpost

<sspj9m$oqn$1@tncsrv09.home.tnetconsulting.net>

  copy mid

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

  copy link   Newsgroups: news.software.nntp
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!tncsrv06.tnetconsulting.net!tncsrv09.home.tnetconsulting.net!.POSTED.alpha.home.tnetconsulting.net!not-for-mail
From: gtay...@tnetconsulting.net (Grant Taylor)
Newsgroups: news.software.nntp
Subject: Re: debugging mailpost
Date: Tue, 25 Jan 2022 12:33:17 -0700
Organization: TNet Consulting
Message-ID: <sspj9m$oqn$1@tncsrv09.home.tnetconsulting.net>
References: <ssgn9m$gdh$1@dont-email.me> <ssgnvk$1ld1$1@news.trigofacile.com>
<ssgtdv$mk7$1@dont-email.me> <ssjd55$ct3$1@rasp.pasdenom.info>
<ssjmfs$lso$1@dont-email.me> <ssk67h$edi$1@tncsrv09.home.tnetconsulting.net>
<ssk6ni$9rm$1@dont-email.me> <ssni4g$2sp$1@tncsrv09.home.tnetconsulting.net>
<ssoadr$g7h$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 25 Jan 2022 19:33:10 -0000 (UTC)
Injection-Info: tncsrv09.home.tnetconsulting.net; posting-host="alpha.home.tnetconsulting.net:198.18.18.251";
logging-data="25431"; mail-complaints-to="newsmaster@tnetconsulting.net"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
In-Reply-To: <ssoadr$g7h$1@dont-email.me>
Content-Language: en-US
 by: Grant Taylor - Tue, 25 Jan 2022 19:33 UTC

On 1/25/22 12:55 AM, jdanield wrote:
> it's the choice of my openSUSE Leap distribution, no idea why

Nothing dictates that you can't go against your distribution's choice.

I change the hostname on every single Debian / Ubuntu system that I
administer to be the FQDN.

> to try fixing the wrong hostname

Adding the domain name the way you have will only ever be referenced if
you use it as a hostname. I doubt that you ever will.

I'd suggest fixing -- what I consider to be -- the underlying hostname
problem. Many different things will fail in weird ways with incorrect
hostnames. Fix the foundation and you fix, or at least simplify, a lot
of other problems.

--
Grant. . . .
unix || die


computers / news.software.nntp / Re: debugging mailpost

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor