“Failed to send test alert.: the receiver timed out: failed to send notifications to email address: email@example.com: dial tcp x.x.x.x:587: i/o timeout”
I also have tried publishing the port 587 but still getting the same error.
Do you guys have any idea what the problem is? I can’t find any logs for this one.
Thanks for the response, I think, I really do have problem with my docker, I can’t even install telnet. Did I miss something here? I just followed the instructions here Run Docker with data container
Hi Elman,
You can check connectivity with curl if you are unable to install telnet. Most of the distributions come with it pre-installed.
You can check connectivity by running :
You do not need to publish port 587 in your PMM server container unless you are planning on running an SMTP server inside the PMM server container that you want external servers to be able to connect to.
Since your host can reach out but your container cannot I’m suspicious of something like selinux or firewalld that might be preventing the container from going external (maybe a clue in your iptables --list -n?). i’ve also seen some instances where corporate proxies interfere and even though your host may be configured to proxy requests, your container isn’t getting routed correctly for outbound internet access.
I also notice that you’re configuring grafana to use smtp.sendgrid.net:587 as the outgoing smtp server but you’re testing against smtp.gmail.com:587. Assuming that’s correct, is grafana able to send to sendgrid as configured (best way I knwo to test is trying to reset a password via email)?