1NEWS2MAIL(8)              InterNetNews Documentation              NEWS2MAIL(8)
2
3
4

NAME

6       news2mail - Channel script to gateway news into e-mails
7

SYNOPSIS

9       news2mail
10

DESCRIPTION

12       news2mail runs as a channel process underneath innd.  It is set up as
13       channel feed in newsfeeds, with different mailing-lists as funnel
14       entries pointing to it (see below); news2mail expects the token of an
15       article followed by a sequence of list names.
16
17       news2mail uses the configuration file pathetc/news2mail.cf to map
18       mailing-list names to e-mail addresses.  news2mail causes the mail
19       transport agent (usually sendmail, as set in the mta parameter in
20       inn.conf) to queue the messages for later delivery (to avoid DOS
21       attacks by mass postings).  You must run "sendmail -q" periodically to
22       get the queue processed.
23

CONFIGURATION FILE

25       The configuration file format is simple: comments (starting with a hash
26       sign "#") and blank lines are ignored.  All other lines have two or
27       three fields on them.  The first is the list name and is what innd uses
28       (i.e. the site field of the entry in the newsfeeds file).  The second
29       field is the actual e-mail address to send the article to.  The third
30       field is optional: it sets the envelope-from address (for instance a
31       list member's address; if not set, it defaults to the "news" user).
32
33       In e-mail messages, the To header field body will have the mailing-list
34       address (i.e. the second field).  Besides, news2mail strips most
35       article header fields from the article before mailing.
36
37       In newsfeeds, the channel feed should look like:
38
39           news2mail!:!*:Ac,Tc,Wn*:<pathbin>/news2mail
40
41       and for each mailing-list, you only have to add to newsfeeds an entry
42       list like:
43
44           list-big-red-ants/lists.ucsd.edu\
45               :!*,rec.pets.red-ants\
46               :Ap,Tm:news2mail!
47
48       Please note the use of "Ap" and the exclusion of the list owner domain
49       to protect the list from feeding back new arrivals from the list.  The
50       site name used in the newfeeds entry for a mailing-list (above
51       "list-big-red-ants") must be the same as the first field in an entry in
52       news2mail.cf.  For instance:
53
54           # newsfeeds-name   list-to-address      [list-sender-address]
55           list-big-red-ants  ants@lists.ucsd.edu  news+ants@news.server.org
56

FILES

58       pathbin/news2mail
59           The Perl program itself used to gateway news into e-mails.
60
61       pathetc/news2mail.cf
62           The configuration file which specifies the mapping to use for
63           gatewaying.
64

BUGS

66       The news2mail program is set up as a funnelled channel in newsfeeds,
67       implying multiple matches should be handled as one - and multiple
68       matching funnelled feeds will result in a single call to the script.
69       Therefore, since only one mail is sent, crossposts are not currently
70       properly handled as for the envelope-from address (which then defaults
71       to the "news" user).
72

HISTORY

74       news2mail was written by Brian Kantor in 1998.  This man page was
75       written by James Brister and converted to POD by Julien Elie.  The
76       third optional field in news2mail.cf was added by D. Stussy in 2008.
77

SEE ALSO

79       innd(8), newsfeeds(5).
80
81
82
83INN 2.7.1                         2023-03-07                      NEWS2MAIL(8)
Impressum