-bash: sendmail: command not found
I installed sendmail:
$ sudo apt-get install sendmail Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: procmail sensible-mda Suggested packages: sendmail-doc rmail The following NEW packages will be installed: procmail sendmail sensible-mda 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 587 kB of archives. After this operation, 805 kB of additional disk space will be used. Do you want to continue [Y/n]? y Get:1 http://mirrors.digitalocean.com/debian/ wheezy/main procmail i386 3.22-20 [154 kB] Get:2 http://mirrors.digitalocean.com/debian/ wheezy/main sensible-mda i386 8.14.4-4 [218 kB] Get:3 http://mirrors.digitalocean.com/debian/ wheezy/main sendmail all 8.14.4-4 [215 kB] Fetched 587 kB in 0s (779 kB/s) Selecting previously unselected package procmail. (Reading database ... 30414 files and directories currently installed.) Unpacking procmail (from .../procmail_3.22-20_i386.deb) ... Selecting previously unselected package sensible-mda. Unpacking sensible-mda (from .../sensible-mda_8.14.4-4_i386.deb) ... Selecting previously unselected package sendmail. Unpacking sendmail (from .../sendmail_8.14.4-4_all.deb) ... Processing triggers for man-db ... Setting up procmail (3.22-20) ... Setting up sensible-mda (8.14.4-4) ... Setting up sendmail (8.14.4-4) ...
But when I type “sendmail” it says the command isn’t found. Did I install sendmail properly? If I did, why is it saying the command isn’t found?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.