You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use Sendgrid for Mail sending. SendGrid uses the username apikey for authentication, but Immich only accepts email addresses as a username,
# The location where your uploaded files are stored
UPLOAD_LOCATION=/mnt/ssd-1tb/library
# The Immich version to use. You can pin this to a specific version like "v1.71.0"
IMMICH_VERSION=release
# Connection secret for postgres. You should change it to a random password
DB_PASSWORD=password
# The values below this line do not need to be changed###################################################################################
DB_HOSTNAME=immich_postgres
DB_USERNAME=postgres
DB_DATABASE_NAME=immich
REDIS_HOSTNAME=immich_redis
Reproduction steps
1. Try using `apikey` as the username for the SMTP server.
Relevant log output
immich_server | [Nest] 7 - 05/14/2024, 2:14:42 PM ERROR [NotificationService] Failed to validate SMTP configuration: Error: Invalid login: 501 Username used for auth is not valid email address
immich_server | Error: Invalid login: 501 Username used for auth is not valid email address
immich_server | at SMTPConnection._formatError (/usr/src/app/node_modules/nodemailer/lib/smtp-connection/index.js:798:19)
immich_server | at SMTPConnection._actionAUTHComplete (/usr/src/app/node_modules/nodemailer/lib/smtp-connection/index.js:1577:34)
immich_server | at SMTPConnection.<anonymous> (/usr/src/app/node_modules/nodemailer/lib/smtp-connection/index.js:554:26)
immich_server | at SMTPConnection._processResponse (/usr/src/app/node_modules/nodemailer/lib/smtp-connection/index.js:982:20)
immich_server | at SMTPConnection._onData (/usr/src/app/node_modules/nodemailer/lib/smtp-connection/index.js:763:14)
immich_server | at SMTPConnection._onSocketData (/usr/src/app/node_modules/nodemailer/lib/smtp-connection/index.js:195:44)
immich_server | at TLSSocket.emit (node:events:518:28)
immich_server | at addChunk (node:internal/streams/readable:559:12)
immich_server | at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
immich_server | at Readable.push (node:internal/streams/readable:390:5)
immich_server | [Nest] 7 - 05/14/2024, 2:14:42 PM WARN [SystemConfigService] Unable to save system config due to a validation error: Error: Invalid SMTP configuration: Error: Invalid login: 501 Username used for auth is not valid email address
immich_server | [Nest] 7 - 05/14/2024, 2:14:58 PM ERROR [NotificationService] Failed to validate SMTP configuration: Error: Invalid login: 501 Username used for auth is not valid email address
immich_server | Error: Invalid login: 501 Username used for auth is not valid email address
immich_server | at SMTPConnection._formatError (/usr/src/app/node_modules/nodemailer/lib/smtp-connection/index.js:798:19)
immich_server | at SMTPConnection._actionAUTHComplete (/usr/src/app/node_modules/nodemailer/lib/smtp-connection/index.js:1577:34)
immich_server | at SMTPConnection.<anonymous> (/usr/src/app/node_modules/nodemailer/lib/smtp-connection/index.js:554:26)
immich_server | at SMTPConnection._processResponse (/usr/src/app/node_modules/nodemailer/lib/smtp-connection/index.js:982:20)
immich_server | at SMTPConnection._onData (/usr/src/app/node_modules/nodemailer/lib/smtp-connection/index.js:763:14)
immich_server | [Nest] 7 - 05/14/2024, 2:14:58 PM WARN [SystemConfigService] Unable to save system config due to a validation error: Error: Invalid SMTP configuration: Error: Invalid login: 501 Username used for auth is not valid email address
immich_server | at SMTPConnection._onSocketData (/usr/src/app/node_modules/nodemailer/lib/smtp-connection/index.js:195:44)
immich_server | at TLSSocket.emit (node:events:518:28)
immich_server | at addChunk (node:internal/streams/readable:559:12)
immich_server | at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
immich_server | at Readable.push (node:internal/streams/readable:390:5)
The text was updated successfully, but these errors were encountered:
lusu007
changed the title
Username used for auth is not valid email address
Username used for SMTP auth is not valid email address
May 14, 2024
The bug
I'm trying to use Sendgrid for Mail sending. SendGrid uses the username
apikey
for authentication, but Immich only accepts email addresses as a username,The OS that Immich Server is running on
Ubuntu 22.04.4
Version of Immich Server
v1.104.0
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Relevant log output
The text was updated successfully, but these errors were encountered: