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
- Github connection error - Self Hosted Ap...
I am trying to connect my github account to deploy a project to sites, but Connect to Gtihub button is disabled. I have configured all Env variables needed for...
- "Domain verification failed"
"Domain verification failed" I was install Appwrite in my VDS server. I using Coolify for install Appwrite. After install complete, i want add my domain, and i ...
- Server Down
Appwrite services are down. When will they start working again?