Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Tech
  3. Verification emails not working properly

Verification emails not working properly

Scheduled Pinned Locked Moved Tech
4 Posts 2 Posters 2 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    Guest
    wrote on last edited by
    #1

    Hi! I've got a v4.2.0 server running on MongoDB.

    I've set up my SMTP server using FastMail, and the validation emails all seem to be working fine, but when sending verification emails, I see the following in the logs:

    Mar 29 23:09:03 host002.local env[129031]: 2025-03-29T23:09:03.466Z [4567/129031] - error: [user.create] Validation email failed to send
    Mar 29 23:09:03 host002.local env[129031]: [emailer.send] Error: Message failed: 551 5.7.1 Not authorised to send from this header address
    Mar 29 23:09:03 host002.local env[129031]:     at SMTPConnection._formatError (/home/nodebb/nodebb/node_modules/nodemailer/lib/smtp-connection/index.js:809:19)
    Mar 29 23:09:03 host002.local env[129031]:     at SMTPConnection._actionSMTPStream (/home/nodebb/nodebb/node_modules/nodemailer/lib/smtp-connection/index.js:1730:34)
    Mar 29 23:09:03 host002.local env[129031]:     at SMTPConnection. (/home/nodebb/nodebb/node_modules/nodemailer/lib/smtp-connection/index.js:1198:22)
    Mar 29 23:09:03 host002.local env[129031]:     at SMTPConnection._processResponse (/home/nodebb/nodebb/node_modules/nodemailer/lib/smtp-connection/index.js:993:20)
    Mar 29 23:09:03 host002.local env[129031]:     at SMTPConnection._onData (/home/nodebb/nodebb/node_modules/nodemailer/lib/smtp-connection/index.js:774:14)
    Mar 29 23:09:03 host002.local env[129031]:     at SMTPConnection._onSocketData (/home/nodebb/nodebb/node_modules/nodemailer/lib/smtp-connection/index.js:195:44)
    Mar 29 23:09:03 host002.local env[129031]:     at TLSSocket.emit (node:events:518:28)
    Mar 29 23:09:03 host002.local env[129031]:     at addChunk (node:internal/streams/readable:561:12)
    Mar 29 23:09:03 host002.local env[129031]:     at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
    Mar 29 23:09:03 host002.local env[129031]:     at Readable.push (node:internal/streams/readable:392:5)
    Mar 29 23:09:22 host002.local env[129031]:   started
    

    I'm not sure how to drill into this - why would it work fine sending test emails, including verification ones, but then actual verification emails just fail?

    Thanks!

    astro-what@community.nodebb.orgA 1 Reply Last reply
    0
    • ? Guest

      Hi! I've got a v4.2.0 server running on MongoDB.

      I've set up my SMTP server using FastMail, and the validation emails all seem to be working fine, but when sending verification emails, I see the following in the logs:

      Mar 29 23:09:03 host002.local env[129031]: 2025-03-29T23:09:03.466Z [4567/129031] - error: [user.create] Validation email failed to send
      Mar 29 23:09:03 host002.local env[129031]: [emailer.send] Error: Message failed: 551 5.7.1 Not authorised to send from this header address
      Mar 29 23:09:03 host002.local env[129031]:     at SMTPConnection._formatError (/home/nodebb/nodebb/node_modules/nodemailer/lib/smtp-connection/index.js:809:19)
      Mar 29 23:09:03 host002.local env[129031]:     at SMTPConnection._actionSMTPStream (/home/nodebb/nodebb/node_modules/nodemailer/lib/smtp-connection/index.js:1730:34)
      Mar 29 23:09:03 host002.local env[129031]:     at SMTPConnection. (/home/nodebb/nodebb/node_modules/nodemailer/lib/smtp-connection/index.js:1198:22)
      Mar 29 23:09:03 host002.local env[129031]:     at SMTPConnection._processResponse (/home/nodebb/nodebb/node_modules/nodemailer/lib/smtp-connection/index.js:993:20)
      Mar 29 23:09:03 host002.local env[129031]:     at SMTPConnection._onData (/home/nodebb/nodebb/node_modules/nodemailer/lib/smtp-connection/index.js:774:14)
      Mar 29 23:09:03 host002.local env[129031]:     at SMTPConnection._onSocketData (/home/nodebb/nodebb/node_modules/nodemailer/lib/smtp-connection/index.js:195:44)
      Mar 29 23:09:03 host002.local env[129031]:     at TLSSocket.emit (node:events:518:28)
      Mar 29 23:09:03 host002.local env[129031]:     at addChunk (node:internal/streams/readable:561:12)
      Mar 29 23:09:03 host002.local env[129031]:     at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
      Mar 29 23:09:03 host002.local env[129031]:     at Readable.push (node:internal/streams/readable:392:5)
      Mar 29 23:09:22 host002.local env[129031]:   started
      

      I'm not sure how to drill into this - why would it work fine sending test emails, including verification ones, but then actual verification emails just fail?

      Thanks!

      astro-what@community.nodebb.orgA This user is from outside of this forum
      astro-what@community.nodebb.orgA This user is from outside of this forum
      [email protected]
      wrote on last edited by
      #2

      Are you by chance using an email provider with a set user account@domain specific to them (like Hotmail or Google) and then using a different domain address for your website?
      Not unusual if so as most do not allow relaying other domains through an account unless it is specifically allowed.

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        Guest
        wrote on last edited by
        #3

        Yes, that might be it! I'll see if I'm able to create a login for the proper domain, great idea!

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          Guest
          wrote on last edited by
          #4

          Silly thing - it looks like the problem was that I changed which domain the emailer was sending from (moved to forums., but forgot to set it to that in the email settings, and didn't notice the discrepancy much after because the test email works fine. It's working great now after fixing that. Thanks for the idea to check the login domain! I did not have to switch that out for Fastmail after all.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups