Hi,
I install the graylog and I got the logs. After that I want to send Email from the Graylog about this logs, but I can’t
I opened the TCP/25 and TCP/587 ports but it doesn’t worked. I am sharing the files below this case.
root@mustafa:/home/mustafa# telnet IP ADDRESS 587
Trying IP ADDRESS...
Connected to IP ADDRESS.
Escape character is '^]'.
root@mustafa:/home/mustafa# telnet IP ADDRESS 25
Trying IP ADDRESS...
Connected to IP ADDRESS.
Escape character is '^]'.
journalctl -xe | grep -i graylog
Dec 06 14:40:23 mustafa graylog-server[133941]: OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Dec 06 14:40:24 mustafa graylog-server[133941]: WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
Dec 06 14:40:27 mustafa graylog-server[133941]: WARNING: An illegal reflective access operation has occurred
Dec 06 14:40:27 mustafa graylog-server[133941]: WARNING: Illegal reflective access by retrofit2.Platform (file:/usr/share/graylog-server/graylog.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
Dec 06 14:40:27 mustafa graylog-server[133941]: WARNING: Please consider reporting this to the maintainers of retrofit2.Platform
Dec 06 14:40:27 mustafa graylog-server[133941]: WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
Dec 06 14:40:27 mustafa graylog-server[133941]: WARNING: All illegal access operations will be denied in a future release
Dec 06 14:40:47 mustafa graylog-server[133941]: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
Dec 06 14:40:47 mustafa graylog-server[133941]: SLF4J: Defaulting to no-operation (NOP) logger implementation
Dec 06 14:40:47 mustafa graylog-server[133941]: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
In addition I have the same issue with port 465 too
Not 100% sure what the issue is, but for troubleshooting purposes try using port 25 (i.e., localhost). ensure the port is opened on the firewall, and if you have SELinux/Apparmor enable check that.
You may want to post logs from Graylog and/or Postfix this may help.
My Lab set up is very simple , I’m using sendmail instead of postfix. With sendmail default uses “localhost” and port 25. The following is what I configured in Graylog server.conf file.
If you can, try it first without TLS on an unencrypted SMTP server. Once you have that working, then you can tighten it up with TLS. For troubleshooting, removing variables is always a good idea. Start basic and add on in steps.
First make sure you can access the email server from the Graylog server… outside of Graylog. Make sure you have encryption turned off on the email you are sending to for testing. You can use this link here to test to make sure you can connect and send e-mail from the local command line on your Graylog server. The link has a lot of detail in there but it gives you all you need to test the connection properly. Once that works, then you can work with and adjust your Graylog settings to make sure it works there as well. Once you have e-mail working and you start testing in Graylog you can watch the Graylog log files:
tail -f /var/log/graylog-server/server.log
Watch for related issues and post them here if you need help figuring out what they are saying.