• Re: JamNNTPd Corrupting Message Bases

    From Warpslide@21:3/110 to Accession on Wed Jan 17 19:28:58 2024
    On Wednesday January 17 2024, Accession said the following...

    Ok, I spun up a Ubuntu 16 32bit VM, compiled JamNNTPd there and
    copied the binaries over and it seems to be working much better.

    X-SMAPI-Control: @PID: JamNNTPd/Linux 1

    Looks like you're using Johan's version now? Now that you have it
    working, you may want to use 1.3 instead.

    I've just been using this one:
    https://github.com/ftnapps/jamnntpd

    The page references v1.3 but when I git clone it, I guess I'm getting v1?

    Is there another place to get 1.3?

    And copied what binaries over to where? Or did you mean config files?
    Cuz you definitely shouldn't be copying binaries from one architecture
    to another. ;)

    I compiled on Ubuntu 16 32bit and copied the binaries over to Ubuntu 22 64bit. Crude but effective. :)

    The MODE READER patch/hack was posted to the JAMNNTPD echo on Fidonet earlier today. As for the IPv6 stuff, here's the diffs I used to patch mine. You'll notice this is from an even more modified version that
    I'm currently trying to get my hands on, but the guy has been
    unreachable for awhile.

    Cool, I'll check that out this evening.

    That said, you can go to the lines mentioned, and then scroll a little
    bit for the exact lines you need to remove. They won't be on the exact lines mentioned and some lines calling for removal may not even be in
    the original code at all (like lines containing cfg_hostname and cfg_ipaddr, for example), since these diffs are from a more modified version. Only remove (-) and add (+) the lines specified, or it won't work. And some lines definitely wrapped below when I pasted it.

    I've never manually patched something before, this sounds more like a weekend thing! ;)

    Right now I'm just putting the IPv4 addy in the clients which seems to work well enough.

    And make sure sysctl net.ipv6.bindv6only=0 is set for ipv4 to work as well.

    Good luck!

    Thanks so much for your help with this, much appreciated!


    Jay

    ... I want to be cremated as it is my last hope for a smoking hot body
    --- GoldED+/W64-MSVC 1.1.5-b20180707
    * Origin: Northern Realms (21:3/110)
  • From Warpslide@21:3/110 to Accession on Wed Jan 17 20:05:36 2024
    On Wednesday January 17 2024, Accession said the following...

    The MODE READER patch/hack was posted to the JAMNNTPD echo on Fidonet earlier today. As for the IPv6 stuff, here's the diffs I used to patch mine. You'll notice this is from an even more modified version that
    I'm currently trying to get my hands on, but the guy has been
    unreachable for awhile.


    200 Welcome to JamNNTPd/Linux 1.3 (posting may or may not be allowed,
    try your luck)
    < AUTHINFO USER warpslide
    381 Received login name, now send password
    < AUTHINFO PASS ...
    Logged in as warpslide
    281 Authentication accepted
    < MODE READER
    200 Server ready - posting allowed
    < LIST ACTIVE
    215 List of newsgroups follows
    FSX_TST 1004 1 y
    FSX_BBS 839 1 y
    .
    < LIST NEWSGROUPS
    215 List of newsgroups follows
    FSX_TST
    FSX_BBS
    .

    Thanks again, you're awesome!


    Jay

    ... I want to be cremated as it is my last hope for a smoking hot body
    --- GoldED+/W64-MSVC 1.1.5-b20180707
    * Origin: Northern Realms (21:3/110)
  • From Accession@21:1/200 to Warpslide on Wed Jan 17 21:18:44 2024
    Hello Warpslide,

    On Thu, 18 Jan 2024 01:28:58 -0500, you wrote:

    I've just been using this one:
    https://github.com/ftnapps/jamnntpd

    The page references v1.3 but when I git clone it, I guess I'm getting v1?

    Is there another place to get 1.3?

    I would imagine you're using the right one. I took a look at nntpserv.h and it shows:

    #define SERVER_NAME "JamNNTPd/" PLATFORM_NAME
    #define SERVER_VERSION "1.3"
    #define SERVER_PIDVERSION "1"

    So that's why it's showing you using Jamnntpd/Linux 1 instead of 1.3. In most other versions those two numbers are the same. Not a big deal, though.

    I compiled on Ubuntu 16 32bit and copied the binaries over to Ubuntu 22 64bit. Crude but effective. :)

    Ah, as long as it worked, I guess you're all good!

    I actually tried enabling multilib on my 64bit Archlinux, and installed 32bit libraries. Then added "-m32" to Makefile.linux in the source directory as well as the jamlib directory.. and after a successful compile of Jamnntpd 1.3, it was a *little* better, but it was still broken. :(

    I think I'm just going to stick with Smapinntpd and see if I can get the From field working properly in Thunderbird, some day.. maybe. lol

    I've never manually patched something before, this sounds more like a weekend thing! ;)

    It's not too difficult. Just pay attention to detail, back up the original, and make sure you don't make any typos. ;)

    Thanks so much for your help with this, much appreciated!

    No problem. Glad you got it working!

    Regards,
    Nick

    ... "Take my advice, I don't use it anyway."
    --- Claws Mail 4.2.0 (GTK 3.24.38; x86_64-w64-mingw32)
    * Origin: _thePharcyde distribution system (Wisconsin) (21:1/200.0)
  • From Accession@21:1/200 to Warpslide on Wed Jan 17 21:21:16 2024
    Hello Warpslide,

    On Thu, 18 Jan 2024 02:05:36 -0500, you wrote:

    < MODE READER
    200 Server ready - posting allowed

    Looks like you got it!

    Thanks again, you're awesome!

    Credit goes to Carlos for that one. ;)

    Regards,
    Nick

    ... "Take my advice, I don't use it anyway."
    --- Claws Mail 4.2.0 (GTK 3.24.38; x86_64-w64-mingw32)
    * Origin: _thePharcyde distribution system (Wisconsin) (21:1/200.0)
  • From Carlos Navarro@nospam@cyberiada.org to All on Fri Jan 19 21:45:27 2024
    Wed, 17 Jan 2024 11:09:50 -0600 "Accession" (21:1/200) wrote:

    The ftnapps repo is probably never going to be updated/maintained
    again. I believe "Jame" or RJ Clay (the main guy) has passed on,

    Yes, :-( I had read about it somewhere else...

    and I'm unsure anyone else that was able to commit to that repo are
    around to do anything about it these days.

    I don't know either. Jame is the only public member of
    github.com/ftnapps

    But I suppose that anyone could fork it or start another repo...

    I can definitely try to take a look and add this patch (or at least
    try to modify it - since most, if not all variables and other wording
    has changed between Jamnntpd and Smapinntpd) to my custom version of Smapinntpd.

    I see there are lots of differences. Good luck! ;-)

    Carlos
  • From Carlos Navarro@nospam@cyberiada.org to All on Fri Jan 19 21:45:55 2024
    Wed, 17 Jan 2024 15:16:42 -0600 "Accession" (21:1/200) wrote:

    With Smapinntpd, I already have a "CHRS: UTF-8 4" kludge fix (which
    is kind of like the one you posted today), I've also added IPv6
    support, and I just today added your fix for MODE READER, although
    I'm unsure Smapinntpd actually needed it since I haven't seen that
    error in the logs since I started using it.

    I had to fix the MODE READER issue so that I could access my JamNNTPd
    server with PhoNews, an Android app.

    Carlos
  • From Warpslide@21:3/110 to Accession on Fri Jan 19 17:28:10 2024
    On Wed, 17 Jan 2024 17:32:32 -0600
    "Accession -> Warpslide" <0@200.1.21> wrote:

    As for the IPv6 stuff, here's the diffs I used to patch mine.

    And make sure sysctl net.ipv6.bindv6only=0 is set for ipv4 to work as
    well.

    It looks like I didn't muck it up too badly...

    19-Jan-24 17:13:07 JamNNTPd/Linux 1.3 is running on port 5000
    19-Jan-24 17:13:07 Compiled Jan 19 2024 16:56:18
    19-Jan-24 17:16:20 (2607:fea8:ab00:8b4::2) Connection established to 2607:fea8:ab00:8b4:7de8:d952:efad:1dfd
    (2607:fea8:ab00:8b4::2) > 200 Welcome to JamNNTPd/Linux 1.3/IPv6
    (posting may be allowed)
    (2607:fea8:ab00:8b4::2) < AUTHINFO USER warpslide
    (2607:fea8:ab00:8b4::2) > 381 Received login name, now send password (2607:fea8:ab00:8b4::2) < AUTHINFO PASS ...
    19-Jan-24 17:16:20 (2607:fea8:ab00:8b4::2) Logged in as warpslide (2607:fea8:ab00:8b4::2) > 281 Authentication accepted
    (2607:fea8:ab00:8b4::2) < MODE READER
    (2607:fea8:ab00:8b4::2) > 200 Server ready - posting allowed (2607:fea8:ab00:8b4::2) < GROUP NETMAIL
    (2607:fea8:ab00:8b4::2) > 211 17 1 17 NETMAIL Group selected (2607:fea8:ab00:8b4::2) < GROUP fsx_bbs
    (2607:fea8:ab00:8b4::2) > 211 849 1 849 fsx_bbs Group selected (2607:fea8:ab00:8b4::2) < GROUP min_hub
    (2607:fea8:ab00:8b4::2) > 211 88 1 88 min_hub Group selected (2607:fea8:ab00:8b4::2) < GROUP PERSONAL.MAIL
    (2607:fea8:ab00:8b4::2) > 211 1 1 1 PERSONAL.MAIL Group selected (2607:fea8:ab00:8b4::2) < GROUP NNTPTEST
    (2607:fea8:ab00:8b4::2) > 211 3 1 3 NNTPTEST Group selected (2607:fea8:ab00:8b4::2) < GROUP jamnntpd
    (2607:fea8:ab00:8b4::2) > 211 42 1 42 jamnntpd Group selected
    19-Jan-24 17:16:21 (2607:fea8:ab00:8b4::2) Connection closed

    One thing I notice is now any IPv4 addresses are prefixed with ::ffff:
    before the actual IP:

    (::ffff:127.0.0.1:48724) < AUTHINFO USER warpslide
    (::ffff:127.0.0.1:48724) > 381 Received login name, now send password (::ffff:127.0.0.1:48724) < AUTHINFO PASS ...
    19-Jan-24 17:18:37 (::ffff:127.0.0.1:48724) Logged in as warpslide (::ffff:127.0.0.1:48724) > 281 Authentication accepted

    But both still work, which is awesome.


    Jay

    ---
    * Origin: Northern Realms (21:3/110)
  • From Accession@21:1/200 to Carlos Navarro on Fri Jan 19 16:41:00 2024
    Hello Carlos,

    On Sat, 20 Jan 2024 03:45:26 +0100, you wrote:

    But I suppose that anyone could fork it or start another repo...

    That's true. Ready to take it on? Jamlib needs 64bit compatibility. There's the first feature request. I had forgotten about that. That is why Jamnntpd hasn't worked for me for years. ;)

    I can definitely try to take a look and add this patch (or at least
    try to modify it - since most, if not all variables and other wording
    has changed between Jamnntpd and Smapinntpd) to my custom version of
    Smapinntpd.

    I see there are lots of differences. Good luck! ;-)

    I saw that too. So I tried a search and replace of the string Krefting added, and when I realized it was in like 5 or 6 different places in Smapinntpd already, figured it probably wouldn't work. Tried it anyways, compiled, and nothing changed. ;)

    Regards,
    Nick

    ... "Take my advice, I don't use it anyway."
    --- Claws Mail 4.2.0 (GTK 3.24.38; x86_64-w64-mingw32)
    * Origin: _thePharcyde distribution system (Wisconsin) (21:1/200.0)
  • From Carlos Navarro@nospam@cyberiada.org to Accession on Sat Jan 20 11:08:43 2024
    Sorry for my previous replies being addressed to All. I tried using
    Claws Mail but it seems it doesn't work well with Synchronet's NNTP
    server (or I didn't set it up properly).

    19/01/2024 23:41, Accession wrote:

    CN> But I suppose that anyone could fork it or start another repo...

    That's true. Ready to take it on? Jamlib needs 64bit compatibility. There's the first feature request. I had forgotten about that. That is why Jamnntpd hasn't worked for me for years. ;)

    :-) Sorry, I'm no C programmer. I'm only doing small, easy patches for
    now...

    Carlos
  • From Accession@21:1/200 to Carlos Navarro on Sat Jan 20 06:11:38 2024
    Hello Carlos,

    On Sat, 20 Jan 2024 17:08:42 +0100, you wrote:

    Sorry for my previous replies being addressed to All. I tried using
    Claws Mail but it seems it doesn't work well with Synchronet's NNTP
    server (or I didn't set it up properly).

    I think Synchronet's NNTP server does that by design? As well as most NNTP related things (it may even be a standard whereas Jam/Smapinntpd breaks that to add some kind of TO field. No worries, I was just trying to decipher which client(s) you were using at the time, since there's no PID or tearline.

    That's true. Ready to take it on? Jamlib needs 64bit compatibility.
    There's the first feature request. I had forgotten about that. That is
    why Jamnntpd hasn't worked for me for years. ;)

    :-) Sorry, I'm no C programmer. I'm only doing small, easy patches for now...

    Same here, which makes fixing things much more difficult. ;)

    Regards,
    Nick

    ... "Take my advice, I don't use it anyway."
    --- Claws Mail 4.2.0 (GTK 3.24.38; x86_64-w64-mingw32)
    * Origin: _thePharcyde distribution system (Wisconsin) (21:1/200.0)