Can't send email from AWS host
I've installed NodeBB on a Ubuntu machine hosted on AWS.
I can't send a test email from the configuration page. I keep getting the error "Spawn sendmail ENOENT". I've tried to configure the "Gmail Router" setting, putting in my gmail account details with no success. I've tried to use the nodebb-plugin-emailer-amazon typing in my my public and secret SES Keys but that didn't work as well. The error message is always the same: "Spawn sendmail ENOENT".
I'm a total beginner when it comes to NodeBB, so I don't even know where to start looking in order to debug that error. Any help will be much appreciated.
I have also installed installed and configured (sudo sendmailconfig) sendmail.
@Felipe-Reis In my case,
sendmailcould not be executed because it was located in
/usr/sbin, which wasn't in my
export PATH=$PATH:/usr/sbindid the trick. You'll probably want to add it to your init script, or if you're running NodeBB manually, then add it to your bash script or run it by hand before starting NodeBB.