Comments (9)
Indeed. How would you configure it? Through settings.py or through online parameters?
Do you have an example?
from modoboa-stats.
Good question. I think several preconfigured variants selected by a single choice in the online parameters would be most user-friendly. Optionally, customized regexes could be set via settings.py
. I'm working on proof-of-concept PR (probably without the settings.py
part).
from modoboa-stats.
@tonioo I've added preliminary Rmilter support in PR #19. To have complete support (including virus scanning), multiple Rmilter log lines would need to be parsed. This would probably only make sense with a complete revamp of the _parse_line
method.
What I'm currently unsure is the intended specification. Are spam/virus mails counted separately from sent/rejected mails? If so, we don't need to do anything. If spam mails should not count as rejected mails, we would need to have more complicated logic to prevent processing of the same message ID from another prog
.
from modoboa-stats.
@mundschenk-at I think that spam/virus should not be counted separately because we don't know the configuration (eg. if traffic is going to be rejected or accepted). Does it answer your question?
from modoboa-stats.
@tonioo That would seem to be a contradiction. The lack of information about what to do with spam
and virus
mails would indicate separate tallies independent of rejected
/received
/sent
to me, i.e. "counting them separately". No?
from modoboa-stats.
from modoboa-stats.
I think it's impossible to handle this in a general way. We would need to parse configuration files for different milters (Amavis, Rmilter/Rspamd ...) or recreate the various possible settings via parameters. I'd like to show the difference, but that would also increase the number of graphs ("spam detected, but accepted" vs. "spam rejected") and I doubt we could do a generic and solid implementation.
Maybe it would be better to have spam and virus mails in a separate GraphicSet
to show that it's on a distinct scale?
from modoboa-stats.
Why not. Then we could implement specific drivers (amavis, rspamd, etc.)
from modoboa-stats.
@tonioo Basic Rmilter/Rspamd support has been added via #23. It should work exactly like the existing Amavis implementation (i.e. it doesn't change the way counters work currently).
from modoboa-stats.
Related Issues (20)
- UnicodeEncodeError while parsing logs HOT 1
- german umlauts in domains breaks logparser HOT 5
- logparser fails to create RRD directory HOT 6
- journald HOT 4
- Stats graph not showing received mail HOT 1
- rrdtool.OperationalError: new_accounts.rrd: illegal attempt to update using time (minimum one second step) HOT 3
- Statstistics graph show 2 times in page HOT 3
- Statistic graph stay in French unless we switch to English
- Problem displaying stats HOT 19
- Time entered in 12 hr should be 24 hr
- Average size graphic broken with Python3
- parser is ignoring all lines
- Remove spam/virus info from statistics graph if not used
- Whishlist: have a refresh on /stats/#graphs/?gset=mailtraffic
- Graph suddenly stopped HOT 19
- Legend block is printed on the graphics
- FutureWarning: Possible nested set at position 29 with Python 3.7
- Wrong langage error message in /stats/
- invalid date HOT 6
- export to JSON directly in graphics.py HOT 2
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 modoboa-stats.