Can't login with self domain mail

Recently updated my blog to 5.12, but can’t sign in with any email that’s from my own domain (e.g. foobar@nehalist.io). All other mails work well. I have no idea why.

  • What’s your URL? nehalist.io

  • What version of Ghost are you using? 5.12

  • How was Ghost installed and configured?
    Self-hosted

  • What Node version, database, OS & browser are you using?
    Node 14, MariaDB 10, ubuntu

  • What errors or information do you see in the console?

[2022-09-01 13:00:38] ERROR Failed to send email. Reason: Sending failed.

Failed to send email. Reason: Sending failed.

"Please see https://ghost.org/docs/config/#mail for instructions on configuring email."

Error ID:
    137d5d30-29f6-11ed-8b15-2b98652a62c6

----------------------------------------

Error: Sending failed
    at createMailError (/<home>/ghost/versions/5.12.0/core/server/services/mail/GhostMailer.js:67:12)
    at DirectMailer.<anonymous> (/<home>/ghost/versions/5.12.0/node_modules/nodemailer-direct-transport/lib/direct-transport.js:157:41)
    at DirectMailer.<anonymous> (/<home>/ghost/versions/5.12.0/node_modules/nodemailer-direct-transport/lib/direct-transport.js:228:30)
    at DirectMailer.<anonymous> (/<home>/ghost/versions/5.12.0/node_modules/nodemailer-direct-transport/lib/direct-transport.js:326:28)
    at Object.onceWrapper (events.js:520:26)
    at SMTPConnection.emit (events.js:400:28)
    at SMTPConnection._onError (/<home>/ghost/versions/5.12.0/node_modules/smtp-connection/lib/smtp-connection.js:518:10)
    at SMTPConnection._actionEHLO (/<home>/ghost/versions/5.12.0/node_modules/smtp-connection/lib/smtp-connection.js:939:18)
    at SMTPConnection._processResponse (/<home>/ghost/versions/5.12.0/node_modules/smtp-connection/lib/smtp-connection.js:669:16)
    at SMTPConnection._onData (/<home>/ghost/versions/5.12.0/node_modules/smtp-connection/lib/smtp-connection.js:493:10)
    at Socket.emit (events.js:400:28)
    at addChunk (internal/streams/readable.js:293:12)
    at readableAddChunk (internal/streams/readable.js:267:9)
    at Socket.Readable.push (internal/streams/readable.js:206:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:188:23)

Still haven’t figured out how to fix this. Tried creating a GitHub issue, was redirected here.