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.


  • Admin

    @Felipe-Reis In my case, sendmail could not be executed because it was located in /usr/sbin, which wasn't in my $PATH variable.

    export PATH=$PATH:/usr/sbin did 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.


Log in to reply
 


Looks like your connection to NodeBB was lost, please wait while we try to reconnect.