Everything tried and Emails still not sending
-
I found one of my nodebb instances has 50 users signed up that have just posted spam like "TEMU coupon code"
On AdminPanel/Manage/Users Delete is greyed out, at bottom of actions list.Edit fixed, by zooming browser to 90% so Delete options came onto page
-
Because of the number of spammers, I had another try and implementing email.
(If anyone hasnt seen my posts on this, I never got email sending to work, so had to turn email verification off)
Anyway in AdminPanel, selecting Zoho email, and entering Username and Password... trying to send test email
Invalid login: 535 Authentication FailedI cant reset an account password by email either, no sent emails show in the Zoho app
-
Ive tried emails with
zoho
yahoo
hotmail
icloud
All 535 errors
then tried gmail with app password but when clicked that app password link says cant do that with my gmail account.Then I opened a brand new email with fastmail. That has the option to generate an app password which brought me a step further to this:
Error
Can't send mail - all recipients were rejected: 504 5.5.2 : Sender address rejected: need fully-qualified address2024-12-21T21:03:39.061Z [4602/1170502] - [31merror[39m: [user.create] Validation email failed to send [emailer.send] Error: Invalid login: 535 Authentication Failed at SMTPConnection._formatError (/var/www/isurg.org/node_modules/nodemailer/lib/smtp-connection/index.js:807:19) at SMTPConnection._actionAUTHComplete (/var/www/isurg.org/node_modules/nodemailer/lib/smtp-connection/index.js:1586:34) at SMTPConnection.<anonymous> (/var/www/isurg.org/node_modules/nodemailer/lib/smtp-connection/index.js:1540:18) at SMTPConnection._processResponse (/var/www/isurg.org/node_modules/nodemailer/lib/smtp-connection/index.js:991:20) at SMTPConnection._onData (/var/www/isurg.org/node_modules/nodemailer/lib/smtp-connection/index.js:772:14) at SMTPConnection._onSocketData (/var/www/isurg.org/node_modules/nodemailer/lib/smtp-connection/index.js:195:44) at TLSSocket.emit (node:events:520:28) at addChunk (node:internal/streams/readable:559:12) at readableAddChunkPushByteMode (node:internal/streams/readable:510:3) at Readable.push (node:internal/streams/readable:390:5)
-
Tried more emails,
both Custom setups and using the named email providers in listError Can't send mail - all recipients were rejected: 504 5.5.2 : Sender address rejected: need fully-qualified address
I made sure the FROM name field at the top is the same as the email
-
Open that file on your server and change that block of code to the below then restart nodebb and see what it logs in
logs/output.log
// NodeMailer uses a combined "from" data.from = `${data.from_name}<${data.from}>`; delete data.from_name; console.log(data.from); await Emailer.fallbackTransport.sendMail(data);
I have a feeling your
from_name
has special characters and nodemailer doesn't like that. Try something like this.Instead of putting the same email in both fields.
-
theres no special characters, its
[email protected]i did have both fields the same, set to that. will try them different
-
The
From Name
field shouldn't be an email address, that can be just the name of your forum. I've made a fix so special characters shouldn't case issues anymore https://github.com/NodeBB/NodeBB/commit/a489abc763d7499721def088e6fe6e5598ee4056.Try something like
-
@eeeee Can you try:
telnet smtp.example.com 25
if it connects then:Ctrl ]
(right square bracket)quit
You can also try other ports as well:
telnet smtp.example.com 587
If you get something like:
Connection failed: Connection refused
Then it is a firewall block. Probably from your ISP/Hosting. If it is being refused, you can check your server's firewall. (FYI if it is Windows don't ask me, I wouldn't know the first thing about point and clicking), but for Linux, it could be ufw, iptables (those are the most common), let me know your distro and I will write up the instructions.