mattermost / docker

Install Mattermost server via Docker
Apache License 2.0
331 stars 198 forks source link

Problem with SMTP Mail verification #152

Open lemmi25 opened 6 days ago

lemmi25 commented 6 days ago

Hi,

I try to use a custom Mail Server to send emails to user, to verify login. I tried different settings but always get this error:

image

Here are my configs:

image

And here is my log:

{"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.techmountain.dev {
   reverse_proxy mattermost:8065
}

I already asked this question here:

Mattermost Community

Thank you

Best regards, lemmi25

lemmi25 commented 5 days ago

I solved it myself by setting the Firewall rules correctly. Port 587 was not open.