3 innmail - Simple mail-sending program
7 B<innmail> [B<-h>] [B<-s> I<subject>] I<address> [I<address> ...]
11 B<innmail> is a Perl script intended to provide the non-interactive
12 mail-sending functionality of mail(1) while avoiding nasty security
13 problems. It takes the body of a mail message on standard input and sends
14 it to the specified addresses by invoking the value of I<mta> in
17 At least one address (formatted for the MTA specified in F<inn.conf>, if it
18 matters) is required. B<innmail> will sanitize the addresses so that they
19 contain only alphanumerics and the symbols C<@>, C<.>, C<->, C<+>, C<_>,
22 B<innmail> was written to be suitable for the I<mailcmd> setting in
31 Gives usage information.
33 =item B<-s> I<subject>
35 Sets the Subject: header of the message. A warning is issued if this
42 This sends a one-line message to the local user C<joe>:
44 echo "A one-line message." | innmail -s "Simple message" joe
46 B<innmail> by default is used by INN for sending nightly reports and
47 control message reports.
51 B<innmail> fails on addresses that begin with C<->, although one might
52 hope that the news server will not need to contact any such addresses.
54 There are many "correct" addresses that will be silently modified by the
55 sanitization process. A news administrator should be careful to use
56 particularly sane addresses if they may be passed to B<innmail>.
60 B<innmail> was written by James Brister <brister@vix.com> for
61 InterNetNews. This manual page was originally written by Jeffrey