Re: How do I make qmail act like "mail"? (fwd)

2001-02-13 Thread Billy Hutton

Don't you hate it when you figure out your own question?  :)

> I was wondering if there was a wrapper or some other
> add-on that makes linux think "mail" is installed, but in fact just
> interprets "mail" commands to qmail commands.
> 
> cat $TMPDIR/checkreport.$$ | $MAIL -s "$HOSTNAME $DATE ACTIVE SYSTEM
> ATTACK!" $SYSADMIN

I guess you can make qmail act like sendmail, but sendmail still isn't
/bin/mail.  :)  But in /var/qmail/bin there are plenty of other
"wrapper" type programs.  Here's the same code from above, modified to
work with /var/qmail/bin/mailsubj, which takes input from stdin and allows
you to specify a subject and a recipient.  

cat $TMPDIR/checkreport.$$ | $MAIL "$HOSTNAME $DATE ACTIVE SYSTEM ATTACK!" 
$SYSADMIN






How do I make qmail act like "mail"? (fwd)

2001-02-13 Thread Billy Hutton

I appologize, but I am not sure if I'm on the list, so can you please
cc: any response to [EMAIL PROTECTED]?  Thanks.  :)

I have been running qmail for quite some time now.  I recently came across
a script that I'd like to use, but it is set up to use the
"mail" program.  I was wondering if there was a wrapper or some other
add-on that makes linux think "mail" is installed, but in fact just
interprets "mail" commands to qmail commands.

Rewriting the code below would also work.  I have been experimenting from
the command line, unfortunately with not much luck.  :(

cat $TMPDIR/checkreport.$$ | $MAIL -s "$HOSTNAME $DATE ACTIVE SYSTEM
ATTACK!" $SYSADMIN

The variables are no problem.  I just am not sure how to cat a file to
/var/qmail/bin/qmail-inject and also set a subject and recipient. :(

Thank you,
Billy