Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I've installed ssmtp and I can send emails fine using the ssmtp command. However the mail command doesn't work. How do I set this up?

share|improve this question
    
You don't say which distribution or version of Linux, UNIX or anything else you're using. So doing that would be useful. ssmtp for example could be running under Cygwin and the answer will be totally different if it's running under Debian, or SLES, etc. –  EightBitTony May 17 '12 at 12:27

3 Answers 3

up vote 2 down vote accepted

The command mail is usually provided by the mailx package.

License : BSD with advertising and MPLv1.1 Description : Mailx is an enhanced mail command, which provides the functionality : of the POSIX mailx command, as well as SysV mail and Berkeley Mail : (from which it is derived).

share|improve this answer

In case you're using Ubuntu: sudo apt-get install mailutils

share|improve this answer

If you are using Red Hat / CentOS: sudo yum -y install mailx

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.