Giter VIP home page Giter VIP logo

mail-tls-helper's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

sumpfralle 1resu

mail-tls-helper's Issues

Add support for no-TLS mailservers

Apparantently a no-TLS whitelist is needed, e.g. when the mailserver uses onion-MX.

Ideas are:

  • Add an option for autmatically ignoring hosts from the onion-MX host map
  • Always ignore connections to hosts with a .onion address

Percentage calculation is wrong

@sumpfralle I think one of your commits introduced the wrong calculation

Summary mail by mail-tls-helper on mail

Total count of sent messages:             6208
Total count of messages sent with TLS:    6179
Total count of messages sent with Tor:    0
Total count of messages sent unencrypted: 29
Percentage of messages sent unencrypted:  0.00%

should be 0,46

Summary mail by mail-tls-helper on mail

Total count of sent messages:             5189
Total count of messages sent with TLS:    5163
Total count of messages sent with Tor:    0
Total count of messages sent unencrypted: 26
Percentage of messages sent unencrypted:  0.01%

should be 0,5

Aggregate stats in database, allow delayed sending of summary mails

mail-tls-helper should allow for aggregation of statistics in database to support separated runs for log processing and for sending summary mails.

Rationale: At the moment, the summary mail is sent out immediately. This works well when mail-tls-helper is run weekly by logrotate. But for daily log rotation, this becomes annoying quickly.

We should support aggregation of the stats in the database and delayed sending of the summary mail via commandline options.

Munin plugin?

Hello,

I intend to add a munin plugin for the visualization of the numbers of mail submitted by transport security ("plain", "onion" and "tls"). Maybe we can exchange some thoughts about that (before I head into the wrong/unwanted direction.

  • The munin plugin would be called every five minutes - thus it would probably use the live mail log.
    • No additional complications like handling a state would arise. Just outputting the currently gathered mail counts would be sufficient.
  • I think, we should keep the single-file structure of the code.
  • maybe we should re-organice the argument handling:
    • allow separate actions (e.g. "update postmap", "send mail hints", "output statistics") - maybe even executed in a single run via nargs in argparse
    • otherwise we would probably need to a add a magic "--print-statistics-and-exit" switch, that would complicate the processing code

Or do you have other ideas how to approach this?

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.