Rank 3: Container
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.
Votes
0
Replies
20
Participants
Unknown
Messages
21
Rank 3: Container
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.
Rank 3: Container
_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?
Rank 3: Container
What do you mean connecting from your server.
Rank 3: Container
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.
Rank 3: Container
what was the response body?
ssh into your server and try connecting to the SMTP provider
Rank 3: Container
My server is hosting it and I can ping it from the server.
Rank 3: Container
I have one server that is split into vms with different dedicated ip address for each vm
Rank 3: Container
I can ping mail.phelps.fit from my appwrite server
What port did you set for _APP_SMTP_PORT?
Rank 3: Container
465
I think that's an SSL port but you can try doing telnet <host> 465
Rank 3: Container
switched to port 25 and it worked
Do you have tls enabled?
Rank 3: Container
Yes
Rank 3: Container
As always thanks for your amazing help
Rank 3: Container
[Solved] Custom SMTP server cant connect
[SOLVED] Custom SMTP server cant connect
👍 but I didn't even do anything 😅