Permalink
Switch branches/tags
Nothing to show
Commits on Jan 20, 2016
  1. Merge pull request #16 from sbidy/master

    schweikert committed Jan 20, 2016
    Added milter reject to cleanup section
Commits on Nov 1, 2013
  1. Merge pull request #6 from kokel/postscreen

    schweikert committed Nov 1, 2013
    add postscreen support
  2. Merge pull request #5 from kokel/queue-id

    schweikert committed Nov 1, 2013
    add support for long queue-ids/ postfix
Commits on Aug 9, 2013
  1. Merge pull request #4 from x-way/lmtp

    schweikert committed Aug 9, 2013
    add --lmtp-is-smtp option to parse LMTP logentries
Commits on Oct 9, 2008
  1. allow running mailgraph.cgi on the command-line. Example:

    schweikert committed Oct 9, 2008
    ./mailgraph.cgi '0-n' >xxx.png
Commits on May 29, 2008
  1. From: Sylvain Beucler <beuc@beuc.net>

    schweikert committed May 29, 2008
    Subject: mailgraph: Imprecise total?
    
    Hi,
    
    I was trying to extract the sums (sent&received per day) from
    mailgraph's monthly RRD archives, and I got different results.
    
    
    I think there's a mistake in the graph's CDEF, more exactly when
    values are multiplied by $step (CDEF:drecv=recv,UN,0,recv,IF,$step,*).
    
    Step is computed on the assumption that 180 averages are used for the
    graph. 180 is defined in mailgraph.cgi as
    $xpoints(540)/$points_per_sample(3), that is, a graph of width 540
    pixels where each value (RRA row) is 3 pixels wide.
    
    Unfortunately the archive uses 180 averages for 35 days (not 31), as
    it's created with a multiple of weekly rows:
    $month_steps = $week_steps*5 (cf. /usr/sbin/mailgraph).
    
    So the CDEF is using a $step computed with 3600*24*31/180=14880s,
    while a point in the archive is really rrd.step * rra[2].pdp_per_row =
    60*280 = 16800s.  So monthly displayed values are about 10% less than
    the actual values from the RRA.
    
    This is confirmed by the value shown in rrdtool xport's <step>. An
    xport for 31 days will also show 160 rows instead of 180.
    
    Note that this problem does not occur for daily sums, because 180 rows
    at 8 points/row are exactly 1 day (180*8*60 = 86400 = 60*60*24).
    
    
    If you want to check/confirm, here's the xport command I used:
    # Use multiples to select the right RRA (see rrdfetch(1))
    TIME=$(date +%s)
    #RRDRES=$((60*8))   # dayly   = rrd.step * rra[0].pdp_per_row
    RRDRES=$((60*280))  # monthly = rrd.step * rra[2].pdp_per_row
    # DEF and CDEF are from mailgraph.cgi
    rrdtool xport \
      -e $(($TIME/$RRDRES*$RRDRES)) -s e-31d \
      "DEF:sent=mailgraph.rrd:sent:AVERAGE" \
      "CDEF:dsent=sent,UN,0,sent,IF,$RRDRES,*" \
      "CDEF:ssent=PREV,UN,dsent,PREV,IF,dsent,+" \
      "DEF:recv=mailgraph.rrd:recv:AVERAGE" \
      "CDEF:rrecv=recv,60,*" \
      "CDEF:drecv=recv,UN,0,recv,IF,$RRDRES,*" \
      "CDEF:srecv=PREV,UN,drecv,PREV,IF,drecv,+" \
      "DEF:spam=mailgraph_virus.rrd:spam:AVERAGE" \
      "CDEF:dspam=spam,UN,0,spam,IF,$RRDRES,*" \
      "CDEF:sspam=PREV,UN,dspam,PREV,IF,dspam,+" \
      "DEF:virus=mailgraph_virus.rrd:virus:AVERAGE" \
      "CDEF:rvirus=virus,60,*" \
      "CDEF:dvirus=virus,UN,0,virus,IF,$RRDRES,*" \
      "CDEF:svirus=PREV,UN,dvirus,PREV,IF,dvirus,+" \
      "CDEF:recvlegit=srecv,svirus,sspam,+,-"  \
      XPORT:recvlegit:"total_received" \
      XPORT:ssent:"total_sent" \
      XPORT:dsent:"sent"
    
    
    I had a look at Cacti, and it appears the sum is pre-computed before
    graphing, and included in the graph as a comment (see "summation" in
    http://docs.cacti.net/node/50).
    
    Maybe mailgraph could use that technique as well?
Commits on Nov 19, 2007
Commits on Aug 29, 2007
  1. Tag version 1.14

    schweikert committed Aug 29, 2007
  2. [empty log message]

    schweikert committed Aug 29, 2007
  3. add css file

    schweikert committed Aug 29, 2007
  4. small fix

    schweikert committed Aug 29, 2007
  5. Tag version 1.14

    schweikert committed Aug 29, 2007
  6. 1.14

    schweikert committed Aug 29, 2007
  7. svk -> svn

    schweikert committed Aug 29, 2007
  8. r6361@nigel: dws | 2007-08-29 10:26:16 +0200

    schweikert committed Aug 29, 2007
     update support for spamproxyd (Thomas Vander Stichele)
  9. r6360@nigel: dws | 2007-08-29 10:25:31 +0200

    schweikert committed Aug 29, 2007
     add support for exim (Nicola Worthington)
  10. r6359@nigel: dws | 2007-08-29 10:23:13 +0200

    schweikert committed Aug 29, 2007
     added external css file: mailgraph.css (Patrick Nagel)
  11. r6358@nigel: dws | 2007-08-29 10:19:56 +0200

    schweikert committed Aug 29, 2007
     add support for SpamAssassin milter (Todd A. Green)
  12. r6357@nigel: dws | 2007-08-29 10:15:43 +0200

    schweikert committed Aug 29, 2007
     update support for amavisd-new (Pawel Madej)
  13. r6356@nigel: dws | 2007-08-29 10:10:04 +0200

    schweikert committed Aug 29, 2007
     update support for amavis-milter (Joachim de Groot)
  14. r6355@nigel: dws | 2007-08-29 10:07:04 +0200

    schweikert committed Aug 29, 2007
     --ignore-host can now be specified multiple times
Commits on Mar 28, 2007
  1. r5561@nigel: dws | 2007-03-28 16:22:41 +0200

    schweikert committed Mar 28, 2007
     prepare for 1.14
  2. r5498@nigel: dws | 2007-03-28 16:13:21 +0200

    schweikert committed Mar 28, 2007
     prepare for 1.14
  3. r5497@nigel: dws | 2007-03-28 16:05:57 +0200

    schweikert committed Mar 28, 2007
     prepare release 1.14
  4. r5492@nigel: dws | 2007-03-28 14:52:49 +0200

    schweikert committed Mar 28, 2007
     fix hidden rejected line behind are items (Axel Beckert)
  5. r5491@nigel: dws | 2007-03-28 14:48:14 +0200

    schweikert committed Mar 28, 2007
     update support for Kaspersky AntiVirus (Igor Moskovko)
  6. r5490@nigel: dws | 2007-03-28 14:43:47 +0200

    schweikert committed Mar 28, 2007
     add support for the ClamAV SpamAssassin plugin (Thomas Brown)
  7. r5489@nigel: dws | 2007-03-28 14:39:09 +0200

    schweikert committed Mar 28, 2007
     * update support for MailScanner (Pierre-Yves Bonnetain)
     * add releative jump points (Hugo van der Kooij)
Commits on Mar 9, 2007
  1. cosmetic

    schweikert committed Mar 9, 2007
  2. css fixes

    schweikert committed Mar 9, 2007