Usage: mail-to-news [OPTIONS]...
-h --help Show help and exit. -V --version Show version and exit. -i FILENAME --input FILENAME Input file (defaults to stdin). -s HEADERS --strip-headers HEADERS Headers to strip. -a HEADER-LINES --add-header-lines HEADER-LINES Header lines to add. -H HOST --host HOST News server host (defaults to localhost). -p PORT --port PORT News server port (defaults to 119).
An example follows:
mail-to-news: "|mail-to-news -s \"Control Approved Newsgroups\" -a \"Resent-From: example@address.xx
Approved: example@address.xx
Newsgroups: example.newsgroups.x
\" -H example.newsserver -p 119"
Usually this program is started from scripts or other programs, like your MTA, using /etc/aliases, or using procmail without needing special privileges.
Both a general mail-to-news service than a specific one can be
offered: you can let (and so require) that the Newsgroups
header is specified in the message in the first case, or you can
overwrite it in the second case (the example shows the latter).