KorbsOriginal post
Web Developer
When entering SMTP information on my self-hosted instance, I get an error that it's not able to connect to the SMTP server.
Docker also shows this in the logs:
Bash
appwrite | [Error] Timestamp: 2025-03-23T06:34:24+00:00appwrite | [Error] Method: PATCHappwrite | [Error] URL: /v1/projects/:projectId/smtpappwrite | [Error] Type: Appwrite\Extend\Exceptionappwrite | [Error] Message: Could not connect to SMTP server: SMTP Error: Could not connect to SMTP host. Failed to connect to serverappwrite | [Error] File: /usr/src/code/app/controllers/api/projects.phpappwrite | [Error] Line: 1794appwrite | Failed to initialize logging provider: Unable to parse DSN: scheme is requiredI use Resend as my SMTP provider and would like to use it. I usually use the port 587, yes I tried 22 and 465 as well.
Summary
The developer is experiencing issues connecting to the SMTP server while configuring it on a self-hosted instance. The error message suggests a connection problem with the SMTP server. They specified using Resend as their SMTP provider and attempted different ports (587, 22, 465) without success. The error log from Docker indicates a failed connection to the SMTP host. The issue may lie in the SMTP configuration settings or server-side settings. Double-check the SMTP configuration details and ensure they are correct.