Grafana in docker alerts not working

So im configuring grafana email notifications, and I keep getting this:

here is my config:

If it matters, my grafana is inside of a docker container. I am not really familiar with docker, so that might be the problem.

Thanks in advance for all anwsers.

The port should be 465, but i was trying 587 aswell