I am configuring email notifications with Graylog and after reading through the docs I finally found the configuration settings regarding the SMTP service we use. But I still have issues.
Before attempting to set up the email notifications I read the following docs:
- http://docs.graylog.org/en/2.4/pages/configuration/server.conf.html (Email section)
Perhaps for someone experienced in setting up such services the above information is more than enough. For me, not so much …
However, we are still not getting anything because we have a constant error.
The Graylog server encountered an error while trying to send an email. This is the detailed error message: org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.office365.com:587 (javax.mail.MessagingException: Could not connect to SMTP host: smtp.office365.com, port: 587; nested exception is: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?)
Now, I understand that this error is a miss configuration from my side, no questions about that. After reading several discussions in the forum about setting email configs, this is the configuration I have now, but I am still not sure about some feilds:
# Email transport transport_email_enabled = true transport_email_hostname = smtp.office365.com transport_email_port = 587 transport_email_use_auth = true transport_email_use_tls = true transport_email_use_ssl = true transport_email_auth_username = firstname.lastname@example.org transport_email_auth_password = noReplyPass transport_email_subject_prefix = [graylog] transport_email_from_email = email@example.com
According to the Outlook configuration settings I know at least the hostname and port are OK. I am not so sure about the rest:
Server name: smtp.office365.com
Encryption method: STARTTLS
STARTTLS upgrades unsecure connections to SSL / TLS, I know that I need to pick at least SSL to connect send an email.
The error above is with the SSL connection, but I have other questions as well.
- Do I need
transport_email_auth_password? What are they used for?
- Do I need to use HTTPS to send and receive e-mails because of the SSL requirement? ( I am guessing that yes I need but a confirmation would be nice )
Thanks for the help!