Skip to content

[fix] SMPT verification issue self hosted mode #362

@S4r4h-O

Description

@S4r4h-O

When the user is trying to verify and enable SMTP, the system tries to automatically connect with support@<userdomain.com>. This behavior causes errors if there's no alias with that name.

ℹ info User "support@mail.<userdomain.com>" failed to authenticate {
component: 'smtp-connection',
sid: 'ODNk1UBOuo',
tnx: 'smtp',
username: 'support@mail.<userdomain.com>',
action: 'authfail',
method: 'PLAIN',
level: 'info',
app: {
name: 'forward-email',
version: '1.0.2',
node: 'v20.19.0',
environment: 'production',
hostname: 'mail.<userdomain.com>',
ip: '',
pid: 1,
cluster: { isPrimary: true, isWorker: false, schedulingPolicy: 2 },
os: {
arch: 'x64',
cpus: [Array],
endianness: 'LE',
freemem: 6923288576,
priority: 0,
homedir: '/root',
hostname: 'mail.<userdomain.com>',
loadavg: [Array],
network_interfaces: [Object],
platform: 'linux',
release: '5.15.0-139-generic',
tmpdir: '/tmp',
totalmem: 8322469888,
type: 'Linux',
uptime: 2812.35,
user: [Object],
version: '#149-Ubuntu SMP Fri Apr 11 22:06:13 UTC 2025'
},
worker_threads: {
isMainThread: true,
resourceLimits: {},
threadId: 0,
workerData: null
}
}
}
✖ error Send Error: Invalid login: 535 Invalid password, please try again or go to https://mail.<userdomain.com>:443/my-account/domains/mail.<userdomain.com>/aliases and click "Generate Password" {
component: 'mail',
err: {
name: 'Error',
message: 'Invalid login: 535 Invalid password, please try again or go to https://mail.<userdomain.com>:443/my-account/domains/mail.<userdomain.com>/aliases and click "Generate Password"',
stack: 'Error: Invalid login: 535 Invalid password, please try again or go to https://mail.<userdomain.com>:443/my-account/domains/mail.<userdomain.com>/aliases and click "Generate Password"\n' +
' at SMTPConnection._formatError (/app/node_modules/.pnpm/[email protected]/node_modules/nodemailer/lib/smtp-connection/index.js:809:19)\n' +
' at SMTPConnection._actionAUTHComplete (/app/node_modules/.pnpm/[email protected]/node_modules/nodemailer/lib/smtp-connection/index.js:1588:34)\n' +
' at SMTPConnection. (/app/node_modules/.pnpm/[email protected]/node_modules/nodemailer/lib/smtp-connection/index.js:556:26)\n' +
' at SMTPConnection._processResponse (/app/node_modules/.pnpm/[email protected]/node_modules/nodemailer/lib/smtp-connection/index.js:993:20)\n' +
' at SMTPConnection._onData (/app/node_modules/.pnpm/[email protected]/node_modules/nodemailer/lib/smtp-connection/index.js:774:14)\n' +
' at SMTPConnection._onSocketData (/app/node_modules/.pnpm/[email protected]/node_modules/nodemailer/lib/smtp-connection/index.js:195:44)\n' +
' at TLSSocket.emit (node:events:524:28)\n' +
' at addChunk (node:internal/streams/readable:561:12)\n' +
' at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n' +
' at Readable.push (node:internal/streams/readable:392:5)\n' +
' at TLSWrap.onStreamRead (node:internal/stream_base_commons:191:23)',
code: 'EAUTH',
response: '535 Invalid password, please try again or go to https://mail.<userdomain.com>:443/my-account/domains/mail.<userdomain.com>/aliases and click "Generate Password"',
responseCode: 535,
command: 'AUTH PLAIN'
},
tnx: 'transport',
action: 'send',
original_err: {
name: 'Error',
message: 'Invalid login: 535 Invalid password, please try again or go to https://mail.<userdomain.com>:443/my-account/domains/mail.<userdomain.com>/aliases and click "Generate Password"',
stack: 'Error: Invalid login: 535 Invalid password, please try again or go to https://mail.<userdomain.com>:443/my-account/domains/mail.<userdomain.com>/aliases and click "Generate Password"\n' +
' at SMTPConnection._formatError (/app/node_modules/.pnpm/[email protected]/node_modules/nodemailer/lib/smtp-connection/index.js:809:19)\n' +
' at SMTPConnection._actionAUTHComplete (/app/node_modules/.pnpm/[email protected]/node_modules/nodemailer/lib/smtp-connection/index.js:1588:34)\n' +
' at SMTPConnection. (/app/node_modules/.pnpm/[email protected]/node_modules/nodemailer/lib/smtp-connection/index.js:556:26)\n' +
' at SMTPConnection._processResponse (/app/node_modules/.pnpm/[email protected]/node_modules/nodemailer/lib/smtp-connection/index.js:993:20)\n' +
' at SMTPConnection._onData (/app/node_modules/.pnpm/[email protected]/node_modules/nodemailer/lib/smtp-connection/index.js:774:14)\n' +
' at SMTPConnection._onSocketData (/app/node_modules/.pnpm/[email protected]/node_modules/nodemailer/lib/smtp-connection/index.js:195:44)\n' +
' at TLSSocket.emit (node:events:524:28)\n' +
' at addChunk (node:internal/streams/readable:561:12)\n' +
' at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n' +
' at Readable.push (node:internal/streams/readable:392:5)\n' +
' at TLSWrap.onStreamRead (node:internal/stream_base_commons:191:23)',
code: 'EAUTH',
response: '535 Invalid password, please try again or go to https://mail.<userdomain.com>:443/my-account/domains/mail.<userdomain.com>/aliases and click "Generate Password"',
responseCode: 535,
command: 'AUTH PLAIN'
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions