1MAILPOST(8) InterNetNews Documentation MAILPOST(8)
2
3
4
6 mailpost - feed an email message into a news group
7
9 mailpost [-a addr] [-b database] [-c wait-time] [-d distribution] [-f
10 addr] [-m mailing-list] [-p port] [-r addr] [-x header[:header...]]
11 [newsgroups ...]
12
14 The mailpost program reads a properly formatted email message from
15 stdin and feeds it to inews for posting to a news server. newsgroups is
16 a whitespace-separated list of group names to which to post the arti‐
17 cle.
18
19 Before feeding the article to inews, it checks that the article has not
20 been seen before, and it changes some headers (cleans up some address
21 headers and puts ``X-'' in front of unknown headers).
22
23 If the article has been seen before (mailpost records the message-id of
24 each articles it handles), then the article will be silently dropped.
25 Other errors will cause the article to be mailed to the newsmaster.
26
27 Normally mailpost is run by sendmail(8) via an alias entry:
28
29 local-mail-wreck-bikes: "⎪<pathbin in inn.conf>/mailpost
30 -d local local.mail.rec.bicycles.racing"
31
33 -a addr
34 If the -a flag is used the value given is added to the article as
35 an Approved header.
36
37 -b database
38 If the -b flag is used, then it defines the location of the data‐
39 base used to store the message ids of articles sent on. This is to
40 prevent articles looping around if a news to mail gateway sends
41 them back here. This option may be required if the mailpost process
42 doesn't have write access to the news tmp directory (the value of
43 pathtmp in inn.conf(5)).
44
45 -c wait-time
46 The -c flag indicates a length of time to sleep before posting. If
47 duplicate messages are received in this interval (by any instance
48 of mailpost using the same database), the article is only posted
49 once, but with Newsgroups: header modified to crosspost the article
50 to all indicated groups.
51
52 -d distribution
53 If the -d flag is used the value given is added to the article as a
54 Distribution: header.
55
56 -f addr
57 The -f flag is a synonym for the -r flag.
58
59 -m mailing-list
60 If the -m flag is used the value given is added to the articles in
61 a Mailing-List: header, if such a header doesn't already exist.
62
63 -p port
64 Specifies the port on which nnrpd is listening, used for article
65 posting. If given, -p is passed along to inews.
66
67 -r addr
68 A heuristic is used to determine a reasonable value for the Path:
69 header. The -r flag indicates what to use if no other value can be
70 determined.
71
72 -x header[:header...]
73 A colon-separated list of additional headers which should be
74 treated as known headers; these headers will be passed through to
75 inews(1) without having "X-" prepended.
76
78 Written by Paul Vixie long ago and then hacked up by James Brister for
79 INN integration.
80
81 $Id: mailpost.8 6658 2004-01-25 23:44:19Z rra $
82
84 <pathdb in inn.conf>/mailpost-msgid.db database file
85
87 Is lacking in configurability.
88
90 active(5), inn.conf(5), nnrpd(8), uwildmat(3).
91
92
93
94INN 2.4.2 2004-01-25 MAILPOST(8)