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
- Not allowed permission to upsert a prese...
```js const presenceID = ID.unique(); setPID(presenceID); const presence = await presences.upsert({ presenceId: presenceID, status: "online"...
- Finding job
Hi. I am a full-stack developer with experience in developing scalable and user-friendly web applications. I handle both front-end and back-end development, im...
- Can't really use the S3 storage device
hi, I've linked my local MinIO Instance (it's just for testing, not for prod.) to my appwrite instance, when i'm uploading a file it's getting uploaded to the S...