Configure sendmail: email throttling
-
Hi Devs,
My system shot too many emails (admittedly, it was my mistake), and I was flagged as a spammer
So I took a look at the code, specifically at src/emailer.jsLooks like Nodebb is using sendmail.
May I recommend changing line 24 as follows:Emailer.transports = { sendmail: nodemailer.createTransport({ sendmail: true, newline: 'unix', pool: true, // use pooled connection rateLimit: true, // enable to make sure we are limiting maxConnections: 1, // set limit to 1 connection only maxMessages: 1 // send 1 emails per second }), }
Perhaps allow these settings to be configured from the ACP?
Kindly consider, thank you!
JJ. -
Please refer to the nodemailer documentation.
-
-
@JJSagan I believe he was providing the reference for the developers.
As this is a feature request, you may want to open an issue on GitHub.
Copyright © 2024 NodeBB | Contributors