Failed to send test alert, the receiver timed out

  • What Grafana version and what operating system are you using?
    V10.0.2

  • What are you trying to achieve?
    I am trying to configure grafana to send alerts by mail using gmail on a new server.

  • How are you trying to achieve it?
    Using the same configuration I am have used for smtp on my old server on grafana V9.

  • What happened?
    I am always getting an error message: Failed to send test alert: the receiver timed out, failed to send notification to email addrees xx@xx.de, dial tcp [2a00:1450:4013:c1a::1b]:587 i/o timeout

  • Can you copy/paste the configuration(s) that you are having problems with?
    [smtp]
    enabled = true
    host = smtp.google.com:587
    user = xxx@gmail.com
    password = xxx
    ;cert_file =
    ;key_file =
    ;skip_verify = true
    from_address = xxx@gmail.com
    from_name = Grafana
    ;ehlo_identity = dashboard.example.com
    startTLS_policy = MandatoryStartTLS

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    The above message is shown in the UI.

The gmail acoount is using 2FA and I have generated an app password for it. On my google security I can see, that this password so far has not been used. On the same server I am also running a sendmail configuration to the same gmail account and using sendmail I have no problems in sending a mail.

Looking forward for any help on this issue.

Hello,

I had it running fine using these:

[smtp]

skip_verify = true
;startTLS_policy=

Hi, unfortunately this does not change anything.