I’m trying to set up the email transport configuration for sending alerts, but I’ve been getting this error:
An error occurred while trying to send an email! (triggered 2 hours ago)
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 : mail.mycorp.com:587 (javax.mail.MessagingException: Could not connect to SMTP host: mail.mycorp.com, port: 587; nested exception is: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?)
On a telnet test:
telnet mail.mycorp.com 587
Trying 18.104.22.168... Connected to mail.mycorp.com
Here’s my config for the root email,
root_email = "email@example.com"
and the email transport:
transport_email_enabled = true transport_email_protocol = smtp transport_email_hostname = mail.mycorp.com transport_email_port = 587 transport_email_use_auth = true transport_email_use_tls = false transport_email_use_ssl = false transport_email_auth_username = alert transport_email_auth_password = #firstname.lastname@example.org password here# transport_email_subject_prefix = [graylog2] transport_email_from_email = email@example.com transport_email_from_name = Graylog2 transport_email_web_interface_url = http://22.214.171.124:9000
I’ve allowed ports 25/tcp and 587/tcp in the firewall, and tried setting
transport_email_port = 25, but the error is still the same.
Help is much appreciated!