Skip to content

MailGun Not Working NodeBB

Solved Configure
  • Hi
    I setted mail server as mailgun.
    But forum not sending registered email .

  • @cagatay said in MailGun Not Working NodeBB:

    Hi
    I setted mail server as mailgun.
    But forum not sending registered email .

    022-11-04T13:07:20.734Z [4568/172189] - error: [user.create] Validation email failed to send
    [emailer.send] Error: Invalid login: 535 Authentication failed
        at SMTPConnection._formatError (/home/nojor/nodebb/node_modules/nodemailer/lib/smtp-connection/index.js:784:19)
        at SMTPConnection._actionAUTHComplete (/home/nojor/nodebb/node_modules/nodemailer/lib/smtp-connection/index.js:1536:34)
        at SMTPConnection.<anonymous> (/home/nojor/nodebb/node_modules/nodemailer/lib/smtp-connection/index.js:540:26)
        at SMTPConnection._processResponse (/home/nojor/nodebb/node_modules/nodemailer/lib/smtp-connection/index.js:947:20)
        at SMTPConnection._onData (/home/nojor/nodebb/node_modules/nodemailer/lib/smtp-connection/index.js:749:14)
        at TLSSocket.SMTPConnection._onSocketData (/home/nojor/nodebb/node_modules/nodemailer/lib/smtp-connection/index.js:189:44)
        at TLSSocket.emit (events.js:400:28)
        at addChunk (internal/streams/readable.js:293:12)
        at readableAddChunk (internal/streams/readable.js:267:9)
        at TLSSocket.Readable.push (internal/streams/readable.js:206:10)
    2022-11-04T13:08:50.302Z [4568/172189] - error: [user.create] Validation email failed to send
    [emailer.send] Error: Invalid login: 535 Authentication failed
        at SMTPConnection._formatError (/home/nojor/nodebb/node_modules/nodemailer/lib/smtp-connection/index.js:784:19)
        at SMTPConnection._actionAUTHComplete (/home/nojor/nodebb/node_modules/nodemailer/lib/smtp-connection/index.js:1536:34)
        at SMTPConnection.<anonymous> (/home/nojor/nodebb/node_modules/nodemailer/lib/smtp-connection/index.js:540:26)
        at SMTPConnection._processResponse (/home/nojor/nodebb/node_modules/nodemailer/lib/smtp-connection/index.js:947:20)
        at SMTPConnection._onData (/home/nojor/nodebb/node_modules/nodemailer/lib/smtp-connection/index.js:749:14)
        at TLSSocket.SMTPConnection._onSocketData (/home/nojor/nodebb/node_modules/nodemailer/lib/smtp-connection/index.js:189:44)
        at TLSSocket.emit (events.js:400:28)
        at addChunk (internal/streams/readable.js:293:12)
        at readableAddChunk (internal/streams/readable.js:267:9)
        at TLSSocket.Readable.push (internal/streams/readable.js:206:10)
    2022-11-04T13:08:50.302Z [4568/172189] - error: admin.user.sendValidationEmail
    Error: Email sending failed for the following uids, check server logs for more info: 5
        at User.sendValidationEmail (/home/nojor/nodebb/src/socket.io/admin/user.js:91:9)
        at runMicrotasks (<anonymous>)
        at processTicksAndRejections (internal/process/task_queues.js:95:5)
        at async onMessage (/home/nojor/nodebb/src/socket.io/index.js:160:19)
    2022-11-04T13:12:42.634Z [4568/172189] - error: [user.create] Validation email failed to send
    [emailer.send] Error: Invalid login: 535 Authentication failed
        at SMTPConnection._formatError (/home/nojor/nodebb/node_modules/nodemailer/lib/smtp-connection/index.js:784:19)
        at SMTPConnection._actionAUTHComplete (/home/nojor/nodebb/node_modules/nodemailer/lib/smtp-connection/index.js:1536:34)
        at SMTPConnection.<anonymous> (/home/nojor/nodebb/node_modules/nodemailer/lib/smtp-connection/index.js:540:26)
        at SMTPConnection._processResponse (/home/nojor/nodebb/node_modules/nodemailer/lib/smtp-connection/index.js:947:20)
        at SMTPConnection._onData (/home/nojor/nodebb/node_modules/nodemailer/lib/smtp-connection/index.js:749:14)
        at TLSSocket.SMTPConnection._onSocketData (/home/nojor/nodebb/node_modules/nodemailer/lib/smtp-connection/index.js:189:44)
        at TLSSocket.emit (events.js:400:28)
        at addChunk (internal/streams/readable.js:293:12)
        at readableAddChunk (internal/streams/readable.js:267:9)
        at TLSSocket.Readable.push (internal/streams/readable.js:206:10)
    2022-11-04T13:12:42.634Z [4568/172189] - error: admin.user.sendValidationEmail
    Error: Email sending failed for the following uids, check server logs for more info: 5
        at User.sendValidationEmail (/home/nojor/nodebb/src/socket.io/admin/user.js:91:9)
        at runMicrotasks (<anonymous>)
        at processTicksAndRejections (internal/process/task_queues.js:95:5)
        at async onMessage (/home/nojor/nodebb/src/socket.io/index.js:160:19)
    
  • @cagatay said in MailGun Not Working NodeBB:

    Error: Invalid login: 535 Authentication failed

    The clue is in the error message

    Error: Invalid login: 535 Authentication failed
    

    You should check the username and password.

  • @phenomlab it should be created by mailgun or my mail is also working yandex.

    that user and pass yandex mail but service mailgun how can i fix it i do not know.

    320ad480-68f6-4dac-b48c-3623a1469f7e-image.png

  • @cagatay What happens if you try to send a test message?

  • @phenomlab did it 🙂 i did not create smtp user on mailgun. everything is working now.

    6cc6061f-ed5d-41f6-8eb7-5d98f98b3706-image.png

  • cagatayundefined cagatay has marked this topic as solved on

Did this solution help you?
Did you find the suggested solution useful? Why not buy me a coffee? It's a nice gesture, and a great way to show your appreciation 💗

  • 3 Votes
    30 Posts
    419 Views

    @DownPW any update?

  • Getting Eror When Started NodeBB

    Solved Configure
    7
    2 Votes
    7 Posts
    257 Views

    @phenomlab yes i did.

    i deleted one of plugin then it started to work normally.

  • 0 Votes
    2 Posts
    122 Views

    @mventures Quick reply is basically exactly that. However, it’s possible to trigger the full composer as below

    82ca1209-31be-4a51-a641-9887b5a238b8-image.png

    Failing that, you’ll need to use the reply button in the sticky toolbar

    1d230bcb-ff8e-4756-94f7-6e2fb7a94bc4-image.png

  • 0 Votes
    6 Posts
    225 Views

    @mventures You’d need to connect to the server and execute it directly - not on your local terminal. Review the guide below, which will show you how to gain access via SSH to your server

    https://docs.ovh.com/gb/en/dedicated/ssh-introduction/

    Once you have access, you’ll need to navigate to the actual folder where NodeBB is installed

    You’ll then need to change to the directory as shown below

    /home/unbuntu/nodebb

    fdffe673-bf63-4b6d-a728-5506fddc1aff-image.png

    In most cases, initial access takes you to the root of the file system. You can always issue pwd in a Linux terminal which will show you the Present Working Directory. From there, you can issue the command

    cd /home/ubuntu/nodebb

    Once in the NodeBB directory, you’d use the below commands

    ./nodebb stop git fetch && git checkout develop && git reset --hard origin/develop ./nodebb upgrade ./nodebb start

    Line 1 stops the NodeBB instance
    Line 2 gets the latest files from GIT (repository) and then checks out the development branch. It then resets the version you are using to the development branch ready for v3
    Line 3 Runs the upgrade once the new branch is set, and code pulled
    Line 4 Restarts the NodeBB instance after the upgrade has completed

    Note that when you restart NodeBB and log back in, things will look very different to what you had in v2.

  • nodebb loading emojis

    Solved Configure
    16
    1 Votes
    16 Posts
    464 Views

    @DownPW sure. Let me have a look at this in more detail. I know nginx plus has extensive support for this, but it’s not impossible to get somewhere near acceptable with the standard version.

    You might be better off handling this at the Cloudflare level given that it sits in between the requesting client and your server.

  • Podcast Share NodeBB

    Solved Configure
    15
    4 Votes
    15 Posts
    483 Views

    @cagatay You could experiment with nodebb-plugin-ns-embed but I expect the x-origin tag on the remote site to prevent playback.

  • Configure SMTP for Nodebb

    Solved Configure
    14
    5 Votes
    14 Posts
    782 Views

    @marusaky based on the work completed thus far (in relation to PM exchanges), I’m going to mark this completed. Sending email from the server itself works fine without issue, and DNS appears to be clean (valid SPF, DMARC, and DKIM records).

    It appears that only Gmail marks incoming messages from your domain as spam - perhaps because of the domain age, which there is nothing we can do to prevent this. Mail delivery to all other domains appears to work fine in al of my tests.

  • nodebb dropdown menu

    Solved Configure
    5
    0 Votes
    5 Posts
    428 Views

    @phenomlab said in nodebb dropdown menu:

    @kurulumu-net You set it like the below example taken from this site

    aae36790-3257-4bb2-ad5a-0d744309876a-image.png

    Which presents this

    77f47260-2941-4afe-9614-8e17dcfc8c19-image.png

    Very interesting…

    I actually thought this wasn’t possible, as I remember it being asked in the NodeBB forum.

    Is this something new that’s been implemented? I’ll 100% be doing that when I’m on the laptop over the weekend.