From 3afe1b82ef3f34f9301301fcdb9deb8dcd395f60 Mon Sep 17 00:00:00 2001 From: Julien Valroff Date: Tue, 8 Mar 2011 21:00:56 +0100 Subject: Fix patch to set default location of rrd files --- debian/changelog | 6 +++++ debian/patches/001_default-rrd-location.diff | 34 ++++++++++++++++++++++++++++ debian/patches/series | 2 +- 3 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 debian/patches/001_default-rrd-location.diff diff --git a/debian/changelog b/debian/changelog index c4c85a6..de6d117 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +mailgraph (1.14-9) unstable; urgency=low + + * Fix patch to set default location of rrd files (Closes: #617411) + + -- Julien Valroff Tue, 08 Mar 2011 21:00:23 +0100 + mailgraph (1.14-8) unstable; urgency=low * Add patch from Malte S. Stretz to replace rrdtool badge by a simple diff --git a/debian/patches/001_default-rrd-location.diff b/debian/patches/001_default-rrd-location.diff new file mode 100644 index 0000000..e971e1c --- /dev/null +++ b/debian/patches/001_default-rrd-location.diff @@ -0,0 +1,34 @@ +Description: Set path to rrd files to /var/lib/mailgraph/ +Forwarded: not-needed + +--- a/mailgraph.cgi ++++ b/mailgraph.cgi +@@ -18,7 +18,7 @@ + my $ypoints_err = 96; + my $rrd = 'mailgraph.rrd'; # path to where the RRD database is + my $rrd_virus = 'mailgraph_virus.rrd'; # path to where the Virus RRD database is +-my $tmp_dir = '/tmp/mailgraph'; # temporary directory where to store the images ++my $tmp_dir = '/var/lib/mailgraph'; # temporary directory where to store the images + + my @graphs = ( + { title => 'Last Day', seconds => 3600*24, }, +--- a/mailgraph.pl ++++ b/mailgraph.pl +@@ -373,7 +373,7 @@ + + my $daemon_logfile = '/var/log/mailgraph.log'; + my $daemon_pidfile = '/var/run/mailgraph.pid'; +-my $daemon_rrd_dir = '/var/log'; ++my $daemon_rrd_dir = '/var/lib/mailgraph'; + + # global variables + my $logfile; +@@ -411,7 +411,7 @@ + print " --host=HOST use only entries for HOST (regexp) in syslog\n"; + print " -d, --daemon start in the background\n"; + print " --daemon-pid=FILE write PID to FILE instead of /var/run/mailgraph.pid\n"; +- print " --daemon-rrd=DIR write RRDs to DIR instead of /var/log\n"; ++ print " --daemon-rrd=DIR write RRDs to DIR instead of /var/lib/mailgraph\n"; + print " --daemon-log=FILE write verbose-log to FILE instead of /var/log/mailgraph.log\n"; + print " --ignore-localhost ignore mail to/from localhost (used for virus scanner)\n"; + print " --ignore-host=HOST ignore mail to/from HOST regexp (used for virus scanner)\n"; diff --git a/debian/patches/series b/debian/patches/series index d5835d9..e07de45 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,4 +1,4 @@ -001_path-to-rrd.diff +001_default-rrd-location.diff 002_script-name.diff 003_web-bug.diff 101_dspam-virus-notifications.diff -- cgit v1.2.3 From d7b40e5247376aab389e2b69926a301cc2730db4 Mon Sep 17 00:00:00 2001 From: Julien Valroff Date: Sun, 13 Mar 2011 08:15:05 +0100 Subject: Fix previous commit --- debian/patches/001_default-rrd-location.diff | 10 ++++++--- debian/patches/001_path-to-rrd.diff | 31 ---------------------------- 2 files changed, 7 insertions(+), 34 deletions(-) delete mode 100644 debian/patches/001_path-to-rrd.diff diff --git a/debian/patches/001_default-rrd-location.diff b/debian/patches/001_default-rrd-location.diff index e971e1c..54be53f 100644 --- a/debian/patches/001_default-rrd-location.diff +++ b/debian/patches/001_default-rrd-location.diff @@ -3,11 +3,15 @@ Forwarded: not-needed --- a/mailgraph.cgi +++ b/mailgraph.cgi -@@ -18,7 +18,7 @@ +@@ -16,9 +16,9 @@ + my $points_per_sample = 3; + my $ypoints = 160; my $ypoints_err = 96; - my $rrd = 'mailgraph.rrd'; # path to where the RRD database is - my $rrd_virus = 'mailgraph_virus.rrd'; # path to where the Virus RRD database is +-my $rrd = 'mailgraph.rrd'; # path to where the RRD database is +-my $rrd_virus = 'mailgraph_virus.rrd'; # path to where the Virus RRD database is -my $tmp_dir = '/tmp/mailgraph'; # temporary directory where to store the images ++my $rrd = '/var/lib/mailgraph/mailgraph.rrd'; # path to where the RRD database is ++my $rrd_virus = '/var/lib/mailgraph/mailgraph_virus.rrd'; # path to where the Virus RRD database is +my $tmp_dir = '/var/lib/mailgraph'; # temporary directory where to store the images my @graphs = ( diff --git a/debian/patches/001_path-to-rrd.diff b/debian/patches/001_path-to-rrd.diff deleted file mode 100644 index 442ea58..0000000 --- a/debian/patches/001_path-to-rrd.diff +++ /dev/null @@ -1,31 +0,0 @@ -Description: Set path to rrd files to /var/lib/mailgraph/ -Forwarded: not-needed - ---- a/mailgraph.cgi -+++ b/mailgraph.cgi -@@ -16,9 +16,9 @@ - my $points_per_sample = 3; - my $ypoints = 160; - my $ypoints_err = 96; --my $rrd = 'mailgraph.rrd'; # path to where the RRD database is --my $rrd_virus = 'mailgraph_virus.rrd'; # path to where the Virus RRD database is --my $tmp_dir = '/tmp/mailgraph'; # temporary directory where to store the images -+my $rrd = '/var/lib/mailgraph/mailgraph.rrd'; # path to where the RRD database is -+my $rrd_virus = '/var/lib/mailgraph/mailgraph_virus.rrd'; # path to where the Virus RRD database is -+my $tmp_dir = '/var/lib/mailgraph/'; # temporary directory where to store the images - - my @graphs = ( - { title => 'Last Day', seconds => 3600*24, }, ---- a/mailgraph.pl -+++ b/mailgraph.pl -@@ -377,8 +377,8 @@ - - # global variables - my $logfile; --my $rrd = "mailgraph.rrd"; --my $rrd_virus = "mailgraph_virus.rrd"; -+my $rrd = "/var/lib/mailgraph/mailgraph.rrd"; -+my $rrd_virus = "/var/lib/mailgraph/mailgraph_virus.rrd"; - my $year; - my $this_minute; - my %sum = ( sent => 0, received => 0, bounced => 0, rejected => 0, virus => 0, spam => 0 ); -- cgit v1.2.3 From 540516f10765b5ee116dab1bcc5e6e451fa717bc Mon Sep 17 00:00:00 2001 From: Julien Valroff Date: Sun, 13 Mar 2011 08:16:37 +0100 Subject: Also fix manpage --- debian/mailgraph.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/mailgraph.8 b/debian/mailgraph.8 index e47818d..9d3c099 100644 --- a/debian/mailgraph.8 +++ b/debian/mailgraph.8 @@ -35,7 +35,7 @@ Start in the background .IP "\fB--daemon-pid=\fIFILE\fR" Write PID to \fIFILE\fR instead of /var/run/mailgraph.pid. .IP "\fB--daemon-rrd=\fIDIR\fR" -Write RRDs to \fIDIR\fR instead of /var/log. +Write RRDs to \fIDIR\fR instead of /var/lib/mailgraph/. .IP "\fB--daemon-log=\fIFILE\fR" Write verbose-log to \fIFILE\fR instead of /var/log/mailgraph.log. .IP "\fB--ignore-localhost\fR" -- cgit v1.2.3 From c6eee8fb7e2ba294afaae402177794247de1957d Mon Sep 17 00:00:00 2001 From: Julien Valroff Date: Sun, 13 Mar 2011 08:44:39 +0100 Subject: Add greylisting support --- debian/NEWS.Debian | 12 + debian/changelog | 4 +- debian/mailgraph.8 | 10 +- debian/patches/050_greylist.diff | 261 ++++++++++++++++++++++ debian/patches/051_postgrey.diff | 256 --------------------- debian/patches/101_dspam-virus-notifications.diff | 2 +- debian/patches/102_clamav-milter.diff | 2 +- debian/patches/series | 1 + 8 files changed, 285 insertions(+), 263 deletions(-) create mode 100644 debian/NEWS.Debian create mode 100644 debian/patches/050_greylist.diff delete mode 100644 debian/patches/051_postgrey.diff diff --git a/debian/NEWS.Debian b/debian/NEWS.Debian new file mode 100644 index 0000000..9a7bcc7 --- /dev/null +++ b/debian/NEWS.Debian @@ -0,0 +1,12 @@ +mailgraph (1.14-9) unstable; urgency=low + + * mailgraph now allows the creation of both RRD and graph for greylisting, + supporting postgrey and grossd (contributions to support more greylisting + servers are welcome). + If you used the --only-mail-rrd and/or --only-virus-rrd options, please make + sure you update your configuration for the following new options: + --no-mail-rrd Do not update the mail rrd. + --no-virus-rrd Do not update the virus rrd. + --no-greylist-rrd Do not update the greylist rrd. + + -- Julien Valroff Sun, 13 Mar 2011 08:40:00 +0100 diff --git a/debian/changelog b/debian/changelog index de6d117..36a9d2c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,10 @@ mailgraph (1.14-9) unstable; urgency=low * Fix patch to set default location of rrd files (Closes: #617411) + * Add patch to create greylisting RRD and graph (supports postgrey and + grossd) - -- Julien Valroff Tue, 08 Mar 2011 21:00:23 +0100 + -- Julien Valroff Sun, 13 Mar 2011 08:33:07 +0100 mailgraph (1.14-8) unstable; urgency=low diff --git a/debian/mailgraph.8 b/debian/mailgraph.8 index 9d3c099..3d55ff6 100644 --- a/debian/mailgraph.8 +++ b/debian/mailgraph.8 @@ -42,10 +42,12 @@ Write verbose-log to \fIFILE\fR instead of /var/log/mailgraph.log. Ignore mail to/from localhost (used for virus scanner). .IP "\fB--ignore-host=\fIHOST\fR" Ignore mail to/from \fIHOST\fR (used for virus scanner). -.IP "\fB--only-mail-rrd\fR" -Update only the mail rrd. -.IP "\fB--only-virus-rrd\fR" -Update only the virus rrd. +.IP "\fB--no-mail-rrd\fR" +Do not update the mail rrd. +.IP "\fB--no-virus-rrd\fR" +Do not update the virus rrd. +.IP "\fB--no-greylist-rrd\fR" +Do not update the greylist rrd. .IP "\fB--rrd-name=\fINAME\fR" Use \fINAME\fR.rrd and \fINAME\fR_virus.rrd for the rrd files. .IP "\fB--rbl-is-spam\fR" diff --git a/debian/patches/050_greylist.diff b/debian/patches/050_greylist.diff new file mode 100644 index 0000000..598deb8 --- /dev/null +++ b/debian/patches/050_greylist.diff @@ -0,0 +1,261 @@ +Description: Add postgrey and greylisting support to mailgraph +Author: Alexander Bech +Origin: http://www.bakarasse.de/pages/en/linux/mailgraph.php + +--- a/mailgraph.cgi ++++ b/mailgraph.cgi +@@ -16,6 +16,7 @@ + my $points_per_sample = 3; + my $ypoints = 160; + my $ypoints_err = 96; ++my $ypoints_grey = 96; + my $rrd = '/var/lib/mailgraph/mailgraph.rrd'; # path to where the RRD database is + my $rrd_virus = '/var/lib/mailgraph/mailgraph_virus.rrd'; # path to where the Virus RRD database is + my $tmp_dir = '/var/lib/mailgraph'; # temporary directory where to store the images +@@ -28,12 +29,14 @@ + ); + + my %color = ( +- sent => '000099', # rrggbb in hex +- received => '009900', +- rejected => 'AA0000', +- bounced => '000000', +- virus => 'DDBB00', +- spam => '999999', ++ sent => '000099', # rrggbb in hex ++ received => '009900', ++ rejected => 'AA0000', ++ bounced => '000000', ++ virus => 'DDBB00', ++ spam => '999999', ++ greylisted => '999999', ++ delayed => '006400', + ); + + sub rrd_graph(@) +@@ -151,6 +154,36 @@ + ); + } + ++sub graph_grey($$) ++{ ++ my ($range, $file) = @_; ++ my $step = $range*$points_per_sample/$xpoints; ++ rrd_graph($range, $file, $ypoints_grey, ++ "DEF:greylisted=$rrd_greylist:greylisted:AVERAGE", ++ "DEF:mgreylisted=$rrd_greylist:greylisted:MAX", ++ "CDEF:rgreylisted=greylisted,60,*", ++ "CDEF:dgreylisted=greylisted,UN,0,greylisted,IF,$step,*", ++ "CDEF:sgreylisted=PREV,UN,dgreylisted,PREV,IF,dgreylisted,+", ++ "CDEF:rmgreylisted=mgreylisted,60,*", ++ "AREA:rgreylisted#$color{greylisted}:Greylisted", ++ 'GPRINT:sgreylisted:MAX:total\: %8.0lf msgs', ++ 'GPRINT:rgreylisted:AVERAGE:avg\: %5.2lf msgs/min', ++ 'GPRINT:rmgreylisted:MAX:max\: %4.0lf msgs/min\l', ++ ++ "DEF:delayed=$rrd_greylist:delayed:AVERAGE", ++ "DEF:mdelayed=$rrd_greylist:delayed:MAX", ++ "CDEF:rdelayed=delayed,60,*", ++ "CDEF:ddelayed=delayed,UN,0,delayed,IF,$step,*", ++ "CDEF:sdelayed=PREV,UN,ddelayed,PREV,IF,ddelayed,+", ++ "CDEF:rmdelayed=mdelayed,60,*", ++ "LINE2:rdelayed#$color{delayed}:Delayed ", ++ 'GPRINT:sdelayed:MAX:total\: %8.0lf msgs', ++ 'GPRINT:rdelayed:AVERAGE:avg\: %5.2lf msgs/min', ++ 'GPRINT:rmdelayed:MAX:max\: %4.0lf msgs/min\l', ++ ); ++} ++ ++ + sub print_html() + { + print "Content-Type: text/html\n\n"; +@@ -180,6 +213,7 @@ + print "

$graphs[$n]{title}

\n"; + print "

\"mailgraph\"/
\n"; + print "\"mailgraph\"/

\n"; ++ print "\"mailgraph\"/

\n"; + } + + print < 0, received => 0, bounced => 0, rejected => 0, virus => 0, spam => 0 ); ++my %sum = ( sent => 0, received => 0, bounced => 0, rejected => 0, virus => 0, spam => 0, greylisted => 0, delayed => 0); + my $rrd_inited=0; + + my %opt = (); +@@ -395,6 +395,8 @@ + sub event_rejected($); + sub event_virus($); + sub event_spam($); ++sub event_greylisted($); ++sub event_delayed($); + sub init_rrd($); + sub update($); + +@@ -415,8 +417,9 @@ + print " --daemon-log=FILE write verbose-log to FILE instead of /var/log/mailgraph.log\n"; + print " --ignore-localhost ignore mail to/from localhost (used for virus scanner)\n"; + print " --ignore-host=HOST ignore mail to/from HOST regexp (used for virus scanner)\n"; +- print " --only-mail-rrd update only the mail rrd\n"; +- print " --only-virus-rrd update only the virus rrd\n"; ++ print " --no-mail-rrd no update mail rrd\n"; ++ print " --no-virus-rrd no update virus rrd\n"; ++ print " --no-greylist-rrd no update greylist rrd\n"; + print " --rrd-name=NAME use NAME.rrd and NAME_virus.rrd for the rrd files\n"; + print " --rbl-is-spam count rbl rejects as spam\n"; + print " --virbl-is-virus count virbl rejects as viruses\n"; +@@ -431,7 +434,7 @@ + 'year|y=i', 'host=s', 'verbose|v', 'daemon|d!', + 'daemon_pid|daemon-pid=s', 'daemon_rrd|daemon-rrd=s', + 'daemon_log|daemon-log=s', 'ignore-localhost!', 'ignore-host=s@', +- 'only-mail-rrd', 'only-virus-rrd', 'rrd_name|rrd-name=s', ++ 'no-mail-rrd', 'no-virus-rrd', 'no-greylist-rrd', 'rrd_name|rrd-name=s', + 'rbl-is-spam', 'virbl-is-virus' + ) or exit(1); + usage if $opt{help}; +@@ -446,6 +449,7 @@ + $daemon_rrd_dir = $opt{daemon_rrd} if defined $opt{daemon_rrd}; + $rrd = $opt{rrd_name}.".rrd" if defined $opt{rrd_name}; + $rrd_virus = $opt{rrd_name}."_virus.rrd" if defined $opt{rrd_name}; ++ $rrd_virus = $opt{rrd_name}."_greylist.rrd" if defined $opt{rrd_name}; + + # compile --ignore-host regexps + if(defined $opt{'ignore-host'}) { +@@ -522,7 +526,7 @@ + my $year_steps = $month_steps*12; + + # mail rrd +- if(! -f $rrd and ! $opt{'only-virus-rrd'}) { ++ if(! -f $rrd and ! $opt{'no-mail-rrd'}) { + RRDs::create($rrd, '--start', $m, '--step', $rrdstep, + 'DS:sent:ABSOLUTE:'.($rrdstep*2).':0:U', + 'DS:recv:ABSOLUTE:'.($rrdstep*2).':0:U', +@@ -544,7 +548,7 @@ + } + + # virus rrd +- if(! -f $rrd_virus and ! $opt{'only-mail-rrd'}) { ++ if(! -f $rrd_virus and ! $opt{'no-virus-rrd'}) { + RRDs::create($rrd_virus, '--start', $m, '--step', $rrdstep, + 'DS:virus:ABSOLUTE:'.($rrdstep*2).':0:U', + 'DS:spam:ABSOLUTE:'.($rrdstep*2).':0:U', +@@ -561,6 +565,25 @@ + elsif(-f $rrd_virus and ! defined $rrd_virus) { + $this_minute = RRDs::last($rrd_virus) + $rrdstep; + } ++ # greylist rrd ++ if(! -f $rrd_greylist and ! $opt{'no-greylist-rrd'}) { ++ RRDs::create($rrd_greylist, '--start', $m, '--step', $rrdstep, ++ 'DS:greylisted:ABSOLUTE:'.($rrdstep*2).':0:U', ++ 'DS:delayed:ABSOLUTE:'.($rrdstep*2).':0:U', ++ "RRA:AVERAGE:0.5:$day_steps:$realrows", # day ++ "RRA:AVERAGE:0.5:$week_steps:$realrows", # week ++ "RRA:AVERAGE:0.5:$month_steps:$realrows", # month ++ "RRA:AVERAGE:0.5:$year_steps:$realrows", # year ++ "RRA:MAX:0.5:$day_steps:$realrows", # day ++ "RRA:MAX:0.5:$week_steps:$realrows", # week ++ "RRA:MAX:0.5:$month_steps:$realrows", # month ++ "RRA:MAX:0.5:$year_steps:$realrows", # year ++ ); ++ $this_minute = $m; ++ } ++ elsif(-f $rrd_greylist and ! defined $rrd_greylist) { ++ $this_minute = RRDs::last($rrd_greylist) + $rrdstep; ++ } + + $rrd_inited=1; + } +@@ -610,6 +633,9 @@ + elsif($opt{'rbl-is-spam'} and $text =~ /^(?:[0-9A-Z]+: |NOQUEUE: )?reject: .*: 554.* blocked using/) { + event($time, 'spam'); + } ++ elsif($text =~ /Greylisted/) { ++ event($time, 'greylisted'); ++ } + elsif($text =~ /^(?:[0-9A-Z]+: |NOQUEUE: )?reject: /) { + event($time, 'rejected'); + } +@@ -853,6 +879,21 @@ + event($time, 'virus'); + } + } ++ elsif($prog eq 'postgrey') { ++ # Old versions (up to 1.27) ++ if($text =~ /delayed [0-9]+ seconds: client/) { ++ event($time, 'delayed'); ++ } ++ # New versions (from 1.28) ++ if($text =~ /delay=[0-9]+/) { ++ event($time, 'delayed'); ++ } ++ } ++ elsif($prog eq 'grossd') { ++ if($text =~ /a\=greylist/) { ++ event($time, 'greylisted'); ++ } ++ } + } + + sub event($$) +@@ -870,14 +911,16 @@ + return 1 if $m == $this_minute; + return 0 if $m < $this_minute; + +- print "update $this_minute:$sum{sent}:$sum{received}:$sum{bounced}:$sum{rejected}:$sum{virus}:$sum{spam}\n" if $opt{verbose}; +- RRDs::update $rrd, "$this_minute:$sum{sent}:$sum{received}:$sum{bounced}:$sum{rejected}" unless $opt{'only-virus-rrd'}; +- RRDs::update $rrd_virus, "$this_minute:$sum{virus}:$sum{spam}" unless $opt{'only-mail-rrd'}; ++ print "update $this_minute:$sum{sent}:$sum{received}:$sum{bounced}:$sum{rejected}:$sum{virus}:$sum{spam}:$sum{greylisted}:$sum{delayed}\n" if$ ++ RRDs::update $rrd, "$this_minute:$sum{sent}:$sum{received}:$sum{bounced}:$sum{rejected}" unless $opt{'no-mail-rrd'}; ++ RRDs::update $rrd_virus, "$this_minute:$sum{virus}:$sum{spam}" unless $opt{'no-virus-rrd'}; ++ RRDs::update $rrd_greylist, "$this_minute:$sum{greylisted}:$sum{delayed}" unless $opt{'no-greylist-rrd'}; + if($m > $this_minute+$rrdstep) { + for(my $sm=$this_minute+$rrdstep;$sm<$m;$sm+=$rrdstep) { +- print "update $sm:0:0:0:0:0:0 (SKIP)\n" if $opt{verbose}; +- RRDs::update $rrd, "$sm:0:0:0:0" unless $opt{'only-virus-rrd'}; +- RRDs::update $rrd_virus, "$sm:0:0" unless $opt{'only-mail-rrd'}; ++ print "update $sm:0:0:0:0:0:0:0:0 (SKIP)\n" if $opt{verbose}; ++ RRDs::update $rrd, "$sm:0:0:0:0" unless $opt{'no-mail-rrd'}; ++ RRDs::update $rrd_virus, "$sm:0:0" unless $opt{'no-virus-rrd'}; ++ RRDs::update $rrd_greylist, "$sm:0:0" unless $opt{'no-greylist-rrd'}; + } + } + $this_minute = $m; +@@ -887,6 +930,8 @@ + $sum{rejected}=0; + $sum{virus}=0; + $sum{spam}=0; ++ $sum{greylisted}=0; ++ $sum{delayed}=0; + return 1; + } + +@@ -919,8 +964,9 @@ + --daemon-log=FILE write verbose-log to FILE instead of /var/log/mailgraph.log + --ignore-localhost ignore mail to/from localhost (used for virus scanner) + --ignore-host=HOST ignore mail to/from HOST regexp (used for virus scanner) +- --only-mail-rrd update only the mail rrd +- --only-virus-rrd update only the virus rrd ++ --no-mail-rrd do not update mail rrd ++ --no-virus-rrd do not update virus rrd ++ --no-greylist-rrd do not update greylist rrd + --rrd-name=NAME use NAME.rrd and NAME_virus.rrd for the rrd files + --rbl-is-spam count rbl rejects as spam + --virbl-is-virus count virbl rejects as viruses diff --git a/debian/patches/051_postgrey.diff b/debian/patches/051_postgrey.diff deleted file mode 100644 index b3683e7..0000000 --- a/debian/patches/051_postgrey.diff +++ /dev/null @@ -1,256 +0,0 @@ -Description: Add postgrey and greylisting support to mailgraph -Author: Alexander Bech -Origin: http://www.bakarasse.de/pages/en/linux/mailgraph.php - ---- a/mailgraph.cgi -+++ b/mailgraph.cgi -@@ -16,6 +16,7 @@ - my $points_per_sample = 3; - my $ypoints = 160; - my $ypoints_err = 96; -+my $ypoints_grey = 96; - my $rrd = '/var/lib/mailgraph/mailgraph.rrd'; # path to where the RRD database is - my $rrd_virus = '/var/lib/mailgraph/mailgraph_virus.rrd'; # path to where the Virus RRD database is - my $tmp_dir = '/var/lib/mailgraph/'; # temporary directory where to store the images -@@ -28,12 +29,14 @@ - ); - - my %color = ( -- sent => '000099', # rrggbb in hex -- received => '009900', -- rejected => 'AA0000', -- bounced => '000000', -- virus => 'DDBB00', -- spam => '999999', -+ sent => '000099', # rrggbb in hex -+ received => '009900', -+ rejected => 'AA0000', -+ bounced => '000000', -+ virus => 'DDBB00', -+ spam => '999999', -+ greylisted => '999999', -+ delayed => '006400', - ); - - sub rrd_graph(@) -@@ -151,6 +154,36 @@ - ); - } - -+sub graph_grey($$) -+{ -+ my ($range, $file) = @_; -+ my $step = $range*$points_per_sample/$xpoints; -+ rrd_graph($range, $file, $ypoints_grey, -+ "DEF:greylisted=$rrd_greylist:greylisted:AVERAGE", -+ "DEF:mgreylisted=$rrd_greylist:greylisted:MAX", -+ "CDEF:rgreylisted=greylisted,60,*", -+ "CDEF:dgreylisted=greylisted,UN,0,greylisted,IF,$step,*", -+ "CDEF:sgreylisted=PREV,UN,dgreylisted,PREV,IF,dgreylisted,+", -+ "CDEF:rmgreylisted=mgreylisted,60,*", -+ "AREA:rgreylisted#$color{greylisted}:Greylisted", -+ 'GPRINT:sgreylisted:MAX:total\: %8.0lf msgs', -+ 'GPRINT:rgreylisted:AVERAGE:avg\: %5.2lf msgs/min', -+ 'GPRINT:rmgreylisted:MAX:max\: %4.0lf msgs/min\l', -+ -+ "DEF:delayed=$rrd_greylist:delayed:AVERAGE", -+ "DEF:mdelayed=$rrd_greylist:delayed:MAX", -+ "CDEF:rdelayed=delayed,60,*", -+ "CDEF:ddelayed=delayed,UN,0,delayed,IF,$step,*", -+ "CDEF:sdelayed=PREV,UN,ddelayed,PREV,IF,ddelayed,+", -+ "CDEF:rmdelayed=mdelayed,60,*", -+ "LINE2:rdelayed#$color{delayed}:Delayed ", -+ 'GPRINT:sdelayed:MAX:total\: %8.0lf msgs', -+ 'GPRINT:rdelayed:AVERAGE:avg\: %5.2lf msgs/min', -+ 'GPRINT:rmdelayed:MAX:max\: %4.0lf msgs/min\l', -+ ); -+} -+ -+ - sub print_html() - { - print "Content-Type: text/html\n\n"; -@@ -180,6 +213,7 @@ - print "

$graphs[$n]{title}

\n"; - print "

\"mailgraph\"/
\n"; - print "\"mailgraph\"/

\n"; -+ print "\"mailgraph\"/

\n"; - } - - print < 0, received => 0, bounced => 0, rejected => 0, virus => 0, spam => 0 ); -+my %sum = ( sent => 0, received => 0, bounced => 0, rejected => 0, virus => 0, spam => 0, greylisted => 0, delayed => 0); - my $rrd_inited=0; - - my %opt = (); -@@ -395,6 +395,8 @@ - sub event_rejected($); - sub event_virus($); - sub event_spam($); -+sub event_greylisted($); -+sub event_delayed($); - sub init_rrd($); - sub update($); - -@@ -415,8 +417,9 @@ - print " --daemon-log=FILE write verbose-log to FILE instead of /var/log/mailgraph.log\n"; - print " --ignore-localhost ignore mail to/from localhost (used for virus scanner)\n"; - print " --ignore-host=HOST ignore mail to/from HOST regexp (used for virus scanner)\n"; -- print " --only-mail-rrd update only the mail rrd\n"; -- print " --only-virus-rrd update only the virus rrd\n"; -+ print " --no-mail-rrd no update mail rrd\n"; -+ print " --no-virus-rrd no update virus rrd\n"; -+ print " --no-greylist-rrd no update greylist rrd\n"; - print " --rrd-name=NAME use NAME.rrd and NAME_virus.rrd for the rrd files\n"; - print " --rbl-is-spam count rbl rejects as spam\n"; - print " --virbl-is-virus count virbl rejects as viruses\n"; -@@ -431,7 +434,7 @@ - 'year|y=i', 'host=s', 'verbose|v', 'daemon|d!', - 'daemon_pid|daemon-pid=s', 'daemon_rrd|daemon-rrd=s', - 'daemon_log|daemon-log=s', 'ignore-localhost!', 'ignore-host=s@', -- 'only-mail-rrd', 'only-virus-rrd', 'rrd_name|rrd-name=s', -+ 'no-mail-rrd', 'no-virus-rrd', 'no-greylist-rrd', 'rrd_name|rrd-name=s', - 'rbl-is-spam', 'virbl-is-virus' - ) or exit(1); - usage if $opt{help}; -@@ -446,6 +449,7 @@ - $daemon_rrd_dir = $opt{daemon_rrd} if defined $opt{daemon_rrd}; - $rrd = $opt{rrd_name}.".rrd" if defined $opt{rrd_name}; - $rrd_virus = $opt{rrd_name}."_virus.rrd" if defined $opt{rrd_name}; -+ $rrd_virus = $opt{rrd_name}."_greylist.rrd" if defined $opt{rrd_name}; - - # compile --ignore-host regexps - if(defined $opt{'ignore-host'}) { -@@ -522,7 +526,7 @@ - my $year_steps = $month_steps*12; - - # mail rrd -- if(! -f $rrd and ! $opt{'only-virus-rrd'}) { -+ if(! -f $rrd and ! $opt{'no-mail-rrd'}) { - RRDs::create($rrd, '--start', $m, '--step', $rrdstep, - 'DS:sent:ABSOLUTE:'.($rrdstep*2).':0:U', - 'DS:recv:ABSOLUTE:'.($rrdstep*2).':0:U', -@@ -544,7 +548,7 @@ - } - - # virus rrd -- if(! -f $rrd_virus and ! $opt{'only-mail-rrd'}) { -+ if(! -f $rrd_virus and ! $opt{'no-virus-rrd'}) { - RRDs::create($rrd_virus, '--start', $m, '--step', $rrdstep, - 'DS:virus:ABSOLUTE:'.($rrdstep*2).':0:U', - 'DS:spam:ABSOLUTE:'.($rrdstep*2).':0:U', -@@ -561,6 +565,25 @@ - elsif(-f $rrd_virus and ! defined $rrd_virus) { - $this_minute = RRDs::last($rrd_virus) + $rrdstep; - } -+ # greylist rrd -+ if(! -f $rrd_greylist and ! $opt{'no-greylist-rrd'}) { -+ RRDs::create($rrd_greylist, '--start', $m, '--step', $rrdstep, -+ 'DS:greylisted:ABSOLUTE:'.($rrdstep*2).':0:U', -+ 'DS:delayed:ABSOLUTE:'.($rrdstep*2).':0:U', -+ "RRA:AVERAGE:0.5:$day_steps:$realrows", # day -+ "RRA:AVERAGE:0.5:$week_steps:$realrows", # week -+ "RRA:AVERAGE:0.5:$month_steps:$realrows", # month -+ "RRA:AVERAGE:0.5:$year_steps:$realrows", # year -+ "RRA:MAX:0.5:$day_steps:$realrows", # day -+ "RRA:MAX:0.5:$week_steps:$realrows", # week -+ "RRA:MAX:0.5:$month_steps:$realrows", # month -+ "RRA:MAX:0.5:$year_steps:$realrows", # year -+ ); -+ $this_minute = $m; -+ } -+ elsif(-f $rrd_greylist and ! defined $rrd_greylist) { -+ $this_minute = RRDs::last($rrd_greylist) + $rrdstep; -+ } - - $rrd_inited=1; - } -@@ -610,6 +633,9 @@ - elsif($opt{'rbl-is-spam'} and $text =~ /^(?:[0-9A-Z]+: |NOQUEUE: )?reject: .*: 554.* blocked using/) { - event($time, 'spam'); - } -+ elsif($text =~ /Greylisted/) { -+ event($time, 'greylisted'); -+ } - elsif($text =~ /^(?:[0-9A-Z]+: |NOQUEUE: )?reject: /) { - event($time, 'rejected'); - } -@@ -853,6 +879,16 @@ - event($time, 'virus'); - } - } -+ elsif($prog eq 'postgrey') { -+ # Old versions (up to 1.27) -+ if($text =~ /delayed [0-9]+ seconds: client/) { -+ event($time, 'delayed'); -+ } -+ # New versions (from 1.28) -+ if($text =~ /delay=[0-9]+/) { -+ event($time, 'delayed'); -+ } -+ } - } - - sub event($$) -@@ -870,14 +906,16 @@ - return 1 if $m == $this_minute; - return 0 if $m < $this_minute; - -- print "update $this_minute:$sum{sent}:$sum{received}:$sum{bounced}:$sum{rejected}:$sum{virus}:$sum{spam}\n" if $opt{verbose}; -- RRDs::update $rrd, "$this_minute:$sum{sent}:$sum{received}:$sum{bounced}:$sum{rejected}" unless $opt{'only-virus-rrd'}; -- RRDs::update $rrd_virus, "$this_minute:$sum{virus}:$sum{spam}" unless $opt{'only-mail-rrd'}; -+ print "update $this_minute:$sum{sent}:$sum{received}:$sum{bounced}:$sum{rejected}:$sum{virus}:$sum{spam}:$sum{greylisted}:$sum{delayed}\n" if$ -+ RRDs::update $rrd, "$this_minute:$sum{sent}:$sum{received}:$sum{bounced}:$sum{rejected}" unless $opt{'no-mail-rrd'}; -+ RRDs::update $rrd_virus, "$this_minute:$sum{virus}:$sum{spam}" unless $opt{'no-virus-rrd'}; -+ RRDs::update $rrd_greylist, "$this_minute:$sum{greylisted}:$sum{delayed}" unless $opt{'no-greylist-rrd'}; - if($m > $this_minute+$rrdstep) { - for(my $sm=$this_minute+$rrdstep;$sm<$m;$sm+=$rrdstep) { -- print "update $sm:0:0:0:0:0:0 (SKIP)\n" if $opt{verbose}; -- RRDs::update $rrd, "$sm:0:0:0:0" unless $opt{'only-virus-rrd'}; -- RRDs::update $rrd_virus, "$sm:0:0" unless $opt{'only-mail-rrd'}; -+ print "update $sm:0:0:0:0:0:0:0:0 (SKIP)\n" if $opt{verbose}; -+ RRDs::update $rrd, "$sm:0:0:0:0" unless $opt{'no-mail-rrd'}; -+ RRDs::update $rrd_virus, "$sm:0:0" unless $opt{'no-virus-rrd'}; -+ RRDs::update $rrd_greylist, "$sm:0:0" unless $opt{'no-greylist-rrd'}; - } - } - $this_minute = $m; -@@ -887,6 +925,8 @@ - $sum{rejected}=0; - $sum{virus}=0; - $sum{spam}=0; -+ $sum{greylisted}=0; -+ $sum{delayed}=0; - return 1; - } - -@@ -919,8 +959,9 @@ - --daemon-log=FILE write verbose-log to FILE instead of /var/log/mailgraph.log - --ignore-localhost ignore mail to/from localhost (used for virus scanner) - --ignore-host=HOST ignore mail to/from HOST regexp (used for virus scanner) -- --only-mail-rrd update only the mail rrd -- --only-virus-rrd update only the virus rrd -+ --no-mail-rrd do not update mail rrd -+ --no-virus-rrd do not update virus rrd -+ --no-greylist-rrd do not update greylist rrd - --rrd-name=NAME use NAME.rrd and NAME_virus.rrd for the rrd files - --rbl-is-spam count rbl rejects as spam - --virbl-is-virus count virbl rejects as viruses diff --git a/debian/patches/101_dspam-virus-notifications.diff b/debian/patches/101_dspam-virus-notifications.diff index 96d4068..bd5a04b 100644 --- a/debian/patches/101_dspam-virus-notifications.diff +++ b/debian/patches/101_dspam-virus-notifications.diff @@ -5,7 +5,7 @@ Forwarded: no --- a/mailgraph.pl +++ b/mailgraph.pl -@@ -774,6 +774,9 @@ +@@ -800,6 +800,9 @@ if($text =~ /spam detected from/) { event($time, 'spam'); } diff --git a/debian/patches/102_clamav-milter.diff b/debian/patches/102_clamav-milter.diff index c9eac04..25c49f3 100644 --- a/debian/patches/102_clamav-milter.diff +++ b/debian/patches/102_clamav-milter.diff @@ -4,7 +4,7 @@ Forwarded: no --- a/mailgraph.pl +++ b/mailgraph.pl -@@ -820,6 +820,9 @@ +@@ -846,6 +846,9 @@ if($text =~ /Intercepted/) { event($time, 'virus'); } diff --git a/debian/patches/series b/debian/patches/series index e07de45..73a941e 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,5 +1,6 @@ 001_default-rrd-location.diff 002_script-name.diff 003_web-bug.diff +050_greylist.diff 101_dspam-virus-notifications.diff 102_clamav-milter.diff -- cgit v1.2.3 From ca5dd0887b7ba33d4022045c99c985edc1cfc5fe Mon Sep 17 00:00:00 2001 From: Julien Valroff Date: Sun, 13 Mar 2011 09:02:21 +0100 Subject: Fix greylisting support --- debian/patches/050_greylist.diff | 38 ++++++++++++++--------- debian/patches/101_dspam-virus-notifications.diff | 2 +- debian/patches/102_clamav-milter.diff | 2 +- 3 files changed, 25 insertions(+), 17 deletions(-) diff --git a/debian/patches/050_greylist.diff b/debian/patches/050_greylist.diff index 598deb8..53fd408 100644 --- a/debian/patches/050_greylist.diff +++ b/debian/patches/050_greylist.diff @@ -4,14 +4,19 @@ Origin: http://www.bakarasse.de/pages/en/linux/mailgraph.php --- a/mailgraph.cgi +++ b/mailgraph.cgi -@@ -16,6 +16,7 @@ +@@ -16,10 +16,11 @@ my $points_per_sample = 3; my $ypoints = 160; my $ypoints_err = 96; +my $ypoints_grey = 96; my $rrd = '/var/lib/mailgraph/mailgraph.rrd'; # path to where the RRD database is my $rrd_virus = '/var/lib/mailgraph/mailgraph_virus.rrd'; # path to where the Virus RRD database is ++my $rrd_greylist = '/var/lib/mailgraph/mailgraph_greylist.rrd'; # path to where the Greylist RRD database is my $tmp_dir = '/var/lib/mailgraph'; # temporary directory where to store the images +- + my @graphs = ( + { title => 'Last Day', seconds => 3600*24, }, + { title => 'Last Week', seconds => 3600*24*7, }, @@ -28,12 +29,14 @@ ); @@ -92,8 +97,11 @@ Origin: http://www.bakarasse.de/pages/en/linux/mailgraph.php } --- a/mailgraph.pl +++ b/mailgraph.pl -@@ -381,7 +381,7 @@ +@@ -379,9 +379,10 @@ + my $logfile; + my $rrd = "mailgraph.rrd"; my $rrd_virus = "mailgraph_virus.rrd"; ++my $rrd_greylist = "mailgraph_greylist.rrd"; my $year; my $this_minute; -my %sum = ( sent => 0, received => 0, bounced => 0, rejected => 0, virus => 0, spam => 0 ); @@ -101,7 +109,7 @@ Origin: http://www.bakarasse.de/pages/en/linux/mailgraph.php my $rrd_inited=0; my %opt = (); -@@ -395,6 +395,8 @@ +@@ -395,6 +396,8 @@ sub event_rejected($); sub event_virus($); sub event_spam($); @@ -110,7 +118,7 @@ Origin: http://www.bakarasse.de/pages/en/linux/mailgraph.php sub init_rrd($); sub update($); -@@ -415,8 +417,9 @@ +@@ -415,8 +418,9 @@ print " --daemon-log=FILE write verbose-log to FILE instead of /var/log/mailgraph.log\n"; print " --ignore-localhost ignore mail to/from localhost (used for virus scanner)\n"; print " --ignore-host=HOST ignore mail to/from HOST regexp (used for virus scanner)\n"; @@ -122,7 +130,7 @@ Origin: http://www.bakarasse.de/pages/en/linux/mailgraph.php print " --rrd-name=NAME use NAME.rrd and NAME_virus.rrd for the rrd files\n"; print " --rbl-is-spam count rbl rejects as spam\n"; print " --virbl-is-virus count virbl rejects as viruses\n"; -@@ -431,7 +434,7 @@ +@@ -431,7 +435,7 @@ 'year|y=i', 'host=s', 'verbose|v', 'daemon|d!', 'daemon_pid|daemon-pid=s', 'daemon_rrd|daemon-rrd=s', 'daemon_log|daemon-log=s', 'ignore-localhost!', 'ignore-host=s@', @@ -131,7 +139,7 @@ Origin: http://www.bakarasse.de/pages/en/linux/mailgraph.php 'rbl-is-spam', 'virbl-is-virus' ) or exit(1); usage if $opt{help}; -@@ -446,6 +449,7 @@ +@@ -446,6 +450,7 @@ $daemon_rrd_dir = $opt{daemon_rrd} if defined $opt{daemon_rrd}; $rrd = $opt{rrd_name}.".rrd" if defined $opt{rrd_name}; $rrd_virus = $opt{rrd_name}."_virus.rrd" if defined $opt{rrd_name}; @@ -139,7 +147,7 @@ Origin: http://www.bakarasse.de/pages/en/linux/mailgraph.php # compile --ignore-host regexps if(defined $opt{'ignore-host'}) { -@@ -522,7 +526,7 @@ +@@ -522,7 +527,7 @@ my $year_steps = $month_steps*12; # mail rrd @@ -148,7 +156,7 @@ Origin: http://www.bakarasse.de/pages/en/linux/mailgraph.php RRDs::create($rrd, '--start', $m, '--step', $rrdstep, 'DS:sent:ABSOLUTE:'.($rrdstep*2).':0:U', 'DS:recv:ABSOLUTE:'.($rrdstep*2).':0:U', -@@ -544,7 +548,7 @@ +@@ -544,7 +549,7 @@ } # virus rrd @@ -157,7 +165,7 @@ Origin: http://www.bakarasse.de/pages/en/linux/mailgraph.php RRDs::create($rrd_virus, '--start', $m, '--step', $rrdstep, 'DS:virus:ABSOLUTE:'.($rrdstep*2).':0:U', 'DS:spam:ABSOLUTE:'.($rrdstep*2).':0:U', -@@ -561,6 +565,25 @@ +@@ -561,6 +566,25 @@ elsif(-f $rrd_virus and ! defined $rrd_virus) { $this_minute = RRDs::last($rrd_virus) + $rrdstep; } @@ -183,7 +191,7 @@ Origin: http://www.bakarasse.de/pages/en/linux/mailgraph.php $rrd_inited=1; } -@@ -610,6 +633,9 @@ +@@ -610,6 +634,9 @@ elsif($opt{'rbl-is-spam'} and $text =~ /^(?:[0-9A-Z]+: |NOQUEUE: )?reject: .*: 554.* blocked using/) { event($time, 'spam'); } @@ -193,7 +201,7 @@ Origin: http://www.bakarasse.de/pages/en/linux/mailgraph.php elsif($text =~ /^(?:[0-9A-Z]+: |NOQUEUE: )?reject: /) { event($time, 'rejected'); } -@@ -853,6 +879,21 @@ +@@ -853,6 +880,21 @@ event($time, 'virus'); } } @@ -215,14 +223,14 @@ Origin: http://www.bakarasse.de/pages/en/linux/mailgraph.php } sub event($$) -@@ -870,14 +911,16 @@ +@@ -870,14 +912,16 @@ return 1 if $m == $this_minute; return 0 if $m < $this_minute; - print "update $this_minute:$sum{sent}:$sum{received}:$sum{bounced}:$sum{rejected}:$sum{virus}:$sum{spam}\n" if $opt{verbose}; - RRDs::update $rrd, "$this_minute:$sum{sent}:$sum{received}:$sum{bounced}:$sum{rejected}" unless $opt{'only-virus-rrd'}; - RRDs::update $rrd_virus, "$this_minute:$sum{virus}:$sum{spam}" unless $opt{'only-mail-rrd'}; -+ print "update $this_minute:$sum{sent}:$sum{received}:$sum{bounced}:$sum{rejected}:$sum{virus}:$sum{spam}:$sum{greylisted}:$sum{delayed}\n" if$ ++ print "update $this_minute:$sum{sent}:$sum{received}:$sum{bounced}:$sum{rejected}:$sum{virus}:$sum{spam}:$sum{greylisted}:$sum{delayed}\n" if $opt{verbose}; + RRDs::update $rrd, "$this_minute:$sum{sent}:$sum{received}:$sum{bounced}:$sum{rejected}" unless $opt{'no-mail-rrd'}; + RRDs::update $rrd_virus, "$this_minute:$sum{virus}:$sum{spam}" unless $opt{'no-virus-rrd'}; + RRDs::update $rrd_greylist, "$this_minute:$sum{greylisted}:$sum{delayed}" unless $opt{'no-greylist-rrd'}; @@ -238,7 +246,7 @@ Origin: http://www.bakarasse.de/pages/en/linux/mailgraph.php } } $this_minute = $m; -@@ -887,6 +930,8 @@ +@@ -887,6 +931,8 @@ $sum{rejected}=0; $sum{virus}=0; $sum{spam}=0; @@ -247,7 +255,7 @@ Origin: http://www.bakarasse.de/pages/en/linux/mailgraph.php return 1; } -@@ -919,8 +964,9 @@ +@@ -919,8 +965,9 @@ --daemon-log=FILE write verbose-log to FILE instead of /var/log/mailgraph.log --ignore-localhost ignore mail to/from localhost (used for virus scanner) --ignore-host=HOST ignore mail to/from HOST regexp (used for virus scanner) diff --git a/debian/patches/101_dspam-virus-notifications.diff b/debian/patches/101_dspam-virus-notifications.diff index bd5a04b..3a27c5c 100644 --- a/debian/patches/101_dspam-virus-notifications.diff +++ b/debian/patches/101_dspam-virus-notifications.diff @@ -5,7 +5,7 @@ Forwarded: no --- a/mailgraph.pl +++ b/mailgraph.pl -@@ -800,6 +800,9 @@ +@@ -801,6 +801,9 @@ if($text =~ /spam detected from/) { event($time, 'spam'); } diff --git a/debian/patches/102_clamav-milter.diff b/debian/patches/102_clamav-milter.diff index 25c49f3..a8378fe 100644 --- a/debian/patches/102_clamav-milter.diff +++ b/debian/patches/102_clamav-milter.diff @@ -4,7 +4,7 @@ Forwarded: no --- a/mailgraph.pl +++ b/mailgraph.pl -@@ -846,6 +846,9 @@ +@@ -847,6 +847,9 @@ if($text =~ /Intercepted/) { event($time, 'virus'); } -- cgit v1.2.3 From 2ad274391f4cd3070a88f66c547b51b0df0d5f5d Mon Sep 17 00:00:00 2001 From: Julien Valroff Date: Sun, 13 Mar 2011 09:28:44 +0100 Subject: Fix manpage --- debian/mailgraph.8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/mailgraph.8 b/debian/mailgraph.8 index 3d55ff6..48f2dad 100644 --- a/debian/mailgraph.8 +++ b/debian/mailgraph.8 @@ -49,7 +49,7 @@ Do not update the virus rrd. .IP "\fB--no-greylist-rrd\fR" Do not update the greylist rrd. .IP "\fB--rrd-name=\fINAME\fR" -Use \fINAME\fR.rrd and \fINAME\fR_virus.rrd for the rrd files. +Use \fINAME\fR.rrd, \fINAME\fR_virus.rrd and \fINAME\fR_greylist.rrd for the rrd files. .IP "\fB--rbl-is-spam\fR" Count rbl rejects as spam. .IP "\fB--virbl-is-virus\fR" -- cgit v1.2.3 From 027703a92f18fd9cab0e423ab49dd2116b1b53c2 Mon Sep 17 00:00:00 2001 From: Julien Valroff Date: Sun, 13 Mar 2011 18:34:34 +0100 Subject: Add changelog entry for 1.14-1.4squeeze1 uploaded to t-p-u --- debian/changelog | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/debian/changelog b/debian/changelog index 36a9d2c..9f65cc6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -121,6 +121,13 @@ mailgraph (1.14-2) unstable; urgency=low -- Julien Valroff Thu, 11 Feb 2010 20:19:09 +0100 +mailgraph (1.14-1.4squeeze1) testing-proposed-updates; urgency=low + + * Change maintainer field to myself + * Update Finnish Debconf translation (Esko Arajärvi) (Closes: #595609) + + -- Julien Valroff Sat, 23 Oct 2010 14:11:22 +0200 + mailgraph (1.14-1.2) unstable; urgency=low * Non-maintainer upload to fix pending l10n issues. -- cgit v1.2.3 From 278489ce1cf1a1112a82836e32f0312bc156a909 Mon Sep 17 00:00:00 2001 From: Julien Valroff Date: Wed, 23 Mar 2011 06:22:35 +0100 Subject: Remove Norbert from Uploaders --- debian/changelog | 4 +++- debian/control | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 9f65cc6..9a4bf72 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,8 +3,10 @@ mailgraph (1.14-9) unstable; urgency=low * Fix patch to set default location of rrd files (Closes: #617411) * Add patch to create greylisting RRD and graph (supports postgrey and grossd) + * Remove Norbert from Uploaders, thanks to him for his work on this + package - -- Julien Valroff Sun, 13 Mar 2011 08:33:07 +0100 + -- Julien Valroff Wed, 23 Mar 2011 06:21:20 +0100 mailgraph (1.14-8) unstable; urgency=low diff --git a/debian/control b/debian/control index 2d221e7..61c40ac 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,6 @@ Source: mailgraph Section: admin Priority: extra Maintainer: Julien Valroff -Uploaders: Norbert Tretkowski Build-Depends: debhelper (>= 8), po-debconf Standards-Version: 3.9.1 Homepage: http://mailgraph.schweikert.ch -- cgit v1.2.3 From bd526061229884f1cd553c87a79c1f56a9d18528 Mon Sep 17 00:00:00 2001 From: Julien Valroff Date: Wed, 23 Mar 2011 06:28:42 +0100 Subject: Rephrase NEWS.Debian --- debian/NEWS.Debian | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/NEWS.Debian b/debian/NEWS.Debian index 9a7bcc7..a1356b6 100644 --- a/debian/NEWS.Debian +++ b/debian/NEWS.Debian @@ -2,7 +2,7 @@ mailgraph (1.14-9) unstable; urgency=low * mailgraph now allows the creation of both RRD and graph for greylisting, supporting postgrey and grossd (contributions to support more greylisting - servers are welcome). + applications are welcome). If you used the --only-mail-rrd and/or --only-virus-rrd options, please make sure you update your configuration for the following new options: --no-mail-rrd Do not update the mail rrd. -- cgit v1.2.3 From d5e799050fde6c02d8439fc1fa5b165ca701e27b Mon Sep 17 00:00:00 2001 From: Julien Valroff Date: Sat, 26 Mar 2011 07:01:08 +0100 Subject: Update DEP-5 url to the latest revision --- debian/changelog | 3 ++- debian/copyright | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index 9a4bf72..566856e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,8 +5,9 @@ mailgraph (1.14-9) unstable; urgency=low grossd) * Remove Norbert from Uploaders, thanks to him for his work on this package + * Update DEP-5 url to the latest revision - -- Julien Valroff Wed, 23 Mar 2011 06:21:20 +0100 + -- Julien Valroff Sat, 26 Mar 2011 07:00:39 +0100 mailgraph (1.14-8) unstable; urgency=low diff --git a/debian/copyright b/debian/copyright index 9c4f680..c7de0ab 100644 --- a/debian/copyright +++ b/debian/copyright @@ -1,4 +1,4 @@ -Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=166 +Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=173 Upstream-Name: mailgraph Upstream-Contact: David Schweikert Source: http://mailgraph.schweikert.ch/pub/ @@ -17,7 +17,7 @@ License: GPL-2 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation version - 2 of the License + 2 of the License. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied -- cgit v1.2.3 From 7dd4f231f394157a6ebd1504808e86dc335f6841 Mon Sep 17 00:00:00 2001 From: Julien Valroff Date: Sat, 9 Apr 2011 07:55:18 +0200 Subject: New policy 3.9.2 --- debian/changelog | 3 ++- debian/control | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 566856e..baec94d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -6,8 +6,9 @@ mailgraph (1.14-9) unstable; urgency=low * Remove Norbert from Uploaders, thanks to him for his work on this package * Update DEP-5 url to the latest revision + * Update to new policy 3.9.2 (no changes needed) - -- Julien Valroff Sat, 26 Mar 2011 07:00:39 +0100 + -- Julien Valroff Sat, 09 Apr 2011 07:55:10 +0200 mailgraph (1.14-8) unstable; urgency=low diff --git a/debian/control b/debian/control index 61c40ac..3c1ec10 100644 --- a/debian/control +++ b/debian/control @@ -3,7 +3,7 @@ Section: admin Priority: extra Maintainer: Julien Valroff Build-Depends: debhelper (>= 8), po-debconf -Standards-Version: 3.9.1 +Standards-Version: 3.9.2 Homepage: http://mailgraph.schweikert.ch Package: mailgraph -- cgit v1.2.3