Skip to content
Back

Could not connect to SMTP host

  • 0
  • Self Hosted
  • Messaging
Samuel Kings
30 May, 2025, 23:43

I have tried between 2 different mails and hosts to activate the SMTP of my self-hosted Appwrite instance but to no avail. No matter what I set this is the log I always get.

My env variables:

TypeScript
_APP_SMTP_HOST=premium49.web-hosting.com
_APP_SMTP_PORT=587
_APP_SMTP_SECURE=tls
_APP_SMTP_USERNAME=my-username
_APP_SMTP_PASSWORD=my-password

I also tried this:

TypeScript
_APP_SMTP_HOST=premium49.web-hosting.com
_APP_SMTP_PORT=465
_APP_SMTP_SECURE=ssl
_APP_SMTP_USERNAME=my-username
_APP_SMTP_PASSWORD=my-password

For the 2nd one:

TypeScript
_APP_SMTP_HOST=smtp.ionos.com
_APP_SMTP_PORT=587
_APP_SMTP_SECURE=tls
_APP_SMTP_USERNAME=admin@p***m.app
_APP_SMTP_PASSWORD=***********

Kindle note that all of these configurations worked on all the 3 SMTP test tools I used. Why don't they work on Appwrite?

TL;DR
Developers are having trouble connecting to the SMTP host on their self-hosted Appwrite instance despite trying different configurations. The SMTP settings seem correct and have been tested successfully on other tools. The issue might be with the Appwrite setup.
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