I am trying to set up custom SMTP server but no matter what I do it wont connect. I was able to login on outlook using the exact same credentials and it worked just fine. I get a 400 Bad Request error when it fails.
_APP_SMTP_HOST=
_APP_SMTP_PORT=
_APP_SMTP_SECURE=
_APP_SMTP_USERNAME=
_APP_SMTP_PASSWORD=
_APP_SYSTEM_EMAIL_NAME=
_APP_SYSTEM_EMAIL_ADDRESS=
_APP_SYSTEM_SECURITY_EMAIL_ADDRESS=
All of these are filled I have removed all info to make sure I dont expose anything I should not
So what exactly is happening? What error do you get? Have you tested connecting from your server?
What do you mean connecting from your server.
When I go to set up the smtp account it errors about after about 10 mins and tells me it cant connect to SMTP server.
what was the response body?
ssh into your server and try connecting to the SMTP provider
My server is hosting it and I can ping it from the server.
I have one server that is split into vms with different dedicated ip address for each vm
I can ping mail.phelps.fit from my appwrite server
What port did you set for _APP_SMTP_PORT?
465
I think that's an SSL port but you can try doing telnet <host> 465
switched to port 25 and it worked
Do you have tls enabled?
Yes
As always thanks for your amazing help
[Solved] Custom SMTP server cant connect
[SOLVED] Custom SMTP server cant connect
👍 but I didn't even do anything 😅
Recommended threads
- Authentication on custom Websocket Serve...
Hi, I want to use a custom Websocket Server (using Bun) for my application. However I cant really figure out authentication on custom servers. Session cookies ...
- Realtime: Listener not triggered on upda...
I self host appwrite 1.8.1. The genereal functionallity works fine. But my realtime subscription isn't updating. I see "Received heartbeat response from realtim...
- Realtime for files() works almost well, ...
I have been trying to make use of realtime, today (14.03.26) I have pulled all the latest versions of docker images, and sdk available. Whats working: - Conn...