Email not being sent to new user
I have configured a Gmail SMTP server for sending notifications to new users.
I was able to send a test email with no problems, but when I created a new user and sent them a welcome email, they report they didn't receive it and it wasn't in their spam folder.
I verified that the email was correct by emailing it from the censored address myself. They are using a @gmail.com address.
They checked from the iOS Mail app.

81 Replies
:wave: Hey @Blink,
Thanks for reaching out to us. Please carefully read this message and follow the recommended actions. This will help us be more effective in our support effort and leave more time for building Immich :immich:.
References
- Container Logs:
docker compose logs
docs
- Container Status: docker ps -a
docs
- Reverse Proxy: https://immich.app/docs/administration/reverse-proxy
- Code Formatting https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline#h_01GY0DAKGXDEHE263BCAYEGFJA
Checklist
I have...
1. :ballot_box_with_check: verified I'm on the latest release(note that mobile app releases may take some time).
2. :ballot_box_with_check: read applicable release notes.
3. :ballot_box_with_check: reviewed the FAQs for known issues.
4. :ballot_box_with_check: reviewed Github for known issues.
5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy).
6. :ballot_box_with_check: uploaded the relevant information (see below).
7. :ballot_box_with_check: tried an incognito window, disabled extensions, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable
(an item can be marked as "complete" by reacting with the appropriate number)
Information
In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider:
- Your docker-compose.yml and .env files.
- Logs from all the containers and their status (see above).
- All the troubleshooting steps you've tried so far.
- Any recent changes you've made to Immich or your system.
- Details about your system (both software/OS and hardware).
- Details about your storage (filesystems, type of disks, output of commands like fdisk -l
and df -h
).
- The version of the Immich server, mobile app, and other relevant pieces.
- Any other information that you think might be relevant.
Please paste files and logs with proper code formatting, and especially avoid blurry screenshots.
Without the right information we can't work out what the problem is. Help us help you ;)
If this ticket can be closed you can use the /close
command, and re-open it later if needed.
Successfully submitted, a tag has been added to inform contributors. :white_check_mark:You shouldn't use a domain you don't own as the from address...
Is that what's blocking it?
If that's all it is, I can adjust it to something I do own. I honestly didn't think it'd make a difference
I went ahead and changed it to
immich@quantumblink.xyz
which I do own but I don't think that changed anything
(I own quantumblink.xyz
If you're using gmail as your mail provider it won't let you send mails from a completely different domain
Think about the security implications that'd have
Or well, it'd go through if your domain explicitly ignores "DMARC" rules. But that'd generally be a bad idea, since then anyone could send mails in your name
Good point. Should I just set it to immich@gmail.com or something?
Could try sending it from the email you have in your username
Google wouldn't allow that either
Really you should use your google account
OK
In hindsight this all makes total sense but I didn't think about it that hard clearly
Hmm, I went ahead and tried my username but that didn't work either
Do you get any error anywhere?
Not really. I can see the event in logs for the test email set, but no email event for a user creation POST event
Nor for when I add a user to an album
I'm only logging down to DEBUG, verbose may help here
And you don't receive the test email?
I do receive the test email
Oh where's the issue then?
No one else is getting their emails. I tried multiple emails for creating new users and none of them are getting the email. Nor do they receive emails for being added to an album
Have you tried if you receive other emails?
If you're added to an album?
Adds don't work either
Just to confirm, the from address is currently
Nucleus Immich <USERNAME@gmail.com>
That is wrong
It needs to be
<USERNAME@gmail.com>
Yes, it is my bad
It does have the @gmail I just didn't append it
It does not make sense to me that the test email goes through successfully, but not other emails
I've had people check their spams and what not
It's running as a Tailscale Funnel container which may affect things but the fact that the test email works
There's nothing I needed to specifically enable to globally allow notifications, right? I am checking the "Send welcome email" when i create new users
The users also have notifications enabled by default
I'd like to debug with your account, since that's the one that receives the test email at least
Do you want me to DM you my gmail address?
I don't think that's necessary right now
Unfortunately we don't seem to log anything in that code path
That is unfortunate
I can file a more detailed report on GitHub if that would be helpful?
I can also try ignoring TLS certs maybe but that would be the only other thing I would see to try changing
So to clarify; you used another account and shared an album from that account with your admin account?
I'd like to debug some more here, since I feel like we'd have more people complaining already if it is in fact broken
Other way around. I added a user to an album that is owned by the admin account (mine)
That makes sense
Oh. I specifically wanted you to try this way around though, to make sure email notifications work
Since we know you can receive emails from your server
Doing so now
No email the other way around either.
Let me try omitting the contact name from the from address
That does not make sense though because it works for the test email
I don't disagree
As predicted nothing happened
I just had someone try it and the invite email still works for them on the latest release, so it's not an Immich issue
This is super weird tbh
is there anything in the server log? you should see something like
Sent mail with id:
I only see it for test email sends
I'm wondering if Tailscale is interfering or something
Though if that were true then the test email probably wouldn't work anyway
no logs when you create a new account?
no, it shouldn't
I see POST events in the Docker log
for new user
I also did try adding people to albums, admin to user and vice versa
There's only one
Api:EmailRepository~jw4t1437
and it's the test email
There's no other notification postingsthe log should display something like:
2025-06-08T20:06:13.321584292Z [Nest] 7 - 06/08/2025, 8:06:13 PM LOG [Microservices:NotificationService] Sent mail with id: <58266dc2-d32a-eb74-1d60-12e5fc81d922@XXXXXXXXXX> status: 250 2.0.0 Ok: queued as 40D7B120037
No such log
Wait
Can you send your compose file?
Give me like 5 minutes I'm moving around in an airport terminal
Oh yeah absolutely, no rush!
Thank you guys btw for the help, love Immich so far
if you can include your server logs too, that would be great
For some background; my current hunch is that the microservices worker didn't spawn at all


ooh f, is this unraid ?
Oh imagenius and a weird tailscale thing?
Yeah do send the server logs ^
yes
sorry for log delay
Where did you invite a user?
Dw!
Hold on that doesnt show it let me send a new copy
Here is everything propagated when creating a new user

The tailscale thing is just tailscale installed within the container
Are other microservices tasks still working?
Are thumbnails generated for new images for instance?
Yep I've never had any problems with anything up to this point
I've been using Immich for about 2 weeks now for just myself and have thousands of photos
Have you already uploaded an image today?
did you try restarting ? 😛
That was my next suggestion!
I suppose that's the easiest option but I feel like I did that already earlier. No harm in trying again
Well, that ended up breaking my Tailscale funnel. I've been having all sorts of issues with funneling
NVM, was impatient
Does mail work though? lol
Sadly no.
[Nest] 331 - 06/08/2025, 4:23:51 PM DEBUG [Api:LoggingInterceptor~nx1t21cl] GET /api/shared-links?albumId=fc424f63-69ce-4d7d-a143-7dafef5c2a53 200 5.62ms 100.91.31.31 [Nest] 331 - 06/08/2025, 4:23:51 PM DEBUG [Api:LoggingInterceptor~wy7uvlzt] GET /api/users 200 9.16ms 100.91.31.31 [Nest] 331 - 06/08/2025, 4:23:54 PM DEBUG [Api:LoggingInterceptor~uf013w18] PUT /api/albums/fc424f63-69ce-4d7d-a143-7dafef5c2a53/users 200 74.00ms 100.91.31.31 [Nest] 331 - 06/08/2025, 4:23:54 PM DEBUG [Api:LoggingInterceptor~tirywabo] GET /api/albums/fc424f63-69ce-4d7d-a143-7dafef5c2a53?withoutAssets=true 200 10.06ms 100.91.31.31 [Nest] 331 - 06/08/2025, 4:23:54 PM DEBUG [Api:LoggingInterceptor~4ux41f5l] GET /api/activities?albumId=fc424f63-69ce-4d7d-a143-7dafef5c2a53 200 4.70ms 100.91.31.31 [Nest] 331 - 06/08/2025, 4:23:54 PM DEBUG [Api:LoggingInterceptor~2q8xcta9] GET /api/activities?albumId=fc424f63-69ce-4d7d-a143-7dafef5c2a53&level=album&type=like&userId=ed5332b7-70ba-4c21-a634-e00af145e403 200 3.55ms 100.91.31.31 [Nest] 331 - 06/08/2025, 4:23:54 PM DEBUG [Api:LoggingInterceptor~sxlyjvoi] GET /api/activities/statistics?albumId=fc424f63-69ce-4d7d-a143-7dafef5c2a53 200 2.81ms 100.91.31.31These are all of the events from adding a user to an album
I started a test bench with this same image and is sending the notifications just fine
this is so odd
are you using a custom email template?
No, all blank

I had a similar issue once when album notifications emails where not getting sent, my guess was gmail shadow banned me for sending too many mails, because after a while it started working again without me doing anything. You using a mail you don't own probably triggered a similar ban ?
did you try using a different Gmail account to send the mails already?
I could try that, that is a good suggestion
also, you're using an app password right?
Limits for sending & getting mail - Gmail Help
To help prevent spam and keep accounts safe, Gmail limits the number of emails you can send or get per day, and the number of peopl
Yes
The test email always works
cause it's to yourself, so it's not spam
ok I tried my other gmail and it didn't work either
could be an IP ban too
no like, it sent a test email correctly but no one else
but thats one email address to another
I don't think the issue is with the email settings, I think it's that a notification microservice isnt kicking in
try to check the spam folder, maybe useless but try to use the official gmail app, not ios mail
this is with the web app
Any other suggestions?
honestly no, this looks like something very specific to your setup.
may I suggest, just to discard things to try another mail service, like mailgun for example, they offer a free sandbox that would be enough for testing
I'm just confused on why the notification service wouldn't be active
I am aware that the Immich template on the Unraid community apps isn't exactly official but it just strikes me as odd that it's just me
I could try spinning up a copy of the Immich container just to verify
unless you've noted any other service not running (like metadata, transcoding, etc), there's no reason to suspect the the service is not running. but I'm curious why there's no logging
yeah, that could be a good test
yeah i havent had any issues with other jobs
[Nest] 364 - 06/09/2025, 2:52:47 PM DEBUG [Microservices:JobService] Setting notifications concurrency to 5The job service logs the concurrency of notifications