Back

self hosted email invites (smtp) not working

  • 0
  • Self Hosted
Chris Nowicki
9 Oct, 2024, 16:23

I am having issues getting invite emails sent out to our selfhosted instance.

We deployed on azure and opened up the outbound port 587 and realized that was the port used by mailgun. So we opened up SMTP port 25 for outbound. Still not working. attached image is of the .env file smtp settings.

Thoughts?

TL;DR
Developers having issues with self-hosted email invites not working. They opened outbound port 587 for Mailgun, then tried port 25 for SMTP in Azure VM networking settings. Invite emails still not sending. Need advice. Solution: The issue could be related to SMTP server configuration. Check the settings in the .env file to ensure they are correct for sending emails.
Chris Nowicki
9 Oct, 2024, 16:24
Chris Nowicki
9 Oct, 2024, 16:24

we are hosting on azure vm

Chris Nowicki
9 Oct, 2024, 16:24

this is the env settings I have setup for smtp

Chris Nowicki
9 Oct, 2024, 16:25

when I do password reset and / or invite a user to our selfhosted instance emails don't go out?

Chris Nowicki
9 Oct, 2024, 16:25

in azure VM networking settings I opened up outbound port 25

Chris Nowicki
9 Oct, 2024, 16:27

we also have port 587 outbound opened up

Chris Nowicki
9 Oct, 2024, 16:27
Chris Nowicki
9 Oct, 2024, 16:37

I can telnet to mailgun from the VM

Chris Nowicki
9 Oct, 2024, 16:49

some more logs from looking at appwrite-work-mails log

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more