My Error is: An error occurred while trying to send an email! (triggered 9 minutes 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 : smtp.gmail.com:587 (com.sun.mail.util.MailConnectException: Couldn’t connect to host, port: smtp.gmail.com, 587; timeout 60000; nested exception is: java.net.SocketTimeoutException: connect timed out)
I don’t know if this will solve your issue but in “transport_email_from_email =”, I used the same address that is in “transport_email_auth_username =”.
Also is there any firewall that can block the outgoing traffic?
Hey,
So, I’ve been speaking to my IT team because initially I believed we had to use the company’s mail server. So we have been working on that, but I am still getting error. This is the error we I am currently getting:
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.intra.COMPANY.local:25 (com.sun.mail.util.MailConnectException: Couldn’t connect to host, port: smtp.intra.COMPANY.local, 25; timeout 60000; nested exception is: java.net.UnknownHostException: smtp.intra.COMPANY.local)
Firewall is configured, and it worked at system level. I believe it could be on the application end. Does anybody have a clue of what it might be?
How could I go on about checking this?
As far as I know the graylog server to mail server connectivity is fine:
root@RSH-TEST-GRLOG:/etc/graylog/server# telnet IP 25
Trying IP...
Connected to IP.
Escape character is '^]'.
220 S-EXCH-HYB02.intra.COMPANY.local Microsoft ESMTP MAIL Service ready at Fri, 28 Sep 2018 11:20:43 +0100
Apparently, I just fixed that issue. It came back to this other issue:
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 : IP:PORT (javax.mail.AuthenticationFailedException: 535 5.7.3 Authentication unsuccessful )