🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
15 messages
15 total messages Started by Brian Tao Mon, 02 Jun 1997 00:00
"NNTP-Posting-Date", etc. headers
#18163
Author: Brian Tao
Date: Mon, 02 Jun 1997 00:00
67 lines
2586 bytes
    Am I breaking any RFC's or other conventions if I patch INN to
override any reader-supplied date header?  I need to be able to track
down the true identities of posters to a news site I run, and
NNTP-Posting-Host isn't enough.  Rather than adding a new header, I
simply ripped out most of the date header code in nnrpd/post.c and
replaced it something that uses the server's clock (which is
synchronized with various other authentication and accounting
systems).  Any problems with this?

    I would have thought this to be a popular ISP modification, but I
haven't been able to track down an existing patch.


----- cut here -----
*** post.c.orig	Sun Jun  1 19:54:18 1997
--- post.c	Mon Jun  2 00:21:43 1997
***************
*** 265,271 ****
      register HEADER	*hp;
      register char	*p;
      time_t		t;
-     struct tm		*gmt;
      TIMEINFO		Now;
      STRING		error;
  
--- 265,270 ----
***************
*** 301,320 ****
  	return Error;
      }
  
!     if (HDR(_date) == NULL) {
! 	if ((gmt = gmtime(&Now.time)) == NULL)
! 	    return "Can't get the time";
! 	(void)sprintf(datebuff, "%d %3.3s %d %02d:%02d:%02d GMT",
! 	    gmt->tm_mday, &MONTHS[3 * gmt->tm_mon], 1900 + gmt->tm_year,
! 	    gmt->tm_hour, gmt->tm_min, gmt->tm_sec);
! 	HDR(_date) = datebuff;
!     }
!     else {
! 	if ((t = parsedate(HDR(_date), &Now)) == -1)
! 	    return "Can't parse \"Date\" header";
! 	if (t > Now.time + DATE_FUZZ)
! 	    return "Article posted in the future";
!     }
  
      /* Newsgroups are checked later. */
  
--- 300,309 ----
  	return Error;
      }
  
!     /* Ignore any reader-supplied Date header.  (BTT) */
!     t = time((time_t *) 0);
!     (void)strftime(datebuff, 40, "%d %b %Y %T %Z", localtime(&t));
!     HDR(_date) = datebuff;
  
      /* Newsgroups are checked later. */
  
----- cut here -----

-- 
Brian Tao (BT300, taob@netcom.ca)
"Though this be madness, yet there is method in't"

Re: "NNTP-Posting-Date", etc. headers
#18147
Author: Brian Tao
Date: Mon, 02 Jun 1997 00:00
17 lines
1399 bytes
In article <5mu0e0$1gf@nntp02.primenet.com>,  <billy@mix.com> wrote:
>
>You'd probably be happier doing something ala the above in this
>article - the X-Posted-By header uses the ident data plus the actual
>username (account name) is added in () just after that.

    Relying on ident (if you mean RFC1413) won't work here since the
only readers posting from trusted machines running identd are staff.
Everyone else is your typical Win95 or Macintosh PPP dialup user.  All
I really need is an accurate IP address of the client and the time of
posting to pull up the matching RADIUS start/stop records.
-- 
Brian Tao (BT300, taob@netcom.ca)
"Though this be madness, yet there is method in't"

Re: "NNTP-Posting-Date", etc. headers
#18148
Author: Brian Tao
Date: Mon, 02 Jun 1997 00:00
40 lines
2342 bytes
In article <5mtmrn$sm5$1@news.cmc.net>, brian moore <bem@news.cmc.net> wrote:
>
>Dunno: I added (as you can see above) X-CMC-Date for the same reason.
>(Netcom uses X-Netcom-Date).

    I have access to NETCOM's small X-NETCOM-Date patch for INN 1.4,
but for some reason nnrpd simply refuses to insert the header.  I used
the NNTP-Posting-Host entry in the header table (in post.c) as a
template, fiddled around with some of the flags, incremented the
HEADER_DELTA value by 1, etc.  I must be overlooking something rather
obvious, since the code to generate the header itself is trivial.

>I decided to leave the client supplied date (if any) in place in case
>someone ever says "Well, I wrote that at 9pm, how was I to know that
>three hours later the world would be attacked by Martians?") or some
>other time-based thing.

    Gee.  :)

>>     I would have thought this to be a popular ISP modification, but I
>> haven't been able to track down an existing patch.
>
>It's not available from any I've seen.

    Since adding in an NNTP-Posting-Date or X-Posted-Date header
shouldn't break anything, I think there would be a good chance of
including this in the next incremental version of INN.  There appears
to be enough demand for it.

>(Do you read every newsgroup and mailing list I do, Brian? :))

    I dropped out of news a while ago, but I've delurked a few times
recently (and thus probably on every spammer's mailing list, ugh).
I'm on inet-access, but then again I'm sure most people are.  ;-)
-- 
Brian Tao (BT300, taob@netcom.ca)
"Though this be madness, yet there is method in't"

Re: "NNTP-Posting-Date" with patch
#18158
Author: Brian Tao
Date: Mon, 02 Jun 1997 00:00
75 lines
3172 bytes
In article <5mukc1$q3n@tor-nn1-hb0.netcom.ca>, Brian Tao <taob@nbc.netcom.ca> wrote:
>
> I must be overlooking something rather obvious, since the code to
> generate the header itself is trivial.

    Yep, it was something obvious.  ;-)  The HEADER_DELTA value in
nnrpd/post.c is off by one in the INN 1.5.1 distribution.  It is an
offset value that should point to the next available array entry after
the predefined set of headers.  There are 21 headers defined, but
HEADER_DELTA is set to 20.  I haven't checked to see if an existing
patch to 1.5.1 fixes this.

    Anyhow, the rest is easy.  strftime() is used to allow for easy
customization of the date string, although the format I use in the
patch follows the convention set by the Date header.  As a side
effect, the patch makes use of a declared, but previously unused
variable.  ;-)  Would this be useful/proper enough to be included in
future releases of INN?

[cc'd to inn-bugs@isc.org]


----- cut here -----
*** post.c.orig	Sun Jun  1 19:54:18 1997
--- post.c	Mon Jun  2 10:40:04 1997
***************
*** 15,21 ****
  #include "post.h"
  
  #define FLUSH_ERROR(F)		(fflush((F)) == EOF || ferror((F)))
! #define HEADER_DELTA		20
  
  STATIC char	Error[SMBUF];
  STATIC char	NGSEPS[] = NG_SEPARATOR;
--- 15,21 ----
  #include "post.h"
  
  #define FLUSH_ERROR(F)		(fflush((F)) == EOF || ferror((F)))
! #define HEADER_DELTA		22
  
  STATIC char	Error[SMBUF];
  STATIC char	NGSEPS[] = NG_SEPARATOR;
***************
*** 71,76 ****
--- 71,78 ----
  #define _contenttype	19
      {	"Content-Transfer-Encoding", TRUE, HTstd },
  #define _contenttransferencoding 20
+     {	"NNTP-Posting-Date",	FALSE,	HTstd },
+ #define _nntppostdate	21
      {	"Xref",			FALSE,	HTstd },
      {	"Summary",		TRUE,	HTstd },
      {	"Keywords",		TRUE,	HTstd },
***************
*** 429,434 ****
--- 431,441 ----
      /* NNTP-Posting host; set. */
      HDR(_nntpposthost) = ClientHost;
  
+     /* NNTP-Posting date; set. */
+     t = time((time_t *)NULL);
+     (void)strftime(datebuff, 40, "%d %b %Y %T %Z", localtime(&t));
+     HDR(_nntppostdate) = datebuff;
+ 
      /* Now make sure everything is there. */
      for (hp = Table; hp < ENDOF(Table); hp++)
  	if (hp->Type == HTreq && hp->Value == NULL) {
----- cut here -----

-- 
Brian Tao (BT300, taob@netcom.ca)
"Though this be madness, yet there is method in't"

Re: "NNTP-Posting-Date", etc. headers
#18164
Author: billy
Date: Mon, 02 Jun 1997 00:00
30 lines
1694 bytes
Brian Tao <taob@nbc.netcom.ca> writes:

>     Am I breaking any RFC's or other conventions if I patch INN to
> override any reader-supplied date header?

I don't believe so, plus the average PC's clock doesn't seem all
that accurate so if you have a lot of users with them it can only
help those of us with newsreaders that sort by date instead of
thread by references (older copies of tin, etc).

> I need to be able to track
> down the true identities of posters to a news site I run, and
> NNTP-Posting-Host isn't enough.

You'd probably be happier doing something ala the above in this
article - the X-Posted-By header uses the ident data plus the
actual username (account name) is added in () just after that.
A bit more work than just patching the article date (no reason
to stop doing that though) going in, but when it comes to
problem solving I doubt anything is faster for identifying who
did what.

I should also mention I've yet to get any jumk mail due to all
this being there (some months now), though I do get plenty to
my email address which is a completely separate site..

Billy Y..

Re: "NNTP-Posting-Date", etc. headers
#18166
Author: brian moore
Date: Mon, 02 Jun 1997 00:00
36 lines
2158 bytes
In article <5mtl3h$2fo@tor-nn1-hb0.netcom.ca>,
	taob@nbc.netcom.ca (Brian Tao) writes:
>     Am I breaking any RFC's or other conventions if I patch INN to
> override any reader-supplied date header?  I need to be able to track
> down the true identities of posters to a news site I run, and
> NNTP-Posting-Host isn't enough.  Rather than adding a new header, I
> simply ripped out most of the date header code in nnrpd/post.c and
> replaced it something that uses the server's clock (which is
> synchronized with various other authentication and accounting
> systems).  Any problems with this?

Dunno: I added (as you can see above) X-CMC-Date for the same reason.
(Netcom uses X-Netcom-Date).  I decided to leave the client supplied
date (if any) in place in case someone ever says "Well, I wrote that
at 9pm, how was I to know that three hours later the world would be
attacked by Martians?") or some other time-based thing.

In genereal, I prefer to not muck with headers except by adding 'em. :)


>     I would have thought this to be a popular ISP modification, but I
> haven't been able to track down an existing patch.

It's not available from any I've seen.

And, yes, every ISP has this problem if they have just one stupid user
that has a client that inserts the time.

(Do you read every newsgroup and mailing list I do, Brian? :))

-- 
Brian Moore                      The opinions expressed above are my own, not
Sysadmin, C/Perl Hacker          necesarily my employers'.

Re: "NNTP-Posting-Date" with patch
#18277
Author: C.S.Chen
Date: Thu, 05 Jun 1997 00:00
84 lines
3459 bytes
Brian Tao (taob@nbc.netcom.ca) you wrote:�:
:   
: +     /* NNTP-Posting date; set. */
: +     t = time((time_t *)NULL);
: +     (void)strftime(datebuff, 40, "%d %b %Y %T %Z", localtime(&t));
: +     HDR(_nntppostdate) = datebuff;

There is some minor bug of this patch.
The same character array 'databuff' is defined twice. Both used for
the "Date:" header & "NNTP-Posting-Date:" header.

At last, the content of the header "Date:" and "NNTP-Posting-Date:"
are of the same. That is not good, since "Date" is usually indicated
in GMT timezone.

I think the second one should be changed to something like "datebuff2".
I'd implemented it, and it fixed the problem.

I'd done some other patches before. So the line number shown is not the
same as the origin one in inn-1.5.1.

# diff post.c post.c-old
261d260
<     static char               datebuff2[40];
437,438c436,437
<     (void)strftime(datebuff2, 40, "%d %b %Y %T %Z", localtime(&t));
<     HDR(_nntppostdate) = datebuff2;
---
>     (void)strftime(datebuff, 40, "%d %b %Y %T %Z", localtime(&t));
>     HDR(_nntppostdate) = datebuff;


Here are some sample posts before and after the patch.
-------------------------------------------------------
Path: netnews.NCTU.edu.tw!not-for-mail
From: chen@cc.nctu.edu.tw (C.S.Chen)
Newsgroups: nctu.test
Subject: Re: ignore
Date: 05 Jun 1997 09:18:53 CST
      ^^^^^^^^^^^^^^^^^^^^^^^^
Organization: National Chiao Tung University, Hsinchu, Taiwan
Lines: 5
Message-ID: <5n545t$61b$1@news2.nctu.edu.tw>
References: <3393D42E.1B89@cc.nctu.edu.tw> <3395272B.2284@cc.nctu.edu.tw>
Reply-To: chen@ccnews.nctu.edu.tw
NNTP-Posting-Host: ccsun6.cc.nctu.edu.tw
NNTP-Posting-Date: 05 Jun 1997 09:18:53 CST
	           ^^^^^^^^^^^^^^^^^^^^^^^^
X-Newsreader: TIN [UNIX 1.3 950824BETA+ANSI+COLOR PL6]
Xref: netnews.NCTU.edu.tw nctu.test:20558

sfsdf
-- 
Joe. C.S.Chen
------------------------------------------------------
After the patching.

Path: netnews.NCTU.edu.tw!news2!not-for-mail
From: cschen@cc.nctu.edu.tw (C.S.Chen)
Newsgroups: nctu.test
Subject: Re: ignore
Date: 5 Jun 1997 16:31:32 GMT
      ^^^^^^^^^^^^^^^^^^^^^^^
Organization: National Chiao Tung University, Hsinchu, Taiwan
Lines: 7
Message-ID: <5n6pl4$m0t$1@news2.nctu.edu.tw>
References: <3393D42E.1B89@cc.nctu.edu.tw> <3395272B.2284@cc.nctu.edu.tw> <5n545t$61b$1@news2.nctu.edu.tw>
NNTP-Posting-Host: localhost
NNTP-Posting-Date: 06 Jun 1997 00:31:32 CST
		   ^^^^^^^^^^^^^^^^^^^^^^^^
X-Newsreader: TIN [UNIX 1.3 950824BETA+ANSI+COLOR PL8]
Xref: netnews.NCTU.edu.tw nctu.test:20563

C.S.Chen (chen@cc.nctu.edu.tw) you wrote:
: sfsdf
: -- 

abcd
-- 
Joe. C.S.Chen, cschen@ns.nctu.edu.tw


Re: "NNTP-Posting-Date", etc. headers
#18415
Author: James Brister
Date: Wed, 11 Jun 1997 00:00
30 lines
1466 bytes
taob@nbc.netcom.ca (Brian Tao) writes:

>     Relying on ident (if you mean RFC1413) won't work here since the
> only readers posting from trusted machines running identd are staff.
> Everyone else is your typical Win95 or Macintosh PPP dialup user.  All
> I really need is an accurate IP address of the client and the time of
> posting to pull up the matching RADIUS start/stop records.

The next version of INN is most likely going to be adding new header in
nnrpd:

	X-Trace: time pid indent-info ip-addr

e.g.

	X-Trace: 865982250 666 brister@vix.com 192.5.5.1

or

	X-Trace: 865982250 666 (none) 192.5.5.1

for sites where ident is not used (or useful).

James
-- 
James Brister                                            brister@vix.com
Internet Software Consortium      http://www.isc.org     inn@isc.org 

Re: "NNTP-Posting-Date", etc. headers
#18428
Author: Sven Paulus
Date: Thu, 12 Jun 1997 00:00
237 lines
7533 bytes
James Brister <brister@vix.com> wrote:
 JB> The next version of INN is most likely going to be adding new header in
 JB> nnrpd:
 JB> 	X-Trace: time pid indent-info ip-addr
 JB> e.g.
 JB> 	X-Trace: 865982250 666 brister@vix.com 192.5.5.1
 JB> or
 JB> 	X-Trace: 865982250 666 (none) 192.5.5.1
 JB> for sites where ident is not used (or useful).

Here is a quick little patch based on Luke Mewburns <lm@rmit.edu.au>
NNTP-Posting-User patch implementing this new line. It's against a plain
1.5.1 nnrpd.

diff -uNr nnrpd-orig/Makefile nnrpd/Makefile
--- nnrpd-orig/Makefile	Thu Jun 12 01:22:22 1997
+++ nnrpd/Makefile	Thu Jun 12 14:28:16 1997
@@ -39,11 +39,11 @@
 
 SOURCES	= \
 	article.c group.c commands.c misc.c newnews.c nnrpd.c \
-	perl.c post.c loadave.c
+	perl.c post.c loadave.c ident_client.c
 
 OBJECTS	= \
 	article.o group.o commands.o misc.o newnews.o nnrpd.o \
-	perl.o post.o loadave.o
+	perl.o post.o loadave.o ident_client.o
 
 ALL	= nnrpd
 
diff -uNr nnrpd-orig/ident_client.c nnrpd/ident_client.c
--- nnrpd-orig/ident_client.c	Thu Jan  1 01:00:00 1970
+++ nnrpd/ident_client.c	Thu Jun 12 02:14:18 1997
@@ -0,0 +1,100 @@
+/*
+ *	ident_client.c
+ *
+ * Identifies the remote user of a given connection.
+ *
+ * Written 940112 by Luke Mewburn <lm@rmit.edu.au>
+ *
+ * Copyright (C) 1994 by Luke Mewburn.
+ * This code may be used freely by anyone as long as this copyright remains.
+ *
+ */
+
+#include <stdio.h>
+#include <string.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <netdb.h>
+
+#include <syslog.h>
+
+#define IDENT_PORT	113
+
+/*
+ * ident_client
+ *	- user interface to identd
+ *
+ * Args:
+ *	peeraddr	sockaddr_in struct of peer end, from getpeername(...)
+ *	ouraddr		sockaddr_in struct of local end, from getsockname(...)
+ *
+ * Returns:
+ *	NULL on failure to identify (for whatever reason), or pointer to
+ *	static character string with the identity.
+ */
+
+char *
+ident_client(peeraddr, ouraddr)
+	struct sockaddr_in	peeraddr, ouraddr;
+{
+	struct sockaddr_in	authcon;
+	int			authfd, authlen;
+	struct servent		*identserv;
+	int			identport;
+
+	FILE			*authfpin, *authfpout;
+	char			buffer[8192];	/* XXX: argh! magic numbers */
+	char			reply_type[81]; 
+	char			opsys_or_err[81]; 
+	int			rport, lport;
+
+	static char		identifier[1024]; 
+
+	authfd = socket(AF_INET, SOCK_STREAM, 0);
+	if (authfd == -1)
+		return NULL;
+
+	identserv = getservbyname("ident", "tcp");
+	if (identserv)
+		identport = identserv->s_port;
+	else
+		identport = ntohs(IDENT_PORT);
+
+	memset(&authcon, 0, sizeof(authcon));
+	authcon.sin_family = AF_INET;
+	authcon.sin_addr.s_addr = peeraddr.sin_addr.s_addr;
+	authcon.sin_port = identport;
+
+	authlen = sizeof(authcon);
+	if (connect(authfd, (struct sockaddr *)&authcon, authlen) < 0) {
+		return NULL;
+   }
+   
+	authfpin  = fdopen(authfd, "r");
+	authfpout = fdopen(authfd, "w");
+	if (!authfpin || !authfpout)
+		return NULL;
+
+	fprintf(authfpout, "%d , %d\n", ntohs(peeraddr.sin_port), ntohs(ouraddr.sin_port));
+	fflush(authfpout);
+
+	if (fgets(buffer, sizeof(buffer)-1, authfpin) == NULL)
+		return NULL;
+
+	shutdown(authfd, 1);
+
+	authlen = sscanf(buffer, "%d , %d : %[^ \t\n\r:] : %[^ \t\n\r:] : %[^\n\r]",
+		    &lport, &rport, reply_type, opsys_or_err, identifier);
+	if (authlen < 3)
+		return NULL;
+
+#if 0		/* XXX: for if we ever handle the ERROR class */
+	if (! strcasecmp(reply_type, "ERROR"))
+		return NULL;
+#endif
+	if (strcasecmp(reply_type, "USERID"))
+		return NULL;
+
+	return identifier;
+} /* ident_client */
diff -uNr nnrpd-orig/nnrpd.c nnrpd/nnrpd.c
--- nnrpd-orig/nnrpd.c	Thu Jun 12 01:22:24 1997
+++ nnrpd/nnrpd.c	Thu Jun 12 22:04:30 1997
@@ -382,7 +382,7 @@
 StartConnection(accesslist)
     char		*accesslist;
 {
-    struct sockaddr_in	sin;
+    struct sockaddr_in	sin, ourad;
     int			length;
     char		buff[SMBUF];
     char		*ClientAddr;
@@ -447,6 +447,28 @@
 	Printf("%d You are not in my access file.  Goodbye.\r\n",
 	    NNTP_ACCESS_VAL);
 	ExitWithStats(1);
+    }
+
+		/* lm, 940112 */
+    ClientUser[0] = '\0';
+    strcpy(LocalAddr, "(none)");
+    if (!isatty(STDIN)) {
+	length = sizeof(ourad);
+	if (getsockname(STDIN, (struct sockaddr *)&ourad, &length) >= 0) {
+	    char *ident_client();
+	    char *them;
+
+       strcpy(LocalAddr, inet_ntoa(ourad.sin_addr));
+
+	    them = ident_client(sin, ourad);
+	    if (them) {
+	   	(void)strncpy(ClientUser, them, sizeof(ClientUser) - 1);
+	   	ClientUser[sizeof(ClientUser) - 1] = '\0';
+   	   syslog(L_NOTICE, "%s remote user is '%s'", ClientHost, ClientUser);
+	    } else
+   	   syslog(L_NOTICE, "remote user is unknown!");
+	 } else
+	    syslog(L_NOTICE, "could not get sockname");
     }
 }
 
diff -uNr nnrpd-orig/nnrpd.h nnrpd/nnrpd.h
--- nnrpd-orig/nnrpd.h	Thu Jun 12 01:22:24 1997
+++ nnrpd/nnrpd.h	Thu Jun 12 21:57:05 1997
@@ -93,6 +93,8 @@
 EXTERN STRING	MyHostName;
 extern char	ACTIVE[];
 EXTERN char	ClientHost[SMBUF];
+EXTERN char LocalAddr[SMBUF];
+EXTERN char	ClientUser[SMBUF];
 EXTERN char	LogName[256] ;
 extern char	ACTIVETIMES[];
 extern char	HISTORY[];
diff -uNr nnrpd-orig/post.c nnrpd/post.c
--- nnrpd-orig/post.c	Thu Jun 12 01:22:24 1997
+++ nnrpd/post.c	Thu Jun 12 21:54:36 1997
@@ -71,6 +71,8 @@
 #define _contenttype	19
     {	"Content-Transfer-Encoding", TRUE, HTstd },
 #define _contenttransferencoding 20
+    {	"X-Trace",	FALSE,	HTstd },	/* lm, 931203 */
+#define _xtrace	21
     {	"Xref",			FALSE,	HTstd },
     {	"Summary",		TRUE,	HTstd },
     {	"Keywords",		TRUE,	HTstd },
@@ -262,6 +264,7 @@
     static char		mimeversion[SMBUF];
     static char		mimetype[SMBUF];
     static char		mimeencoding[SMBUF];
+    static char		xtracebuf[1024];
     register HEADER	*hp;
     register char	*p;
     time_t		t;
@@ -428,6 +431,17 @@
 
     /* NNTP-Posting host; set. */
     HDR(_nntpposthost) = ClientHost;
+
+    /* X-Trace; set. */
+	sprintf(xtracebuf, "%ld %d %s%s%s %s", 
+	   (unsigned long) time(NULL),
+	   getpid(),
+	   *ClientUser ? ClientUser : "(none)",
+	   *ClientUser ? "@" : "",
+	   *ClientUser ? ClientHost : "",
+	   LocalAddr);
+	HDR(_xtrace) = xtracebuf;
+	
 
     /* Now make sure everything is there. */
     for (hp = Table; hp < ENDOF(Table); hp++)


Sven
-- 
--Sven-Paulus----------28-48-32--3-----ub6v@rz.uni-karlsruhe.de------
--Karlstr.-55----------30--2-50-29-----sven@oops.sub.de-----3C9A6091-
--D-76133-Karlsruhe----44-49-10--8-----T#-49-721-9375094---------irc-
--Fido-2:2476/530-------9-12-19-71-----F#-49-721-9375095-----svennie-

Re: "NNTP-Posting-Date", etc. headers
#18447
Author: Terry Kennedy
Date: Thu, 12 Jun 1997 00:00
31 lines
2228 bytes
Marc Roger <marc@belnet.be> writes:
> I would respectfully suggest to add and indication of the server 
> that added the X-Trace line and an e-mail address for complaints 
> (that could be set-up on a per-user class basis from nnrp.access 
> and be the local netnews manager by default)

  Hmmm. The server identity is an interesting idea, but given that we're
making the header un-forgeable, why should it matter? I'm open to the idea,
I'm just not sure what it buys us.

  I think James said that Son-of-NNTP is working on the NNTP-Posting-Host
issue (that's why the posting user and IP address are in X-Trace and not
in NNTP-Posting-Host. If it's decided that the server doing the logging
should put its identity in a header, maybe you/we/James should talk to the
Son-of-NNTP folks about taking all that stuff into NNTP-Posting-Host.

  Regarding the compaints address, I'm using a different header for that.
It looks like:

X-Complaints-To: Email abuse@spc.edu if this posting is inappropriate

  And you'll see one in this article's headers as well. The piece that reads
"abuse@spc.edu" is customizable based on the particular host that's connect-
ing, with a default.

	Terry Kennedy		  Operations Manager, Academic Computing
	terry@spcvxa.spc.edu	  St. Peter's College, Jersey City, NJ USA
        +1 201 915 9381 (voice)   +1 201 435-3662 (FAX)

Re: "NNTP-Posting-Date", etc. headers
#18451
Author: Marc Roger
Date: Thu, 12 Jun 1997 00:00
20 lines
1234 bytes
James,

On 11 Jun 1997 00:53:23 +0200, in news:<yy3bu5evzmk.fsf@velo.pp.vix.com>,
James Brister <brister@vix.com> wrote in news.software.nntp:
>	X-Trace: time pid indent-info ip-addr
>e.g.
>	X-Trace: 865982250 666 brister@vix.com 192.5.5.1

I would respectfully suggest to add and indication of the server 
that added the X-Trace line and an e-mail address for complaints 
(that could be set-up on a per-user class basis from nnrp.access 
and be the local netnews manager by default)

X-Trace: fqdn time pid ident-info ip-addr email

-- 
Marc Roger

Re: "NNTP-Posting-Date", etc. headers
#18452
Author: Dan Foster
Date: Fri, 13 Jun 1997 00:00
26 lines
1893 bytes
>  I *really* want this in an X-Complaints-To header 8-). For one thing, this
>lets the entire text be specified (in my implementation), not just an email
>address. Also, this makes it much more obvious to the majority of users what
>it's for. Lastly, I think your implementation is going to cause mail to be
>sent to the news admins, rather than an abuse contact. At many ISP's, the two
>functions are handled by different people. Comments?

I would be inclined to agree here. :) In my company, this is a true statement.
Even if it weren't, I would still support a separate X-Complaints-To header,
for the simple reason that it really clarifies who to complain, moan, whine,
<action> to. If y'all remember, Terry posted his own experiences in this
area a couple months ago - basically, it saved him a *lot* of time, properly
designed.

In a nutshell, for various reasons, I would go with what he suggests
*along* with the one-liner that would be of more value for news admins
as proposed for INN 1.6 (assuming it's called 1.6).

Remember... in this biz, we serve end users as much as we set up the system
to support our own needs, as well.

-Dan Foster
Internet: dsf@frontiernet.net

Re: "NNTP-Posting-Date", etc. headers
#18457
Author: James Brister
Date: Fri, 13 Jun 1997 00:00
30 lines
1879 bytes
marc@belnet.be (Marc Roger) writes:

> On 11 Jun 1997 00:53:23 +0200, in news:<yy3bu5evzmk.fsf@velo.pp.vix.com>,
> James Brister <brister@vix.com> wrote in news.software.nntp:
> >	X-Trace: time pid indent-info ip-addr
> >e.g.
> >	X-Trace: 865982250 666 brister@vix.com 192.5.5.1
> 
> I would respectfully suggest to add and indication of the server 
> that added the X-Trace line and an e-mail address for complaints 
> (that could be set-up on a per-user class basis from nnrp.access 
> and be the local netnews manager by default)
> 
> X-Trace: fqdn time pid ident-info ip-addr email

I'll do (actually, just did) the server's fqdn. See the headers of this
posting.

I don't want to fiddle with the nnrp.access format right now, so I'll
simply add NEWSMASTER@fromhost (where fromhost is from innd.conf (or the
fqdn if not there), and NEWSMASTER is whatever your config.data
defined). Can anyone say why I *shouldn't* do that?

James
-- 
James Brister                                            brister@vix.com
Internet Software Consortium      http://www.isc.org     inn@isc.org 

Re: "NNTP-Posting-Date", etc. headers
#18460
Author: Terry Kennedy
Date: Fri, 13 Jun 1997 00:00
24 lines
1979 bytes
James Brister <brister@vix.com> writes:
> I'll do (actually, just did) the server's fqdn. See the headers of this
> posting.

  Likewise for the Reference NNTP (see my headers).

> I don't want to fiddle with the nnrp.access format right now, so I'll
> simply add NEWSMASTER@fromhost (where fromhost is from innd.conf (or the
> fqdn if not there), and NEWSMASTER is whatever your config.data
> defined). Can anyone say why I *shouldn't* do that?

  I *really* want this in an X-Complaints-To header 8-). For one thing, this
lets the entire text be specified (in my implementation), not just an email
address. Also, this makes it much more obvious to the majority of users what
it's for. Lastly, I think your implementation is going to cause mail to be
sent to the news admins, rather than an abuse contact. At many ISP's, the two
functions are handled by different people. Comments?

	Terry Kennedy		  Operations Manager, Academic Computing
	terry@spcvxa.spc.edu	  St. Peter's College, Jersey City, NJ USA
        +1 201 915 9381 (voice)   +1 201 435-3662 (FAX)

Re: "NNTP-Posting-Date", etc. headers
#18464
Author: James Brister
Date: Fri, 13 Jun 1997 00:00
21 lines
1478 bytes
Terry Kennedy <terry@spcuna.spc.edu> writes:

>   I *really* want this in an X-Complaints-To header 8-). For one thing, this
> lets the entire text be specified (in my implementation), not just an email
> address.

OK. You win :-)

% grep complaints /var/news/etc/inn.conf
complaints:     brister@gw.home.vix.com (INN Mechanics Union)

See the headers on this article. If no value in inn.conf, then
NEWSMASTER@FQDN is used.

James
-- 
James Brister                                            brister@vix.com
Internet Software Consortium      http://www.isc.org     inn@isc.org 

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads