Gatewaying Mailing Lists

CAUTION, gatewaying mailing lists to public news groups is a little risky, don't do it lightly.

Two gateways are needed to make a news group and a mailing list 'identical', you must setup both so that a news post gets sent to the mailing list and so a mailing post gets posted to the news group.

Setting up a gateway from a "NEWS group" to a "MAILING LIST"

In newsfeeds.conf add a feed for the group you wish to gateway, the 'site' name can be anything meaningful to you.

  site juggling
          groups rec.juggling

(This will make DNews create juggling.feed in the workarea directory)

For Windows NT

Now to actually send the items, setup an xmit process for each mailing list. To do this edit addmail.cmd (which will be in /dnews with luck)

notepad addmail.cmd
  Change the -name to be the name in newsfeeds.conf
  Change SITE.NAME to match the site you have added to newsfeeds.conf (juggling)
  Change MAIL.HERE.COM to point to your mail server
  Change JUGLIST@HERE.COM to point to the actual mailing list
  addsvc -del dxmail1
  addsvc -add dxmail1 xmit.exe "dxmail1 SITE.NAME -smtp MAIL.HERE.COM -at *5 *
(cont. but should be on one line)   -mail JUGLIST@HERE.COM "
 addmail.cmd  (run the script to add the service) (This is NT only)
      Restart things:
      tellnews reload
      Start the xmit service in Control Panels (for nt)

Test the mailing list, if a loop occurs, disable it quickly and figure out why.

For Unix

In Unix put the following in the startup,

nohup xmit SITE.NAME -smtp MAIL.GATEWAY.COM -at "*5" "*" -mail JUGLIST@HERE.COM &

To get it running the first time just type the command by hand.

Test the mailing list, if a loop occurs, disable it quickly and figure out why.

Setting up a gateway from a MAILING LIST to a NEWS GROUP

For Windows NT

These instructions are for NTMAIL and DMail you will find the same basic process works for almost any good mail server.

For NTMAIL

First setup DROBOT to run from NTMAIL, in control panels run the NTMail admin tool. Click on 'executables' and enter a name for this
gateway, e.g.
  juglist-robot
 (You will then need to add this user to your juglist mailing list,
 e.g.
  juglist-robot@here.com, so that this robot will get all messages
  that are posted to the mailing list)

In the command line box type in:

     drobot -dir c:\ntmail\news -groups rec.juggling

For DMail

Add a single line to dmail.conf
forward juglist-robot@your.domain |d:\dmail\drobot.exe -dir c:\ntmail\news -groups rec.juggling
 (You will then need to add this user (justlist-robot@your.domain) to your juglist mailing list, so
 this robot will get all messages  that are posted to the mailing list)

Now, setup the service to post these items.

  addsvc -del dposter
  addsvc -add dposter dposter.exe "dposter -dir c:\ntmail\news
   -to news.here.com"

Now start the services (from control panel) and then test posting a message and mailing a message to the mailing list and see if the newsgroup and mailing list are kept inline.

Using drobot with IMAIL

To get email sent to a list hosted on IMail Server to post to a newsgroup hosted on DNews, the program alias you create in IMail should have the following format:

	drobot -dir c:\gateway -groups rec.juggling -file

Note the addition of " -file " to the end of the program line, this tells drobot to take it's input from a file name passed to it rather than from stdin.

For unix

 

In the .forward file put the path of drobot

|"/usr/local/dnews/drobot -dir /var/spool/mailnews -groups rec.juggling"

Add dposter to the startup, but start it by hand the first time with the same command.

nohup dposter -dir /var/spool/mailnews -to news.here.com &

Run the same test procedure as for windows.

Sending many groups to many mailing lists via one xmit gateway

Lets say you want to mirror 100 news groups into mailing lists, obviously you don't want 100 xmit processes running, here's how to do it:

In newsfeeds.conf

...
site lists
	groups comp.lang.*

Then start a single xmit process with parameters like this:

nohup xmit lists -smtp MAIL.GATEWAY.COM -at "*5" "*" -all "comp.lang.*"
-mail @HERE.COM  &

This will send messages to 'comp_lang_c@HERE.COM', and 'comp_lang_basic@HERE.COM' etc, you must define all these locall mail addresses.

See the xmit usage for an explanation of the switches used with xmit