news2mail (8) - Linux Manuals
news2mail: Channel script to gateway news into e-mails
news2mail - Channel script to gateway news into e-mails
DESCRIPTIONnews2mail runs as a channel process underneath innd. It is set up as channel feed in newsfeeds, with different mailing-lists as funnel entries pointing to it (see below); news2mail expects the token of an article followed by a sequence of list names.
news2mail uses the configuration file pathetc/news2mail.cf to map mailing-list names to e-mail addresses. news2mail causes sendmail to queue the messages for later delivery (to avoid DOS attacks by mass postings). You must run "sendmail -q" periodically to get the queue processed.
CONFIGURATION FILEThe configuration file format is simple: comments (starting with a hash sign "#") and blank lines are ignored. All other lines have two or three fields on them. The first is the list name and is what innd uses (i.e. the site field of the entry in the newsfeeds file). The second field is the actual e-mail address to send the article to. The third field is optional: it sets the envelope-from address (for instance a list member's address; if not set, it defaults to the "news" user).
In e-mail messages, the To: header will have the mailing-list address (i.e. the second field). Besides, news2mail strips most article headers from the article before mailing.
In newsfeeds, the channel feed should look like:
and for each mailing-list, you only have to add to newsfeeds an entry list like:
Please note the use of "Ap" and the exclusion of the list owner domain to protect the list from feeding back new arrivals from the list. The site name used in the newfeeds entry for a mailing-list (above "list-big-red-ants") must be the same as the first field in an entry in news2mail.cf. For instance:
# Newsfeeds-name List-to-address [List-sender-address] list-big-red-ants big-red-ants [at] lists.ucsd.edu news+big-red-ants [at] local.news.server.org
- The Perl program itself used to gateway news into e-mails.
- The configuration file which specifies the mapping to use for gatewaying.