Emails still not sending, 535
-
Because of the number of spammers, I had another try at implementing email requirement for registration.
(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 Failed -
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.
-
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.
-
@codenamejessica said in Everything tried and Emails still not sending:
@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
Thanks Jessica, Im running my own Ubuntu server, no firewall that I know of
Should I be typing
telnet smtp.example.com 25
In a terminal on Ubuntu on server machine?Which email service do you use on your site?
-
You would run that on the system that is sending the mail. It would sound like the server. If this is on your home lab, I can almost guarantee that your ISP is blocking port 25. I have never seen an ISP have port 25 open unless you are paying for business class and usually have a static IP.
-
Ah, what is the significance of port 25?
Kindly @phenomlab logged in for me and set up custom settings for fastmail using port 465 and I regenerated the fastmail app password and now its sending test email
However this is a paid service and Im just using it on a 30 day free trial
Would prefer to use a free email (but none of those without the app password work)Which email service do you use @codenamejessica ? Did you have any of these issues?
Are you using your own internal post-fix mail service, or one of the well known email providers? -
Yes, so, let's do a few tests here.
Use whatever smtp address they give you for your account:
- See if this connects:
telnet smtp.zoho.in 465
- If you connect, we are going to run a few commands:
- The domain you want to send an email to:
EHLO yourdomain.com
- The domain you want to send an email to:
Expected output would look something like this:
250-smtp.zoho.in
250-PIPELINING
250-SIZE 10485760
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN- Continue in the prompt:
MAIL FROM: <[email protected]>
RCPT TO: <[email protected]>
.
Ok now this is where it will get tricky:
`DATA From: [email protected] To: [email protected] Subject: Telnet email on This is my first plain text test email message sent using the Telnet client on Windows` .
There are some important characters there: the ` is one of the from the beginning and the end. As well as the period at the end.
If everything went well, you should receive something like:
250 2.0.0 Ok: queued as <the item id in the queue>
- See if this connects:
-
-
OH VERY IMPORTANT!!!! NodeBB needs at least the M plan (Medium) -- I think right now it is $6/mo
jbrowns.com is running M and that is my DEV
codenamejessica.com is running L and that is my PROD -
Thanks for that, its a little over my head to be honest but I will study what you wrote and hopefully learn something
So although fastmail is working sending out test email now, Im really wanting a free email.
Ive tried many mails server on the list.
For example just tried AOL. Set up a brand new account. Put those details in Admin panel and gotError Invalid login: 535 5.7.0 (#AUTH005) Too many bad auth attempts.
How can there be too many attempts when its a new account.
All the other free emails I tried give this error too -
@eeeee too many bad auth attempts means you've specified an incorrect password too many times within an allocated time frame.
If you have your own vps, you can install postfix but will also require SPF, DKIM, and DMARC records added to your domain otherwise any message you send will be sent to junk. You'll also need port 25 unblocked by your provider as its the norm these days for it to be blocked to prevent misuse.
You could relay through Gmail?