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
- Iโm facing an issue with deployments on ...
Hi Appwrite Support, Iโm facing an issue with deployments on Appwrite Sites. A few days ago (around 3โ4 days back), everything was working perfectly. My deplo...
- Redis with user/pass doesn't work NO_AUT...
When trying to externalize my redis to a valkey server, i saw the user/pass doesn't work. After looking the appwrite code, i saw some of the init does not pass...
- Export, Import or Migration giving this ...
As you can see in yhe screenshot i am not able to export any data or export the data from tables. Also it is affecting the migration from appwrite to appwrite h...