Email configuration using local Postfix
-
Is there a way to enable email by using the a local Postfix (or similar) install?
-
Yes. Just install local emailer plugin and dont configure it
-
@exo.do said:
Yes. Just install local emailer plugin and dont configure it
Where will I find this plugin? I have searched for email on the plugin list, and only Sendgrid shows. Thanks!
-
The list only currently shows plugins known to work on the version you're using. After I build automated testing for plugins I'll add a secondary tab which will let you install plugins that haven't been updated (but probably works anyways)
So, you'll need to
npm i nodebb-plugin-emailer-local
manually, the startup log will give you the command to undo it if it doesn't work.nodebb-plugin-emailer-local
NodeBB plugin to send emails via an SMTP service. Latest version: 1.0.1, last published: 7 years ago. Start using nodebb-plugin-emailer-local in your project by running `npm i nodebb-plugin-emailer-local`. There are no other projects in the npm registry using nodebb-plugin-emailer-local.
npm (www.npmjs.com)
-
@psychobunny excellent, thanks. It installed without problems, and test email went out, so it's alive!
-
nice
-
As of version 1.0.0 NodeBB has by default enabled sendmail transport plugin. So it's enough to make available "sendmail" command in your system.
For example on Debian Jessie with postfix installed you can do so with symlink:
ln -s /usr/sbin/sendmail /usr/local/bin/sendmail
and test it like:
echo "Test mail" | sendmail -i -f [email protected] [email protected]
Source: https://github.com/NodeBB/NodeBB/blob/master/src/emailer.js#L8
Note: I know it's an old thread, by I want to make it clear to those who comes here from google, like me.