Back

Can't get SMTP working with fake SMTP server on local install

  • 0
  • Self Hosted
Rockafella
6 Mar, 2025, 15:31

Hey all, hope someone can help with this. After going through everything I can find on SMTP in the docs and in support, I still can't get SMTP to work. Here's my setup: I've got a self-hosted Appwrite (1.6.1) install running fine in Docker. I've also got a fake SMTP server running in another Docker container, also running fine. It's the simplest possible setup: accepts any email via port 25. Tested sending an email through telnet and it works as expected.

In the containers 'appwrite' and 'appwrite-worker-mails' I changed the env variables: _APP_SMTP_HOST=<the SMTP IP address> _APP_SMTP_PORT=25 and nothing else.

But when I try to setup Custom SMTP in the Appwrite dashboard I keep getting: "Could not connect to SMTP server: SMTP Error: Could not connect to SMTP host. Failed to connect to server" Also, running 'docker exec appwrite doctor' states that SMTP is disconnected.

I'm completey confused, this should be simple. What am I missing?! Any help is greatly appreciated. Been trying to get this running for days now... 🙄

TL;DR
Developers can't get SMTP working with a fake SMTP server in a local setup. They've configured the env variables but keep getting a connection error. The issue might be with the fake SMTP server setup. Try using a real SMTP server instead.
faye
6 Mar, 2025, 16:00

Title says "fake SMTP server", maybe that's why it doesn't work? :1lolol:

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