Sendmail command not recognized by server

Keywords: LAMP/MAMP/WAMP - AWS - Technical issue - Email configuration (SMTP)
bnsupport ID: c7e6beb7-ab47-d988-3847-85420aa3e5a2

I’ve been runing 8 aws lightsail lamps, all with the same configuration without a problem.
Now i have created a new instance and when configuring sendmail, i found that is properly installed by when typing sendmail, i get the message “command not found”… That creates the problem that my php scripts don’t work.
When i ask whereis sendmail i get this answer:
sendmail: /usr/sbin/sendmail /usr/lib/sendmail /usr/share/sendmail /usr/share/man/man8/sendmail.8.gz

Any idea why this is happening?

Hi @jlcaaveiro,

You need to install the package now. To achieve that, please run these commands

sudo apt update
sudo apt install sendmail sendmail-cf m4

Happy to help!

Was my answer helpful? Click on :heart:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.