How to install "mail"

9

1

I'm trying to install "mail" on a Red Hat 4.1.2-48 box. I tried:

yum install mail

It prints out:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.anl.gov
 * epel: mirror.steadfast.net
 * extras: centos.mirrors.tds.net
 * ius: mirror.rackspace.com
 * updates: yum.singlehop.com
base                                                     | 1.1 kB     00:00     
epel                                                     | 3.7 kB     00:00     
extras                                                   | 2.1 kB     00:00     
ius                                                      | 2.2 kB     00:00     
updates                                                  | 1.9 kB     00:00     
utterramblings                                           |  951 B     00:00     
Setting up Install Process
No package mail available.
Nothing to do

How can I work around this?

teepusink

Posted 2011-12-20T08:02:14.767

Reputation: 317

34.1.2? Really? – Ignacio Vazquez-Abrams – 2011-12-20T08:18:43.880

ok, figured out that I need to do "yum install mailx" instead. But why am I not getting any email still? – teepusink – 2011-12-20T08:35:27.410

Answers

16

Perhaps you meant yum install mailx?

You can test it sends emails using echo "Test" | mail yourname@domain.tld

Vlad

Posted 2011-12-20T08:02:14.767

Reputation: 768

Thanks Vlad, yes I figured that part out as posted in my comment above. But why am I not receiving the email now? What steps am I missing now? Thanks. – teepusink – 2011-12-20T08:42:29.147

What MTA are you using? Sendmail, exim? – Vlad – 2011-12-20T08:54:55.577

It is Sendmail. – teepusink – 2011-12-20T09:49:25.760

Have a look over the configuration http://www.sendmail.com/sm/open_source/docs/configuration_readme/

If everything looks ok, check to see if the messages are bounced by the recipient's server or marked/sent to spam.

– Vlad – 2011-12-20T11:41:01.697

its echo "Body" | mailx "subject" yourmailid – None – 2014-01-09T09:23:29.887