ssmtp - Mail command not found

12,804

Solution 1

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).

Solution 2

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

Solution 3

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

Share:
12,804

Related videos on Youtube

DD.
Author by

DD.

Updated on September 18, 2022

Comments

  • DD.
    DD. almost 2 years

    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?