mail-news bidirectional gateway

ADAM Sulmicki adam at cfar.umd.edu
Thu Aug 10 20:59:02 UTC 2000


On Fri, 23 Jun 2000, ADAM Sulmicki wrote:

> > > Now, the news2mail. I have something like this in 'newsfeeds' file:
> > 
> > > 	n2m!:!*:Tc,Ac,Wn*:/usr/local/inn/bin/news2mail
> > > 	test-list-n2-gw at local-news.my.domain:eax.test:Tm:n2m!
> > > 	umlug-list-n2-gw at local-news.my.domain:um.linux:Tm:n2m!
> > 
> > > Where 'my.domain' is my actual domain. In 'mail2news.cf' file I have:
> > 
> > > 	umlug at news.my.domain    um-linux at some.other.domain
> > > 	test at news.my.domain      test at my.domain
> > 
> > > where again 'my.domain' is my actual domain.
> > 
> > > Now there are two problems:
> > > 	1) when I post a message to newsgroup, say 'eax.test'
> > > 	it gets emailed to _both_ lists 'umlug' and 'test'.
> > > 	The email should be forwarded to 'test' list __only__,
> > > 	I have no idea why it spills over the other list.
> > 
> > I have no idea why this is happening, I'm afraid.  :/  Did you ever manage
> > to solve this problem?
> 
> Not really. It was hard to debug this w/out spamming lists and the
> news2mail gateway was not that important. So I just run unidirectional
> only gateway mail2news.

as someone pointed out, I just needed to add '!*,' before the
group name.

> > > 	2) since there's mail2news, once the email is sent to this list it
> > > 	is forwarded back to news server for posting.  According to manual
> > > 	the 'mailpost' should silently drop such dupplicate
> > > 	emails. However, it does not instead I get error emails like the
> > > 	one below:
> > 
> > > Subject: mailpost failure (eax.test): inews failed: Can't send article
> > > to the server:    441 Can't set system "X-Trace" header (Article not posted.)
> > 
> > news2mail wasn't stripping X-Trace (although it was stripping other
> > similar trace headers).  Just now fixed in BETA and CURRENT.

Hmm I did diff on the sources, patched the appropriate line in my
news2mail but it is still happening.

I think it is perhaps the part where it was added is SKIPPING not 
STRIPPING those headers. (at least it is what the comment says)

                #
                # skip unnecessary headers
                #
                next if ($line =~ /^NNTP-Posting-Date:/i);
                next if ($line =~ /^NNTP-Posting-Host:/i);
                next if ($line =~ /^X-Trace:/i);
                next if ($line =~ /^Xref:/i);
                next if ($line =~ /^Path:/i);

-- 
Adam
http://www.eax.com	The Supreme Headquarters of the 32 bit registers





More information about the inn-workers mailing list