Comments (7)
I just set this up for the first time myself. Nothing worked until I entered the mail server address like this: "smtps://mail.domain.com". The mail server port should be 465, or whatever the server's SMTPS port is. It seems that ntopng does not do STARTTLS so I could not use my normal STARTTLS port 587. The documentation says nothing about any of this. I figured it out when I saw in the logs that ntopng was trying to send mail to "smtp://mail.domain.com" which meant it was trying to make a non-TLS connection, something that my server doesn't support.
from ntopng.
Hi @cabefe ,
Could you please provide the ntopng logs?
from ntopng.
Hi @cabefe , Could you please provide the ntopng logs?
19/Jan/2024 13:46:17 [Utils.cpp:2007] WARNING Unable to send email to (smtps://mail.us.es:465/us.es): Timeout was reached. Run ntopng with -v6 for more details.
19/Jan/2024 13:42:46 [Utils.cpp:2007] WARNING Unable to send email to (smtps://mail.us.es:465/us.es): Timeout was reached. Run ntopng with -v6 for more details.
19/Jan/2024 13:37:06 [Utils.cpp:2007] WARNING Unable to send email to (smtps://mail.us.es:465/us.es): Timeout was reached. Run ntopng with -v6 for more details.
19/Jan/2024 13:34:16 [Utils.cpp:2007] WARNING Unable to send email to (smtps://mail.us.es:465/us.es): Timeout was reached. Run ntopng with -v6 for more details.
19/Jan/2024 13:11:56 [notifications.lua:25] [recipients.lua:1159] ERROR Error while sending notifications via Informática IBIS Unable to send mails
19/Jan/2024 13:11:56 [Utils.cpp:2007] WARNING Unable to send email to (smtps://mail.us.es:465/us.es): Timeout was reached. Run ntopng with -v6 for more details.
19/Jan/2024 13:07:30 [Utils.cpp:2007] WARNING Unable to send email to (smtps://mail.us.es:465/us.es): Timeout was reached. Run ntopng with -v6 for more details.
19/Jan/2024 13:04:40 [Utils.cpp:2007] WARNING Unable to send email to (smtps://mail.us.es:465/us.es): Timeout was reached. Run ntopng with -v6 for more details.
19/Jan/2024 13:01:56 [Utils.cpp:2007] WARNING Unable to send email to (smtps://mail.us.es:465/us.es): Timeout was reached. Run ntopng with -v6 for more details.
19/Jan/2024 12:45:35 [Utils.cpp:2007] WARNING Unable to send email to (smtps://mail.us.es:587/us.es): SSL connect error. Run ntopng with -v6 for more details.
19/Jan/2024 12:41:54 [Utils.cpp:2007] WARNING Unable to send email to (smtps://mail.us.es:465/us.es): Timeout was reached. Run ntopng with -v6 for more details.
19/Jan/2024 12:38:13 [Utils.cpp:2007] WARNING Unable to send email to (smtp://mail.us.es:465/us.es): Timeout was reached. Run ntopng with -v6 for more details.
19/Jan/2024 12:36:53 [Utils.cpp:2007] WARNING Unable to send email to (smtp://mail.us.es:465/us.es): Timeout was reached. Run ntopng with -v6 for more details.
19/Jan/2024 12:31:06 [notifications.lua:25] [recipients.lua:1159] ERROR Error while sending notifications via Informática IBIS Unable to send mails
19/Jan/2024 12:31:06 [Utils.cpp:2007] WARNING Unable to send email to (smtp://mail.us.es:587/us.es): Failed sending data to the peer. Run ntopng with -v6 for more details.
19/Jan/2024 12:04:22 [Utils.cpp:2007] WARNING Unable to send email to (smtp://mail.us.es:587/us.es): Failed sending data to the peer. Run ntopng with -v6 for more details.
19/Jan/2024 11:59:55 [Utils.cpp:2007] WARNING Unable to send email to (smtp://mail.us.es:587/us.es): Failed sending data to the peer. Run ntopng with -v6 for more details.
19/Jan/2024 11:53:45 [Utils.cpp:2007] WARNING Unable to send email to (smtp://mail.us.es:587/us.es): Failed sending data to the peer. Run ntopng with -v6 for more details.
19/Jan/2024 11:34:15 [Utils.cpp:2007] WARNING Unable to send email to (smtp://mail.us.es:587/us.es): Failed sending data to the peer. Run ntopng with -v6 for more details.
19/Jan/2024 11:27:12 [notifications.lua:25] [recipients.lua:1159] ERROR Error while sending notifications via Informática IBIS Unable to send mails
19/Jan/2024 11:27:12 [Utils.cpp:2007] WARNING Unable to send email to (smtp://mail.us.es:587/us.es): Failed sending data to the peer. Run ntopng with -v6 for more details.
19/Jan/2024 11:26:12 [Utils.cpp:2007] WARNING Unable to send email to (smtp://mail.us.es:587/us.es): Failed sending data to the peer. Run ntopng with -v6 for more details.
19/Jan/2024 11:19:21 [Utils.cpp:2007] WARNING Unable to send email to (smtp://mail.us.es:587/us.es): Failed sending data to the peer. Run ntopng with -v6 for more details.
19/Jan/2024 11:03:42 [Utils.cpp:2007] WARNING Unable to send email to (smtp://mail.us.es:587/us.es): Failed sending data to the peer. Run ntopng with -v6 for more details.
19/Jan/2024 10:59:49 [Utils.cpp:2007] WARNING Unable to send email to (smtp://mail.us.es:587/us.es): Fa
from ntopng.
I just set this up for the first time myself. Nothing worked until I entered the mail server address like this: "smtps://mail.domain.com". The mail server port should be 465, or whatever the server's SMTPS port is. It seems that ntopng does not do STARTTLS so I could not use my normal STARTTLS port 587. The documentation says nothing about any of this. I figured it out when I saw in the logs that ntopng was trying to send mail to "smtp://mail.domain.com" which meant it was trying to make a non-TLS connection, something that my server doesn't support.
I think our server does not support port 465 :(
from ntopng.
You could check what ports the server supports by telneting to them. This will let you see if the port is open to connections. For example: telnet mail.us.es 465
EDIT On second thought, I went ahead and tested this myself. It looks like you are correct, port 465 isn't open on mail.us.es. Port 587 is the only working mail port I could find. That means ntopng would need to support STARTTLS to use that server and I don't think that it does. Try a different mail server perhaps?
ALSO From the log entries, it looks like you might not have the "Email Sender" value correct in the endpoint configuration. Some mail servers care about this and some don't. If your server cares then this might need to be a valid e-mail address in the form "[email protected]" not just "us.es". The client sends this to the mail server as part of its ELHO greeting. Some servers are configured to drop the connection if they can't validate this email address.
from ntopng.
I just set this up for the first time myself. Nothing worked until I entered the mail server address like this: "smtps://mail.domain.com". The mail server port should be 465, or whatever the server's SMTPS port is. It seems that ntopng does not do STARTTLS so I could not use my normal STARTTLS port 587. The documentation says nothing about any of this. I figured it out when I saw in the logs that ntopng was trying to send mail to "smtp://mail.domain.com" which meant it was trying to make a non-TLS connection, something that my server doesn't support.
This resolved the issue for me, crazy they don't have this documented somewhere, I was troubleshooting for a while.
from ntopng.
Yeah, me too. Also crazy that ntopng does not support STARTTLS. It's not that hard to implement..
from ntopng.
Related Issues (20)
- Add Wi-Fi Flow Collection support in ntopng
- Implement DNS cache support
- List 'Feodo' has 0 rules HOT 2
- Interface Historical Data timeout HOT 2
- User Traffic Reset After Nedge Reboot HOT 1
- Bad formatting in the Analysis pages HOT 1
- Add Packet Analysis to Historical (replay) flows. HOT 1
- Cannot start ntopng on FreeBSD 15 HOT 5
- Query Preset on Hourly Flows not working
- Error when opening the live flow page
- [Feature Request] Add settings option for default sort
- Make user authentication configurable via config files HOT 2
- Please allow specifying location of logs + log level
- Invalid lua VM state returned by reload_servers_configuration() HOT 2
- Deduplication of NetFlow data HOT 1
- Historical flow download on raspberrypi not working correctly HOT 2
- Syslog alert notifications do not work when severity is set to critical or emergency HOT 1
- [ZMQParserInterface.cpp:1794] WARNING IP version mismatch: client:4 server:6 - flow will be ignored HOT 3
- Continuous ICMP monitoring not working HOT 2
- Flow > Historical not working at all, issue with influxdb ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ntopng.