How to set up INN and Majordomo bidirectional mail<->news gateway


This page outlines how to set up a bidirectional gateway between a newsgroup under INN and a mailing list under Majordomo. For this example, the following settings are assumed.

The domain is "foo.bar". Mailing list name is called "stuff". Newsgroups top hierachy is "foo" and the gatewayed newsgroup is "foo.stuff".

First, in your newsfeeds file:

stuff-m2n!:!*:Tc,Ac,Wn*:/usr/local/news/bin/news2mail
stuff@foo.bar:!*,foo.stuff:Tm:stuff-m2n!
And in news2mail's news2mail.cf file:
stuff@foo.bar	stuff-members@foo.bar
In /etc/mail/aliases on your server where Majordomo is installed.
stuff: foo-stuff
stuff-members: :include://usr/local/majordomo/lists/stuff
owner-stuff: postmaster
stuff-request: "|/usr/local/majordomo/wrapper request-answer stuff"
stuff-approval: postmaster

foo-stuff: foo-stuff@news.foo.bar
On your news server (@news.foo.bar), if on a seperate system, put this alias.
foo-stuff:"|/usr/local/news/bin/mailpost foo.stuff"

# cat /usr/local/majordomo/lists/stuff
user1@foo.bar
user2@foo.bar
....
user100@foo.bar