Re: [SLUG] whence /bin/mail?

From: Paul M Foster (paulf@quillandmouse.com)
Date: Sat Oct 16 2004 - 01:11:27 EDT


On Fri, Oct 15, 2004 at 03:20:50PM -0400, Eben King wrote:

> On Fri, 15 Oct 2004, steve szmidt wrote:
>
> > On Friday 15 October 2004 01:27 pm, Eben King wrote:
> > > Back when (Redhat 7.2 and before?) there was a utility called "mail" with
> > > which I could do thing like
> > >
> > > echo "Time to make the doughnuts." | mail -s "Doughnut time"
> emp@dunkin.com
> > >
> > > which would send a mail with the subject "Doughnut time" and the body
> > > "Time to make the doughnuts." to emp@dunkin.com . No executable called
> > > "mail" exists anywhere that I can find. I'm using Redhat 8
> > > (sendmail-8.12.5-7). How do I regain that functionality?
> >
> > That's what it still is. Check that 'man mail' works, then check your
> > sendmail settings.
>
> [eben@pc eben]$ man mail
> No manual entry for mail
>
> [eben@pc eben]$ locate bin/mail
> /usr/bin/mailq
> /usr/bin/mailstat
> /usr/bin/mailq.sendmail
> /usr/bin/mail-files
> /usr/bin/mailshar
> /usr/lib/news/bin/mailpost
> /usr/sbin/mailstats
>
> What should I look for in the settings?
>
> mailx-8.1.1-26.i386.rpm has /bin/mail ; should I convert, or does a
> similar utility exist in sendmail?

No need to "convert". Sendmail has similar capabilities, but the "mail"
program is a separate entity. While sendmail watches your port 25 and
has all sorts of queues and such, "mail" is more of a one-off command
line utility. You should be able to install it along side sendmail.

Paul

-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:51:59 EDT