Giter Site home page Giter Site logo

Comments (9)

tonioo avatar tonioo commented on August 27, 2024

Indeed. How would you configure it? Through settings.py or through online parameters?
Do you have an example?

from modoboa-stats.

mundschenk-at avatar mundschenk-at commented on August 27, 2024

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.

mundschenk-at avatar mundschenk-at commented on August 27, 2024

@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.

tonioo avatar tonioo commented on August 27, 2024

@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.

mundschenk-at avatar mundschenk-at commented on August 27, 2024

@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.

tonioo avatar tonioo commented on August 27, 2024

from modoboa-stats.

mundschenk-at avatar mundschenk-at commented on August 27, 2024

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.

tonioo avatar tonioo commented on August 27, 2024

Why not. Then we could implement specific drivers (amavis, rspamd, etc.)

from modoboa-stats.

mundschenk-at avatar mundschenk-at commented on August 27, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.