Graylog Email transport Gmail SMTP Setting

good day,
I would like to set up an email notification in graylog.
My configuration looks like this:

# Email transport
transport_email_enabled = true
transport_email_protocol = smtp
transport_email_hostname = smtp.gmail.com
transport_email_port = 587
transport_email_use_auth = true
transport_email_use_tls = true
transport_email_use_ssl = false
transport_email_auth_username = alert.graylog@gmail.com
transport_email_auth_password = password
transport_email_from_email = alert.graylog@gmail.com
transport_email_subject_prefix = [graylog]
transport_email_socket_connection_timeout = 10s
transport_email_socket_timeout = 10s

But when I send a test email I always get the message: Sending the email to the following server failed "smtp.gmail.com:587.

What am I doing wrong? Or what else do I need to set up?

Thanks

Can you check your graylog server.log commonly /var/log/graylog-server/server.log
or if you are using docker docker logs <container_name> ?

I’m assuming you are using an app password as well? Sign in with app passwords - Gmail Help

So Graylog is not running in Docker for me. I don’t see any indication of this error in the log.
but in Graylog I see the message as in the screenshot:

I’m sure I entered my access data correctly.
What else could it be? Are my parameters correct?

What does the google page say that is returned in the error? It seems to be indicating failed authentication: “Bad Credentials…”

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.