Article View: news.software.nntp
Article #91541Re: Cleanfeed example request
From: Roberto CORRADO
Date: Sun, 04 Feb 2024 23:30
Date: Sun, 04 Feb 2024 23:30
92 lines
5070 bytes
5070 bytes
"Ivo Gandolfo" wrote:
> all work fine.
IMHO, ( I'm a dumbass) is wrong a regexp statements on my Slackware(tm) machine, es. exception not managed...
"""
$ /usr/bin/gpgv2 --status-fd=1 --keyring=/etc/inn/pgp/ncmring.gpg test2.txt
[GNUPG:] NEWSIG
gpgv: Firma effettuata dom 4 feb 2024, 22:30:02 CET
gpgv: utilizzando la chiave RSA 570EE1F8CC166E5969A9977BF7A357009C7679D8
[GNUPG:] KEY_CONSIDERED 570EE1F8CC166E5969A9977BF7A357009C7679D8 0
[GNUPG:] SIG_ID NrW6nLCa+J8faWSjNqL+znlHkBA 2024-02-04 1707082202
[GNUPG:] KEY_CONSIDERED 570EE1F8CC166E5969A9977BF7A357009C7679D8 0
[GNUPG:] GOODSIG F7A357009C7679D8 i2pn2-nocem <i2pn2-nocem@i2pn2.org>
gpgv: Firma valida da "i2pn2-nocem <i2pn2-nocem@i2pn2.org>"
[GNUPG:] VALIDSIG 570EE1F8CC166E5969A9977BF7A357009C7679D8 2024-02-04 1707082202 0 4 0 1 10 01 570EE1F8CC166E5969A9977BF7A357009C7679D8
"""
"""
$ /usr/bin/gpgv2 --status-fd=1 --keyring=/etc/inn/pgp/ncmring.gpg test.txt # this is a new sig
[GNUPG:] NEWSIG nocem@usenet.ovh
gpgv: Firma effettuata dom 4 feb 2024, 22:15:01 CET
gpgv: utilizzando la chiave EDDSA 16BEEB50A7A31430DE6A41CE64DD21195789E33A
gpgv: autoritร emittente "nocem@usenet.ovh"
[GNUPG:] KEY_CONSIDERED 16BEEB50A7A31430DE6A41CE64DD21195789E33A 0
[GNUPG:] SIG_ID tHBBdXwOMM0AbTOiZWyT1gKeZBY 2024-02-04 1707081301
[GNUPG:] KEY_CONSIDERED 16BEEB50A7A31430DE6A41CE64DD21195789E33A 0
[GNUPG:] GOODSIG 64DD21195789E33A alfanet <nocem@usenet.ovh>
gpgv: Firma valida da "alfanet <nocem@usenet.ovh>"
[GNUPG:] VALIDSIG 16BEEB50A7A31430DE6A41CE64DD21195789E33A 2024-02-04 1707081301 0 4 0 22 8 01 16BEEB50A7A31430DE6A41CE64DD21195789E33A
"""
"""
$ grep -A20 "#logmsg(\"Command line was: \$INN::Config::gpgv --status-fd=1\"" perl-nocem
#logmsg("Command line was: $INN::Config::gpgv --status-fd=1"
# . ($keyring ? ' --keyring=' . $keyring : '') . " $art", 'debug');
#logmsg("Full PGP output: >>>$_<<<", 'debug');
if (/^\[GNUPG:\]\s+GOODSIG\s+\S+\s+(.*)/m) {
return 1 if $1 =~ /\Q$issuer\E/;
logmsg("Article $msgid: signed by $1 instead of $issuer");
} elsif (/^\[GNUPG:\]\s+NO_PUBKEY\s+(\S+)/m) {
logmsg("Article $msgid: $issuer (ID $1) not in keyring");
} elsif (/^\[GNUPG:\]\s+BADSIG\s+\S+\s+(.*)/m) {
logmsg("Article $msgid: bad signature from $1");
} elsif (/^\[GNUPG:\]\s+BADARMOR/m or /^\[GNUPG:\]\s+UNEXPECTED/m) {
logmsg("Article $msgid: malformed signature");
} elsif (/^\[GNUPG:\]\s+ERRSIG\s+(\S+)/m) {
# safety net: we get there if we don't know about some token
logmsg("Article $msgid: unknown error (ID $1)");
#
logmsg("Command line was: $INN::Config::gpgv --status-fd=1"
. ($keyring ? ' --keyring=' . $keyring : '') . " $art", 'debug');
logmsg("Full PGP output: >>>$_<<<", 'debug');
} else {
"""
grep -A1 -B1 "nocem: Command line was" news.log
Feb 5 00:00:06 gatto nocem: Article <nocembot-fr.0.45327.0000231018@usenet.ovh>: unknown error (ID 64DD21195789E33A)
Feb 5 00:00:06 gatto nocem: Command line was: /usr/bin/gpgv2 --status-fd=1 --keyring=/etc/inn/pgp/ncmring.gpg /var/spool/inn/tmp/nocem.17167
Feb 5 00:00:06 gatto nocem: Full PGP output: >>>[GNUPG:] NEWSIG nocem@usenet.ovh
--
Feb 5 00:20:03 gatto nocem: Article <nocembot-fr.0.45327.0139118981@usenet.ovh>: unknown error (ID 64DD21195789E33A)
Feb 5 00:20:03 gatto nocem: Command line was: /usr/bin/gpgv2 --status-fd=1 --keyring=/etc/inn/pgp/ncmring.gpg /var/spool/inn/tmp/nocem.17167
Feb 5 00:20:03 gatto nocem: Full PGP output: >>>[GNUPG:] NEWSIG nocem@usenet.ovh
"""
Thanks you all and sorry for the bustle
--
Roberto
Technical Details
Message-ID:
<upp6mi$kq6$1@gatto.corradoroberto.it>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:
<upllfo$o4c$1@gatto.corradoroberto.it> <upnuia$921$1@gatto.corradoroberto.it> <upo04e$1388u$2@paganini.bofh.team> <upob6a$tl$1@gatto.corradoroberto.it> <upoch1$22l3$1@nnrp.usenet.blueworldhosting.com> <upofc8$8g7$1@gatto.corradoroberto.it> <upofg9$8h8$1@gatto.corradoroberto.it> <upofte$1388t$1@paganini.bofh.team>Show Full Headers
Complete Article Headers
Message-ID: <upp6mi$kq6$1@gatto.corradoroberto.it> Subject: Re: Cleanfeed example request Date: Mon, 5 Feb 2024 00:30:25 +0100 From: "Roberto CORRADO" <i@secure.corradoroberto.it> References: <upllfo$o4c$1@gatto.corradoroberto.it> <upnuia$921$1@gatto.corradoroberto.it> <upo04e$1388u$2@paganini.bofh.team> <upob6a$tl$1@gatto.corradoroberto.it> <upoch1$22l3$1@nnrp.usenet.blueworldhosting.com> <upofc8$8g7$1@gatto.corradoroberto.it> <upofg9$8h8$1@gatto.corradoroberto.it> <upofte$1388t$1@paganini.bofh.team> 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: NNTPD of domain: corradoroberto.it (localnet) Lines: 93 MIME-Version: 1.0 Content-Type: text/plain; Content-Transfer-Encoding: quoted-printable Injection-Date: Sun, 4 Feb 2024 23:30:26 -0000 (UTC) Cancel-Lock: sha1:u4eCGNvb9PtQlihvRcvjS/uqphA= sha256:5mdFBsg4t20mTK38JdNs4A+eaO/5lMOKhavWZC9d908= X-TYPE: RCS 126 X-MSMail-Priority: Normal X-Newsreader: CatWalker 0126 X-Copyright: The distribution through any means different from X-LDAPD: CORRADO-ROBERTO X-MTA: Sendmail MHS X.400