And here is my log (I am using mattermost in a container).
{"timestamp":"2024-10-04 08:21:06.130 Z","level":"warn","msg":"Error decoding the config","caller":"api4/system.go:207","path":"/api/v4/email/test","request_id":"cii43nktxiffteigjih3eg8kwe","ip_addr":"172.18.0.3","user_id":"1rd9yxud3tbumd5b6kngjgpduo","method":"POST","error":"EOF"}
{"timestamp":"2024-10-04 08:21:16.133 Z","level":"error","msg":"Connection unsuccessful: unable to connect to the SMTP server: dial tcp 162.55.254.207:587: i/o timeout","caller":"web/context.go:117","path":"/api/v4/email/test","request_id":"cii43nktxiffteigjih3eg8kwe","ip_addr":"172.18.0.3","user_id":"1rd9yxud3tbumd5b6kngjgpduo","method":"POST","err_where":"testEmail","http_code":500,"error":"testEmail: Connection unsuccessful: unable to connect to the SMTP server: dial tcp 162.55.254.207:587: i/o timeout"}
I’ve double-checked the configuration of my web server, and everything seems to be set up correctly. However, I’m still encountering the issues. I would really appreciate any guidance or help you can provide.
One more thing, I am using caddy (as a reverse Proxy) with the following settings:
Mattermost is trying to open a connection to port 587 and timing out waiting on a response. Either that port isn’t actually open and listening, or something is preventing your traffic from getting there. I’d start without TLS. Get just plain old SMTP on port 25 working with something. Then make sure you have the correct info for whichever server you’re using.
I configured the SMTP server with the exact same settings in Thunderbird, and it works there. So, the issue shouldn’t be on that side. Am I missing something?