Skip to content
Back

smtp settings confusion

  • 0
  • Self Hosted
Lucas
12 Feb, 2025, 21:10

Hi, I have been trying to get through smtp settings configuration successfully to give my web app the ability to send users account verification emails automatically after they sign up.

TL/DR I have gotten it working.. but still confused about a few things and hoping for clarity 🙂

I noticed that there are a ton of different places to set SMTP related settings in appwrite self hosted:

1) 2 different places in the docker-compose.yml (I believe one is for messaging?)

2) in the .env for appwrite

3) in the appwrite console under project settings -> Custom SMTP

4) in the appwrite console -> messaging


I've settled on the understanding that for what I need, I want to configure the general system SMTP, which is under project settings (please correct me if I have any of this wrong!)

I've also been testing my configuration with docker exec appwrite doctor which has always every single time returned SMTP.....disconnected.

I have also been recreating my containers after changes FYI using docker compose up -d --force-recreate

I only just now got it to work .. using a combination of settings I found that works for my host (bluehost)

TypeScript
_APP_SMTP_HOST=my-domain.com
_APP_SMTP_PORT=465
_APP_SMTP_SECURE=ssl
_APP_SMTP_USERNAME=noreply@my-domain.com
_APP_SMTP_PASSWORD=<PASS>

but even when I successfully had the backend send a verification email, the appwrite doctor command still returns SMTP disconnected.

so I wanted to flag this as a potential bug, but also wanted to know if there was some clarity on which settings in the UI we can use, and do those supersede the .env settings? or something else?

why do the UI settings exist if so many people suggest doing it in the .env?

Thanks!

TL;DR
Developers using Appwrite self-hosted are trying to configure SMTP settings for automatic user verification emails. They found settings in various places like docker-compose.yml, .env, and in the Appwrite console. After testing different configurations, they settled on project settings for general SMTP setup. Despite getting it to work with specific settings for their host (e.g., Bluehost), the Appwrite doctor command shows SMTP disconnected. They question the purpose of UI settings and whether they supersede .env settings. The solution provided is to focus on configuring SMTP under project settings in the Appwrite console and to verify the functionality despite the doctor command showing SMTP disconnected
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