Final update, it worked on the production server!! so now our forum is working properly sending emails the Linux way on a Windows Server OS, quite nice I would say, just as a side note our forum is actually really small in number of users, as it is an internal forum, so I can't assure this setup will work out to other forum's expectations or needs, also I would like to add that this shouldn't be the way to do it on Windows as it is kind of a weird way to handle it so in later versions it would be nice to see it reworked or polished for Windows environments (especially because it looks like the program used to simulate sendmail on Windows is no longer receiving maintenance).
Deliver mails locally
mechanix last edited by
my nodebb forum (1.0.3) runs on a debian 7 server. There is also a postfix instance listening to port 25. I can´t recall but I´ve read somewhere that for a local transport nodebb uses sendmail. However, this doesn´t work, mails do not get delivered. Only after installing the
nodebb-plugin-emailer-localmail gets correctly delivered.
Is this plugin mandatory for delivering mails locally? Thank you
No, but I recommend a plugin, I've had many issues with sendmail.
@yariplus Which kind of issues did you have? Only with the setup? With sendmail or postfix?
I'm quite interested since I just set-up mine with plain postfix without NodeBB plugin and it's working fine for me.
@mechanix "This doesn't work, mails do not get delivered" is a bit imprecise. Are the logs (
systemctl status postfix -las root) showing anything relevant?
@frissdiegurke Specifically, I had issues with large email providers denying delivery. Especially Google, I could not get Google to accept any email whatsoever, until I started using an email plugin.
mechanix last edited by
@yariplus I have found that piece of information: https://community.nodebb.org/topic/6453/email-configuration-using-local-postfix/7
Postfix is working great. A test mail from the CLI
echo "Test mail" | sendmail -i -f email@example.com firstname.lastname@example.org delivered. However, when deactivating the
nodebb-plugin-emailer-locali see no delivery attempts in the logfiles.
Sendmail MTA is installed :
root@forum:~# which sendmail /usr/sbin/sendmail
@mechanix Are you trying this with the same user that runs your forum?
rootdoesn't sound well for that. And if you're running your forum as non-root you probably have to follow the advice within your linked post and symlink it into a non-super-user binaries directory.
@yariplus good to hear it's just that seriously I give a *** about services that block emails from non-trusted entities just because of that. E-Mail is a decentralized system therefor anybody can set-up his server; If google is not respecting this, I don't care about them.
mechanix last edited by mechanix
@frissdiegurke No no, root was actualy that user I was sudo in. The forum runs as a non privilged user. I created that symbolic link but mails aren´ t sent.
Sending mails from the cli with the user www-data works also.