Good Day,--
I'm hoping to find help with this problem I'm having with gating
a mailman mailing list to our local newsgroup.
The symptom I'm seeing is a duplication of messages which aparently
is caused by the way the gateway is set up.
From scrutinising the message headers this is what happens:
mailman sends a message to the newsserver where it get's injected
properly receiving an Injection-Information: header field. Then however
this new message is sent back to mailman. Now there's a duplicate with identical message ID. Mailman then sends it back to inn2 which refuses
to take it and mailman's python nntp client throws an error, thus preventing an endless loop.
Why inn2 even sends the message back to mailman I can't tell.
These are the relevant snippets from my inn2 setup:
# this is from /etc/news/news2mail.cf
# no surprises, and it basically works. News from the grenzland.test
# group is forwarded to the proper list address
test-grenzland-club test@grenzland.club
# this is in /etc/news/newsfeeds news2mail!:!*:Ac,Tc,Wn*:/usr/lib/news/bin/news2mail test-grenzland-club/grenzland.club:!*,grenzland.test:Ap,Tm:news2mail!
# this last line should do two things: forward messages from the
# test@grenzland.club list to the grenzland.test newsgroup,
# AND don't send any messages back which have grenzland.club
# in their Path header. This last bit seems to fail however,
# and I fail to spot the error.
Any ideas? Or working examples you could point me too?
Thanks a lot,
Laurens
Any ideas? Or working examples you could point me too?
reposting this to news.software.nntp which might be more apropriate
Why inn2 even sends the message back to mailman I can't tell.
# this is in /etc/news/newsfeeds
test-grenzland-club/grenzland.club:!*,grenzland.test:Ap,Tm:news2mail!
# this last line should do two things: forward messages from the
# test@grenzland.club list to the grenzland.test newsgroup,
# AND don't send any messages back which have grenzland.club
# in their Path header. This last bit seems to fail however,
# and I fail to spot the error.
Hi,
lkh a tapot|- :
Any ideas? Or working examples you could point me too?
I nether have done this configuration but maybe
the two servers should not have the same DNS name to avoid confusion?
Is your nntp server has the good "pathhost" in inn.conf ?
Why inn2 even sends the message back to mailman I can't tell.
This is all done by the following configuration:
# this is in /etc/news/newsfeeds
test-grenzland-club/grenzland.club:!*,grenzland.test:Ap,Tm:news2mail!
# this last line should do two things: forward messages from the
# test@grenzland.club list to the grenzland.test newsgroup,
# AND don't send any messages back which have grenzland.club
# in their Path header. This last bit seems to fail however,
# and I fail to spot the error.
"grenzland.club" is probably not the right exclusion path to put. Do
you have an example of the Path header field of articles injected from mailman?
# this is in /etc/news/newsfeeds
test-grenzland-club/grenzland.club:!*,grenzland.test:Ap,Tm:news2mail!
This is from a message send by mail read in the newsreader:
Path: grenzland.club!.POSTED.localhost!not-for-mail
So Path seems o.k. and should match the exclusion pattern. However I'm
not sure whether Path is set by mailman while posting or if it's set by
inn2.
reposting this to news.software.nntp which might be more apropriate:Are you sure you need news2mail at all in this case? If I remember
lkh <lkh@sdf-eu.org> wrote:
Good Day,
I'm hoping to find help with this problem I'm having with gating
a mailman mailing list to our local newsgroup.
The symptom I'm seeing is a duplication of messages which aparently
is caused by the way the gateway is set up.
From scrutinising the message headers this is what happens:
mailman sends a message to the newsserver where it get's injected
properly receiving an Injection-Information: header field. Then however
this new message is sent back to mailman. Now there's a duplicate with
identical message ID. Mailman then sends it back to inn2 which refuses
to take it and mailman's python nntp client throws an error, thus preventing >> an endless loop.
Why inn2 even sends the message back to mailman I can't tell.
These are the relevant snippets from my inn2 setup:
# this is from /etc/news/news2mail.cf
# no surprises, and it basically works. News from the grenzland.test
# group is forwarded to the proper list address
test-grenzland-club test@grenzland.club
# this is in /etc/news/newsfeeds
news2mail!:!*:Ac,Tc,Wn*:/usr/lib/news/bin/news2mail
test-grenzland-club/grenzland.club:!*,grenzland.test:Ap,Tm:news2mail!
# this last line should do two things: forward messages from the
# test@grenzland.club list to the grenzland.test newsgroup,
# AND don't send any messages back which have grenzland.club
# in their Path header. This last bit seems to fail however,
# and I fail to spot the error.
Any ideas? Or working examples you could point me too?
Are you sure you need news2mail at all in this case? If I rememberWhy inn2 even sends the message back to mailman I can't tell.
These are the relevant snippets from my inn2 setup:
# this is from /etc/news/news2mail.cf
# no surprises, and it basically works. News from the grenzland.test
# group is forwarded to the proper list address
test-grenzland-club test@grenzland.club
# this is in /etc/news/newsfeeds
news2mail!:!*:Ac,Tc,Wn*:/usr/lib/news/bin/news2mail
test-grenzland-club/grenzland.club:!*,grenzland.test:Ap,Tm:news2mail!
# this last line should do two things: forward messages from the
# test@grenzland.club list to the grenzland.test newsgroup,
# AND don't send any messages back which have grenzland.club
# in their Path header. This last bit seems to fail however,
# and I fail to spot the error.
Any ideas? Or working examples you could point me too?
correctly (I didn't find it in the documnetation) mailman checks the newsgroup for new artictles on its own.
Also are you using mailman2 or mailman3? They are quite different.
Hi Laurens,
# this is in /etc/news/newsfeeds
test-grenzland-club/grenzland.club:!*,grenzland.test:Ap,Tm:news2mail!
This is from a message send by mail read in the newsreader:
Path: grenzland.club!.POSTED.localhost!not-for-mail
So Path seems o.k. and should match the exclusion pattern. However I'm
not sure whether Path is set by mailman while posting or if it's set by
inn2.
I believe it is set by INN in your example (pathhost in inn.conf).
Isn't there a way to set a path in mailman? (you should use another
path name like grenzland.gatewaying)
I do not manage to find the information in the available documentation
of mailman. At least I see:
https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/handlers/docs/nntp.html
but it does not mention the addition of a path...
Looking at the logs I notice that I get messages about inn accepting or rejecting messages, but not about inn sending anything. Any idea where sending messages might be logged?
That might give a clue or at least confirm what I think is happening.
Martin Burmester <martin@burmester.org> wrote:
Are you sure you need news2mail at all in this case? If I rememberWhy inn2 even sends the message back to mailman I can't tell.
These are the relevant snippets from my inn2 setup:
# this is from /etc/news/news2mail.cf
# no surprises, and it basically works. News from the grenzland.test
# group is forwarded to the proper list address
test-grenzland-club test@grenzland.club
# this is in /etc/news/newsfeeds
news2mail!:!*:Ac,Tc,Wn*:/usr/lib/news/bin/news2mail
test-grenzland-club/grenzland.club:!*,grenzland.test:Ap,Tm:news2mail!
# this last line should do two things: forward messages from the
# test@grenzland.club list to the grenzland.test newsgroup,
# AND don't send any messages back which have grenzland.club
# in their Path header. This last bit seems to fail however,
# and I fail to spot the error.
Any ideas? Or working examples you could point me too?
correctly (I didn't find it in the documnetation) mailman checks the
newsgroup for new artictles on its own.
I checked by commenting out the relevant parts in the configuration. news2mail is needed to send messages from news to mail. For the other
way round mailman connects to INN's nntp interface.
Mailman has two flags: "News to Mail" and "Mail to News". Both are set
to yes in my case, but whether "News to Mail" is set to yes or no seems
to make no difference.
Also are you using mailman2 or mailman3? They are quite different.
mailman3
Martin Burmester <martin@burmester.org> wrote:
Yea, pretty sure mailman3 has its own functionality to poll the nntp
server for new messages[1].
You do not need news2mail or a newsfeeds entry.
Cheers
Martin
Yes, I just confirmed this by disableing the relevant newsfeeds entries.
pulling news takes a little longer, though. But that shouldn't be a
problem. So apparently I get duplicates because I have two mechanisms
for news -> mail in place?
There's another issue however: news2mail rewrites the Newsgroups header
to X-Newsgroups (good), mailman does not (not so good), leading to e.g. Thunderbird to offer answering to the newsgroup instead of the list.
I'll try switching off "News to Mail" in mailman now, and switch on the news2mail funnel. Hope this settles it ...
Thank you!
lkh
[1]
https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/commands/docs/gatenews.html
.
Yea, pretty sure mailman3 has its own functionality to poll the nntp
server for new messages[1].
You do not need news2mail or a newsfeeds entry.
Cheers
Martin
[1] https://docs.mailman3.org/projects/mailman/en/latest/src/mailman/commands/docs/gatenews.html--
.
Martin Burmester <martin@burmester.org> wrote:
Yea, pretty sure mailman3 has its own functionality to poll the nntp
server for new messages[1].
You do not need news2mail or a newsfeeds entry.
Cheers
Martin
Yes, I just confirmed this by disableing the relevant newsfeeds entries.
pulling news takes a little longer, though. But that shouldn't be a
problem. So apparently I get duplicates because I have two mechanisms
for news -> mail in place?
There's another issue however: news2mail rewrites the Newsgroups header
to X-Newsgroups (good), mailman does not (not so good), leading to e.g. Thunderbird to offer answering to the newsgroup instead of the list.
I'll try switching off "News to Mail" in mailman now, and switch on the news2mail funnel. Hope this settles it ...
I think its an rfc violation for E-Mail to have a Newsgroups header.
Martin Burmester wrote:
I think its an rfc violation for E-Mail to have a Newsgroups header.
Every post to a moderated group will result in a mail with a Newsgroups header ...
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 59 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 00:07:30 |
| Calls: | 810 |
| Files: | 1,287 |
| Messages: | 196,198 |