Failed to send email. Reason: Invalid login: 535 Authentication failed. in koyeb

Failed to send email. Reason: Invalid login: 535 Authentication failed.

latest

  • koyeb
  • brave
  • [2025-03-26 20:28:41] WARN Missing mail.from config, falling back to a generated email address. Please update your config file and set a valid from address
    [2025-03-26 20:28:41] WARN Missing mail.from config, falling back to a generated email address. Please update your config file and set a valid from address
    [2025-03-26 20:28:41] ERROR “POST /ghost/api/admin/authentication/password_reset/” 500 10894ms
    Failed to send email. Reason: Invalid login: 535 Authentication failed.
    “Please see Configuration - Adapt your publication to suit your needs for instructions on configuring email.”
    Error ID:
    e8331980-0a80-11f0-9d25-e32def18efaa
    Error Code:
    EAUTH

Error: Invalid login: 535 Authentication failed
at createMailError (/var/lib/ghost/versions/5.114.1/core/server/services/mail/GhostMailer.js:81:12)
at SMTPConnection._formatError (/var/lib/ghost/versions/5.114.1/node_modules/nodemailer/lib/smtp-connection/index.js:807:19)
at SMTPConnection._actionAUTHComplete (/var/lib/ghost/versions/5.114.1/node_modules/nodemailer/lib/smtp-connection/index.js:1586:34)
at SMTPConnection. (/var/lib/ghost/versions/5.114.1/node_modules/nodemailer/lib/smtp-connection/index.js:554:26)
at SMTPConnection._processResponse (/var/lib/ghost/versions/5.114.1/node_modules/nodemailer/lib/smtp-connection/index.js:991:20)
at SMTPConnection._onData (/var/lib/ghost/versions/5.114.1/node_modules/nodemailer/lib/smtp-connection/index.js:772:14)
at SMTPConnection._onSocketData (/var/lib/ghost/versions/5.114.1/node_modules/nodemailer/lib/smtp-connection/index.js:195:44)
at TLSSocket.emit (node:events:517:28)
at addChunk (node:internal/streams/readable:368:12)
at readableAddChunk (node:internal/streams/readable:341:9)
at Readable.push (node:internal/streams/readable:278:10)
at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23)

Looks like you didn’t configure your email. Follow the self install directions for doing so :)

@Cathy_Sarisky how do i setup it use .env

Here’s a brief bit of docs here:

Docker setups typically use environment variables, so searching for docker on the forum may get you some extra examples