I recently changed my gmail password and changed the password in server.conf as well, but now graylog's email alerting fails with:
Sending the email to the following server failed : smtp.gmail.com:587 (javax.mail.AuthenticationFailedException: 535-5.7.8 Username and Password not accepted. Learn more at 535 5.7.8 https://support.google.com/mail/?p=BadCredentials h12sm2292608qkp.52 - gsmtp )
Here are the email entries in server.conf:
transport_email_enabled = true
transport_email_hostname = smtp.gmail.com
transport_email_port = 587
transport_email_use_auth = true
transport_email_use_tls = true
transport_email_auth_username = [email protected]
transport_email_auth_password = Fake!@$#%^&*()"password
transport_email_subject_prefix = [Log-Alerts]
transport_email_from_email = [email protected]
The settings are the same in the alert config in the web gui as well.
I know the username, email, port, server, and tls options are correct, as zabbix (hosted on the same server) is able to send emails to my gmail completely fine.
I am concerned that my new password containing special characters, !@#$%^&*"
is tripping up the server.conf and it is reading the password wrong.
Is there a way to give the password field in server.conf an external file instead? Graylog does not mention this anywhere in their documentation.