trying to get mail working for subscriptions
this is my docker compose:
environment:
database__client: mysql
database__connection__host: blog-db
database__connection__user: root
database__connection__password: example
database__connection__database: ghost
url: https://blog.serversatho.me
TZ: America/New_York
security__staffDeviceVerification: false
privacy_useTinfoil: true
mail__options__auth__pass=: XXXXXX
mail__options__auth__user: evan@serversatho.me
mail__options__host: smtp.zoho.com
mail__options__port: 587
mail__options__secure: false
mail__options__service: zoho
mail__transport: SMTP
mail__from: evan@serversatho.me
this is the logs error:
[2025-12-02 16:17:19] ERROR Failed to send email. Reason: Invalid login: 535 Authentication Failed.
Failed to send email. Reason: Invalid login: 535 Authentication Failed.
"Please see https://ghost.org/docs/config/#mail for instructions on configuring email."
Error ID:
48f7e2b0-cfc4-11f0-b21c-db5c7e325661
Error Code:
EAUTH
----------------------------------------
Error: Invalid login: 535 Authentication Failed
at createMailError (/var/lib/ghost/versions/5.130.5/core/server/services/mail/GhostMailer.js:81:12)
at SMTPConnection._formatError (/var/lib/ghost/versions/5.130.5/node_modules/nodemailer/lib/smtp-connection/index.js:809:19)
at SMTPConnection._actionAUTHComplete (/var/lib/ghost/versions/5.130.5/node_modules/nodemailer/lib/smtp-connection/index.js:1588:34)
at SMTPConnection.<anonymous> (/var/lib/ghost/versions/5.130.5/node_modules/nodemailer/lib/smtp-connection/index.js:1542:18)
at SMTPConnection._processResponse (/var/lib/ghost/versions/5.130.5/node_modules/nodemailer/lib/smtp-connection/index.js:993:20)
at SMTPConnection._onData (/var/lib/ghost/versions/5.130.5/node_modules/nodemailer/lib/smtp-connection/index.js:774:14)
at SMTPConnection._onSocketData (/var/lib/ghost/versions/5.130.5/node_modules/nodemailer/lib/smtp-connection/index.js:195:44)
at TLSSocket.emit (node:events:524:28)
at addChunk (node:internal/streams/readable:561:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
at Readable.push (node:internal/streams/readable:392:5)
at TLSWrap.onStreamRead (node:internal/stream_base_commons:191:23)
[2025-12-02 16:17:19] ERROR "POST /members/api/send-magic-link/" 500 643ms
Failed to send email. Reason: Invalid login: 535 Authentication Failed.
"Please see https://ghost.org/docs/config/#mail for instructions on configuring email."
Error ID:
48f7e2b0-cfc4-11f0-b21c-db5c7e325661
Error Code:
EAUTH
----------------------------------------
Error: Invalid login: 535 Authentication Failed
at createMailError (/var/lib/ghost/versions/5.130.5/core/server/services/mail/GhostMailer.js:81:12)
at SMTPConnection._formatError (/var/lib/ghost/versions/5.130.5/node_modules/nodemailer/lib/smtp-connection/index.js:809:19)
at SMTPConnection._actionAUTHComplete (/var/lib/ghost/versions/5.130.5/node_modules/nodemailer/lib/smtp-connection/index.js:1588:34)
at SMTPConnection.<anonymous> (/var/lib/ghost/versions/5.130.5/node_modules/nodemailer/lib/smtp-connection/index.js:1542:18)
at SMTPConnection._processResponse (/var/lib/ghost/versions/5.130.5/node_modules/nodemailer/lib/smtp-connection/index.js:993:20)
at SMTPConnection._onData (/var/lib/ghost/versions/5.130.5/node_modules/nodemailer/lib/smtp-connection/index.js:774:14)
at SMTPConnection._onSocketData (/var/lib/ghost/versions/5.130.5/node_modules/nodemailer/lib/smtp-connection/index.js:195:44)
at TLSSocket.emit (node:events:524:28)
at addChunk (node:internal/streams/readable:561:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
at Readable.push (node:internal/streams/readable:392:5)
at TLSWrap.onStreamRead (node:internal/stream_base_commons:191:23)
based on all other posts this should be working but i get this error no matter what combo i try. was anyone successful in this?
also i had zoho on the phone just to make sure its not something weird on my end. using the tool SMTP Test Tool it worked no problem using same settings:
also on 587: