Send inn-workers mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.isc.org/mailman/listinfo/inn-workers
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of inn-workers digest..."


Today's Topics:

   1. INN with non-email IDs in "From:"? (DataPacRat)
   2. Running INN through a Socks Proxy? (DataPacRat)
   3. Re: INN with non-email IDs in "From:"? (Julien ?LIE)


----------------------------------------------------------------------

Message: 1
Date: Thu, 28 Jul 2016 11:38:06 -0400
From: DataPacRat <[email protected]>
To: [email protected]
Subject: INN with non-email IDs in "From:"?
Message-ID:
        <CAB5WduAD-2ejyZUMyTmL5VcSX=igqzqgzs2pgrgdxqzpb0r...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

I'm gradually putting together the outline for a comm project, in
which I hope some version of INN will be the main component. There is,
however, one item on the "wish list" section of the project's goals
that I don't know how to approach: Modifying INN's source code so that
the "From:" header doesn't have to be an email address, but could be a
Twitter @handle, or a Ricochet address (eg,
ricochet:rs7ce36jsj24ogfw), or an URL pointing to a FaceBook profile
or a vCard, or anything of the sort. (If the From: header could be
expanded to accept URIs, instead of arbitrary text-strings, that would
work well enough for this project.)

I know how to run scripts and edit config files; learning enough about
INN's source to even know which files would have to be altered, let
alone figuring out how to patch them, would probably take more time
than I can allot to the whole project. I'm hoping someone here might
know enough to tell me "Just edit file X line Y and comment out the
'email check' call", or at least point me in the right direction.

So - can you help me with this?


Thank you for your time,
--
DataPacRat
"Then again, I could be wrong."


------------------------------

Message: 2
Date: Thu, 28 Jul 2016 11:48:01 -0400
From: DataPacRat <[email protected]>
To: [email protected]
Subject: Running INN through a Socks Proxy?
Message-ID:
        <cab5wduagtg2aw3brwsrxlol_tahp1epy0c0d0dnn-x0fot1...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

As part of a comm project I'm working on, the front-runner design is
to run INN through a Socks proxy, to tunnel the traffic through a
particular network.

My initial Googling with various combinations of the terms 'inn',
'nntp', 'socks', and 'proxy' has turned up the suggestion of using
3proxy, ala 
https://trac.torproject.org/projects/tor/wiki/doc/TorifyHOWTO/Misc#AnyTCP-basedprotocol
. I'm not entirely confident that that's good advice, so I'm hoping
for a second opinion from people who've spent more time working with
INN - that is, the members of this mailing list.

Do you know anything about how well INN plays with 3proxy?

Do you have any better suggestions for running INN traffic through Socks?

Do you know of any other groups, fora, or lists I could ask these questions on?


Thank you for your time,
--
DataPacRat
"Then again, I could be wrong."


------------------------------

Message: 3
Date: Thu, 28 Jul 2016 22:21:00 +0200
From: Julien ?LIE <[email protected]>
To: [email protected]
Subject: Re: INN with non-email IDs in "From:"?
Message-ID: <[email protected]>
Content-Type: text/plain; charset=windows-1252

Hi DataPacRat,

> I'm gradually putting together the outline for a comm project, in
> which I hope some version of INN will be the main component. There is,
> however, one item on the "wish list" section of the project's goals
> that I don't know how to approach: Modifying INN's source code so that
> the "From:" header doesn't have to be an email address, but could be a
> Twitter @handle, or a Ricochet address (eg,
> ricochet:rs7ce36jsj24ogfw), or an URL pointing to a FaceBook profile
> or a vCard, or anything of the sort. (If the From: header could be
> expanded to accept URIs, instead of arbitrary text-strings, that would
> work well enough for this project.)
> [...]
> I'm hoping someone here might
> know enough to tell me "Just edit file X line Y and comment out the
> 'email check' call", or at least point me in the right direction.
> 
> So - can you help me with this?

I believe you could just edit file nnrpd/post.c and comment out
the following snippet:

    strlcpy(frombuf, HDR(HDR__FROM), sizeof(frombuf));
    /* Unfold the From: header field. */
    for (p = frombuf; p < frombuf + sizeof(frombuf); )
        if ((p = strchr(p, '\n')) == NULL)
            break;
        else
            *p++ = ' ';
    /* Try to rewrite the From: header field in a cleaner format. */
    HeaderCleanFrom(frombuf);
    /* Now perform basic checks of the From: header field.
     * Pass leading '@' chars because they are not part of an address. */
    p = frombuf;
    while (*p == '@') {
        p++;
    }
    p = strchr(p, '@');
    if (p != NULL) {
        p = strrchr(p+1, '.');
        if (p == NULL) {
            if (modgroup)
                free(modgroup);
            return "From: address not in Internet syntax";
        }
    } else {
        if (modgroup)
            free(modgroup);
        return "From: address not in Internet syntax";
    }




I don't see other checks in innd/art.c about the From: header field,
so the post should be accepted.

-- 
Julien ?LIE

? Le chemin le plus court d'un point ? un autre est la ligne droite,
  ? condition que les deux points soient bien en face l'un de
  l'autre. ? (Pierre Dac)


------------------------------

Subject: Digest Footer

_______________________________________________
inn-workers mailing list
[email protected]
https://lists.isc.org/mailman/listinfo/inn-workers

------------------------------

End of inn-workers Digest, Vol 85, Issue 6
******************************************

Reply via email to