Thread View: news.software.nntp
7 messages
7 total messages
Started by Alan Chandler
Fri, 11 Aug 2000 00:00
INEWS fails Can't set system "X-Trace" header
Author: Alan Chandler
Date: Fri, 11 Aug 2000 00:00
Date: Fri, 11 Aug 2000 00:00
105 lines
5143 bytes
5143 bytes
If have set up a small home server running Linux for mail and news (using qmail and Inn 2.2.2). Suck/Rpost is used to transfer news and Fetchmail/Maildirsmtp is used to transfer mail via a dial up link to my ISP If this post arrives in the newsgroup then I seem to have go it working apart from one aspect. I am gating mail addressed to me (alan@chandlerfamily.org.uk) from a mailing list (ukgpl@onelist.com) to a local news group (local.ukgpl) by using the mailpost program that came with Inn using the -a ukgpl@onelist.com flag to simulate an approved post. This is because the mailing list is moderated (there is a line in my moderators file of the form local.ukgpl:ukgpl@onelist.com). If I post to the newsgroups my post is not immediately put in there, but mailed to the list (because its the moderator). This mostly works - everyone elses mail gets posted to my newsgroup and my posts to the newsgroup get sent to the list and then returned to me. HOWEVER - when mail originally created by me reaches the mailpost instruction, INEWS burps and sends the following message (only header from original message included in this post to the group) via e-mail to user usenet@chandlerfamily.org.uk (which is also me) WHY is it failing and HOW do I fix it. [Note also egroups and onelist are interchangeable] ====== email from Inews follows ===== inews failed: Can't send article to the server: 441 Can't set system "X-Trace" header (Article not posted.) -------- Article Contents Path: nobody From: alan@chandlerfamily.org.uk (Alan Chandler) Newsgroups: local.ukgpl Organization: [private individual] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [ukgpl] Next season's divisions (was: Brands Hatch) Message-ID: <bka3ps493u7j489g7peqo1qcrodppnv9qt@4ax.com> Mailing-List: list ukgpl@egroups.com; contact ukgpl-owner@egroups.com Approved: ukgpl@onelist.com References: <399143CD.70BE2CB2@gbdirect.co.uk> <Pine.SGI.4.21.0008091248290.4632-100000@manor.york.ac.uk> Date: Wed, 09 Aug 2000 20:10:41 +0100 X-Received: (qmail 3531 invoked by uid 9); 10 Aug 2000 20:08:50 -0000 X-Delivered-To: news-mail-onelist@chandlerfamily.org.uk X-Received: (qmail 3515 invoked by uid 501); 10 Aug 2000 20:08:48 -0000 X-Delivered-To: alan@chandlerfamily.org.uk X-Received: (qmail 3498 invoked from network); 10 Aug 2000 20:08:45 -0000 X-Received: from localhost (root@127.0.0.1) by localhost with SMTP; 10 Aug 2000 20:08:45 -0000 X-Envelope-to: alan@chandlerfamily.org.uk X-Delivery-date: Thu, 10 Aug 2000 04:04:37 +0100 X-Received: from mail.u-net.com by localhost with POP3 (fetchmail-5.3.1) for alan@chandlerfamily.org.uk (multi-drop); Thu, 10 Aug 2000 21:08:45 +0100 (BST) X-Received: from [208.50.144.77] (helo=ml.egroups.com) by mserv1a.vianw.co.uk with smtp (Exim 2.10 #63) id 13Mie5-000056-00 for alan@chandlerfamily.org.uk; Thu, 10 Aug 2000 04:04:37 +0100 X-eGroups-Return: sentto-126855-7438-965852752-alan=chandlerfamily.org.uk@returns.onelist.com X-Received: from [10.1.10.37] by ml.egroups.com with NNFMP; 09 Aug 2000 20:25:58 -0000 X-Received: (qmail 1520 invoked from network); 9 Aug 2000 20:25:52 -0000 X-Received: from unknown (10.1.10.26) by m3.onelist.org with QMQP; 9 Aug 2000 20:25:52 -0000 X-Received: from unknown (HELO serv1.is1.u-net.net) (195.102.240.129) by mta1 with SMTP; 9 Aug 2000 20:25:52 -0000 X-Received: from [195.102.200.234] (helo=mail.chandlerfamily.org.uk) by serv1.is1.u-net.net with esmtp (Exim 3.12 #1) id 13McQA-0005hZ-00 for ukgpl@onelist.com; Wed, 09 Aug 2000 21:25:50 +0100 X-Received: (qmail 4183 invoked by uid 9); 9 Aug 2000 19:09:39 -0000 X-To: ukgpl@egroups.com X-Path: not-for-mail X-Newsgroups: local.ukgpl X-Lines: 46 X-NNTP-Posting-Host: magpie.chandlerfamily.org.uk X-Trace: eeyore.chandlerfamily.org.uk 965848179 4181 10.0.10.1 (9 Aug 2000 19:09:39 GMT) X-Complaints-To: alan@chandlerfamily.org.uk X-NNTP-Posting-Date: 9 Aug 2000 19:09:39 GMT X-Newsreader: Forte Agent 1.8/32.548 X-Delivered-To: mailing list ukgpl@egroups.com X-Precedence: bulk X-List-Unsubscribe: <mailto:ukgpl-unsubscribe@egroups.com> X-Reply-To: ukgpl@egroups.com .... [body of orginal message] Alan alan@chandlerfamily.org.uk http://www.chandler.u-net.com
Re: INEWS fails Can't set system "X-Trace" header
Author: Alan Chandler
Date: Fri, 11 Aug 2000 00:00
Date: Fri, 11 Aug 2000 00:00
40 lines
1831 bytes
1831 bytes
On 11 Aug 2000 18:15:24 GMT Stephane.Lentz@ansf.alcatel.fr (Stephane Lentz) wrote: >The perl script mailpost should be patched : I've made the change you suggested - but I guess strictly speaking I should not be sending the header out to the mailing list in the first place. I've created the following SED script which seems to do it (use sed -n -f rmxtrace and pipe message through it) ===(rmxtrace) # Read in an extra line so we can delete the first if necessary N # test for xtrace s/^X-Trace:// t xtrace # test for a blank line indicating end of header s/^\ /\ / t done # for normal lines then we output up to first newline and then delete it P # allows xtrace to loose the line : xtrace D # if found the end of header then just pass all input to output : done p n b done Alan alan@chandlerfamily.org.uk http://www.chandler.u-net.com
Re: INEWS fails Can't set system "X-Trace" header
Author: Bert Hyman
Date: Fri, 11 Aug 2000 00:00
Date: Fri, 11 Aug 2000 00:00
21 lines
1416 bytes
1416 bytes
[posted and mailed] alan@chandlerfamily.org.uk (Alan Chandler) wrote in <6067pskcok35hiidq6e44n0k9bnig9vfo3@4ax.com>: > ... >WHY is it failing and HOW do I fix it. [Note also egroups and onelist >are interchangeable] > ... The NNRPD posting agent in version 2.2.2 of INN (that's the only version I've got source for; other versions may work differently) simply won't allow a post which already contains an "X-Trace" header (along with a number of other headers). You'll have to find a way to pre/post process the messages you're trying to insert to remove the offending header(s). -- Bert Hyman | St. Paul, MN | bert@visi.com
Re: INEWS fails Can't set system "X-Trace" header
Author: Stephane Lentz
Date: Fri, 11 Aug 2000 00:00
Date: Fri, 11 Aug 2000 00:00
49 lines
2189 bytes
2189 bytes
The perl script mailpost should be patched :
After these lines in mailpost :
if (/^(MIME|Content)-[^:]+:\s*/sio) {
$real_news_hdrs .= $_ . "\n" ;
next ;
}
Add this code :
# deal with X-Trace headers (people who sent messages from
# a news server
if (/^X-Trace:\s*/sio) {
next;
}
# ignore this too
if (/^X-Complaints-To:\s*/sio) {
next;
}
I don't know if the mailpost provided with INN 2.2.3 or 2.3 betas
have the same problem (Russ ??? :-).
Stephane.
bert@visi.com (Bert Hyman):
> [posted and mailed]
>
> alan@chandlerfamily.org.uk (Alan Chandler) wrote in
> <6067pskcok35hiidq6e44n0k9bnig9vfo3@4ax.com>:
> > ...
> >WHY is it failing and HOW do I fix it. [Note also egroups and onelist
> >are interchangeable]
> > ...
>
> The NNRPD posting agent in version 2.2.2 of INN (that's the only
> version I've got source for; other versions may work differently)
> simply won't allow a post which already contains an "X-Trace" header
> (along with a number of other headers).
>
> You'll have to find a way to pre/post process the messages you're
> trying to insert to remove the offending header(s).
>
> --
> Bert Hyman | St. Paul, MN | bert@visi.com
Re: INEWS fails Can't set system "X-Trace" header
Author: Jeremy
Date: Fri, 11 Aug 2000 00:00
Date: Fri, 11 Aug 2000 00:00
28 lines
1701 bytes
1701 bytes
Alan Chandler <alan@chandlerfamily.org.uk> wrote: > This mostly works - everyone elses mail gets posted to my newsgroup > and my posts to the newsgroup get sent to the list and then returned > to me. HOWEVER - when mail originally created by me reaches the > mailpost instruction, INEWS burps and sends the following message > (only header from original message included in this post to the group) > via e-mail to user usenet@chandlerfamily.org.uk (which is also me) > > WHY is it failing and HOW do I fix it. [Note also egroups and onelist > are interchangeable] > > ====== email from Inews follows ===== > > inews failed: Can't send article to the server: 441 Can't set > system "X-Trace" header (Article not posted.) When you're sending mail to the list by posting to your server, the server is adding an X-Trace header. When it gets the mail back, that header is present, and then you're trying to post that to the server again, and you're not allowed to do that. Have your posting gateway script remove X-Trace headers. -- Jeremy ( jeremy@exit109.com | bofh@netscum.dk )
Re: INEWS fails Can't set system "X-Trace" header
Author: chandlera
Date: Fri, 11 Aug 2000 00:00
Date: Fri, 11 Aug 2000 00:00
22 lines
1306 bytes
1306 bytes
In article <6067pskcok35hiidq6e44n0k9bnig9vfo3@4ax.com>, Alan Chandler <alan@chandlerfamily.org.uk> wrote: ... > X-NNTP-Posting-Host: magpie.chandlerfamily.org.uk > X-Trace: eeyore.chandlerfamily.org.uk 965848179 4181 10.0.10.1 (9 Aug > 2000 19:09:39 GMT) I forgot to mention in my (alta ego at work now) previous post that "eeyore" is an alternative name for the INN and QMAIL server and "magpie" is a client machine from which the posting took place (using Agent) Sent via Deja.com http://www.deja.com/ Before you buy.
Re: INEWS fails Can't set system "X-Trace" header
Author: Russ Allbery
Date: Sun, 13 Aug 2000 00:00
Date: Sun, 13 Aug 2000 00:00
31 lines
1564 bytes
1564 bytes
Stephane Lentz <Stephane.Lentz@ansf.alcatel.fr> writes:
> The perl script mailpost should be patched :
> After these lines in mailpost :
> if (/^(MIME|Content)-[^:]+:\s*/sio) {
> $real_news_hdrs .= $_ . "\n" ;
> next ;
> }
> Add this code :
> # deal with X-Trace headers (people who sent messages from
> # a news server
> if (/^X-Trace:\s*/sio) {
> next;
> }
> # ignore this too
> if (/^X-Complaints-To:\s*/sio) {
> next;
> }
> I don't know if the mailpost provided with INN 2.2.3 or 2.3 betas
> have the same problem (Russ ??? :-).
Thanks, fixed in 2.3.0-to-be and the current development tree.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
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