Thread View: news.software.nntp
3 messages
3 total messages
Started by Paul R Lavoie
Wed, 21 Jan 1998 00:00
Help with NNTP-Posting-Host header
Author: Paul R Lavoie
Date: Wed, 21 Jan 1998 00:00
Date: Wed, 21 Jan 1998 00:00
29 lines
1724 bytes
1724 bytes
I'm running INN 1.5.1 on a solaris 2.5.1 host. I have another system running hypernews (baghdad) as a mail to news gateway. The hypernews system connects to the INN system (pilsner) via nnrp. I am getting the following errors in news.notice, have checked the FAQ's and have not found an answer. Anybody have any clues? The errors are: Jan 21 21:51:26 pilsner nnrpd[12567]: baghdad.software.com connect Jan 21 21:51:27 pilsner nnrpd[12567]: baghdad.software.com post failed Can't set system "NNTP-Posting-Host" header Jan 21 21:51:27 pilsner nnrpd[12567]: baghdad.software.com exit articles 0 group s 0 Jan 21 21:51:27 pilsner nnrpd[12567]: baghdad.software.com posts received 0 reje cted 1 Thanks in advance for any help you can give. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Paul R Lavoie Paul.Lavoie@Software.com Senior Network/Systems Manager Voice: (781) 674-0100 x275 Software.com, Inc. Fax: (781) 674-1080 91 Hartwell Ave Lexington, Ma. 02173 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Re: Help with NNTP-Posting-Host header
Author: Dale Ghent
Date: Fri, 23 Jan 1998 00:00
Date: Fri, 23 Jan 1998 00:00
22 lines
1354 bytes
1354 bytes
Paul R Lavoie wrote:
>
> I'm running INN 1.5.1 on a solaris 2.5.1 host. I have another system
> running hypernews (baghdad) as a mail to news gateway. The hypernews system
> connects to the INN system (pilsner) via nnrp.
>
> I am getting the following errors in news.notice, have checked the
> FAQ's and have not found an answer. Anybody have any clues?
Perhaps Hypermail is setting the NNTP-Posting-Host Header, when it
shouldnt?
-Dale G.
--
Dale Ghent daleg @ digex.net
NetworkNews Administrator DIGEX, Inc.
http://www.digex.net Beltsville, MD
I speak for myself
Re: Help with NNTP-Posting-Host header
Author: Paul Martin
Date: Sat, 24 Jan 1998 00:00
Date: Sat, 24 Jan 1998 00:00
91 lines
3598 bytes
3598 bytes
In article <34C91203.794B@digex.net>,
Dale Ghent <daleg@digex.net> writes:
>> I'm running INN 1.5.1 on a solaris 2.5.1 host. I have another system
>> running hypernews (baghdad) as a mail to news gateway. The hypernews system
>> connects to the INN system (pilsner) via nnrp.
>>
>> I am getting the following errors in news.notice, have checked the
>> FAQ's and have not found an answer. Anybody have any clues?
>
> Perhaps Hypermail is setting the NNTP-Posting-Host Header, when it
> shouldnt?
This following diff against nnrpd should allow you to specify individual
hosts as allowed to set their NNTP-Posting-Host header, by putting H in
the perm field of nnrp.access
We use it here to allow the NNTP-Posting-Host be set by the scripts that
post offline news for users.
--- nnrpd.c.orig Mon Dec 8 23:48:50 1997
+++ nnrpd.c Tue Dec 16 09:42:29 1997
@@ -326,6 +326,7 @@
PERMcanread = FALSE;
PERMcanpost = FALSE;
+ PERMpostinghost = FALSE;
found = FALSE;
accesslist[0] = '\0';
while (fgets(buff, sizeof buff, F) != NULL) {
@@ -365,6 +366,7 @@
PERMcanread = strchr(fields[1], 'R') != NULL;
PERMcanpost = strchr(fields[1], 'P') != NULL;
+ PERMpostinghost = strchr(fields[1], 'H') != NULL;
(void)strcpy(PERMuser, user ? user : fields[2]);
(void)strcpy(PERMpass, pass ? pass : fields[3]);
(void)strcpy(accesslist, fields[4]);
@@ -650,10 +652,11 @@
PerlFilter (TRUE) ;
#endif /* defined(DO_PERL) */
- Reply("%d %s InterNetNews NNRP server %s ready (%s).\r\n",
+ Reply("%d %s InterNetNews NNRP server %s ready (%s%s).\r\n",
PERMcanpost ? NNTP_POSTOK_VAL : NNTP_NOPOSTOK_VAL,
MyHostName, INNVersion(),
- PERMcanpost ? "posting ok" : "no posting");
+ PERMcanpost ? "posting ok" : "no posting",
+ PERMpostinghost ? ", host ok" : "");
/* Main dispatch loop. */
for (timeout = INITIAL_TIMEOUT, av = NULL; ; timeout = CLIENT_TIMEOUT) {
--- nnrpd.h.orig Mon Dec 8 23:48:50 1997
+++ nnrpd.h Tue Dec 16 09:42:37 1997
@@ -88,6 +88,7 @@
EXTERN BOOL PERMcanread;
EXTERN BOOL PERMneedauth;
EXTERN BOOL PERMspecified;
+EXTERN BOOL PERMpostinghost;
EXTERN BOOL Tracing;
EXTERN char **PERMlist;
EXTERN STRING MyHostName;
--- post.c.orig Mon Dec 8 23:48:50 1997
+++ post.c Tue Dec 16 09:42:45 1997
@@ -482,7 +482,9 @@
/* Supersedes; left alone. */
/* NNTP-Posting host; set. */
- HDR(_nntpposthost) = ClientHost;
+ if ((HDR(_nntpposthost) == NULL) || (!PERMpostinghost)) {
+ HDR(_nntpposthost) = ClientHost;
+ }
/* Now make sure everything is there. */
for (hp = Table; hp < ENDOF(Table); hp++)
@@ -837,6 +839,9 @@
hp->Size = strlen(hp->Name);
hp->Value = NULL;
}
+
+ Table[_nntpposthost].CanSet=PERMpostinghost;
+
if ((article = StripOffHeaders(article)) == NULL)
return Error;
for (i = 0, p = article; p; i++, p = next + 1)
--
Paul Martin <pm@zetnet.net>
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