SYNOPSIS

       mailpost [-a addr] [-b database] [-c wait-time] [-d distribution] [-f
       addr] [-m mailing-list] [-p port] [-r addr] [-x header[:header...]]
       [newsgroups ...]


DESCRIPTION

       The mailpost program reads a properly formatted email message from
       stdin and feeds it to inews for posting to a news server. newsgroups is
       a whitespace-separated list of group names to which to post the arti-
       cle.

       Before feeding the article to inews, it checks that the article has not
       been seen before, and it changes some headers (cleans up some address
       headers and puts ``X-'' in front of unknown headers).

       If the article has been seen before (mailpost records the message-id of
       each articles it handles), then the article will be silently dropped.
       Other errors will cause the article to be mailed to the newsmaster.

       Normally mailpost is run by sendmail(8) via an alias entry:

       local-mail-wreck-bikes: "|<pathbin in inn.conf>/mailpost
                -d local local.mail.rec.bicycles.racing"


OPTIONS

       -a addr
           If the -a flag is used the value given is added to the article as
           an Approved header.

       -b database
           If the -b flag is used, then it defines the location of the data-
           base used to store the message ids of articles sent on. This is to
           prevent articles looping around if a news to mail gateway sends
           them back here. This option may be required if the mailpost process
           doesn't have write access to the news tmp directory (the value of
           pathtmp in inn.conf(5)).

       -c wait-time
           The -c flag indicates a length of time to sleep before posting.  If
           duplicate messages are received in this interval (by any instance
           of mailpost using the same database), the article is only posted
           once, but with Newsgroups: header modified to crosspost the article
           to all indicated groups.

       -d distribution
           If the -d flag is used the value given is added to the article as a
           Distribution: header.

       -f addr
           The -f flag is a synonym for the -r flag.

       -m mailing-list
           treated as known headers; these headers will be passed through to
           inews(1) without having "X-" prepended.


HISTORY

       Written by Paul Vixie long ago and then hacked up by James Brister for
       INN integration.

       $Id: mailpost.8 6658 2004-01-25 23:44:19Z rra $


FILES

       <pathdb in inn.conf>/mailpost-msgid.db  database file


BUGS

       Is lacking in configurability.


SEE ALSO

       active(5), inn.conf(5), nnrpd(8), uwildmat(3).



INN 2.4.2                         2004-01-25                       MAILPOST(8)

Man(1) output converted with man2html