FilesSubmittedBranchesLabelsClientsUsersJobsHelp
Tree viewShow/hide recent activityInformation
Change 77

Change 77 by nullbyte@nullbyte-gentoo on 2004/06/30 21:15:44

greylistd 0.3: syslog, prereqs, docs. running on ttul for 4 months, zero complaints (except from spammers, presumably)
Affected files ...
//depot/projects/greylistd/lib/Mail/Greylist.pm#4 editktext
//depot/projects/greylistd/bin/greylistd#3 editxtext
//depot/projects/greylistd/Makefile.PL#2 edittext
//depot/projects/greylistd/README#2 edittext
//depot/projects/greylistd/Changes#3 edittext
Differences ...

==== //depot/projects/greylistd/lib/Mail/Greylist.pm#4 (ktext) ====

@@ -11,7 +11,7 @@
1111use DB_File;
1212use Fcntl;
1313
14our $VERSION = '0.2';
14our $VERSION = '0.3';
1515
1616my $DELAY = 300; # seconds a new triplet must wait
1717my $LIFETIME = 36 * 86400; # forget triplets after this long

==== //depot/projects/greylistd/bin/greylistd#3 (xtext) ====

@@ -10,11 +10,13 @@
1010use lib '/usr/local/lib/greylistd';
1111use Mail::Greylist;
1212use Getopt::Std;
13use Sys::Syslog qw(:standard);
1314
1415my %opt;
1516getopts('d:f:', \%opt) or die "usage: greylistd [-d delay] [-f dbfile]\n";
1617
1718$| = 1;
19openlog('greylistd', 'pid', 'mail');
1820my $gl = Mail::Greylist->new(delay => $opt{d}, dbfile => $opt{f});
1921my %req;
2022
@@ -22,6 +24,8 @@
2224 chomp $line;
2325 if ($line eq '') {
2426 my $action = $gl->check(%req);
27 syslog('info', '%s from=<%s> to=<%s>: %s', $req{client_address} || '?',
28 $req{sender} || '', $req{recipient} || '', $action);
2529 print "action=$action\n\n";
2630 %req = ();
2731 next;

==== //depot/projects/greylistd/Makefile.PL#2 (text) ====

@@ -6,7 +6,9 @@
66 VERSION_FROM => 'lib/Mail/Greylist.pm',
77 EXE_FILES => [ 'bin/greylistd' ],
88 PREREQ_PM => {
9 'DB_File' => 0,
9 'DB_File' => 0,
10 'Sys::Syslog' => 0,
11 'Test::More' => 0,
1012 },
1113 ABSTRACT => 'SMTP greylisting policy daemon for Postfix',
1214 AUTHOR => 'nullbyte <nullbyte@ttul.org>',

==== //depot/projects/greylistd/README#2 (text) ====

@@ -30,6 +30,13 @@
3030
3131Reload postfix and watch the maillog.
3232
33OPTIONS
34
35 -d SECS how long a new triplet must wait (default 300)
36 -f FILE triplet database (default /var/lib/greylistd/triplets.db)
37
38Every decision is logged to syslog, facility mail.
39
3340BUGS
3441
3542Probably. Mail nullbyte@ttul.org, or file a job in p4.

==== //depot/projects/greylistd/Changes#3 (text) ====

@@ -1,5 +1,10 @@
11Revision history for Mail::Greylist
22
30.3 Wed Jun 30 2004
4 - log every decision via syslog
5 - Makefile.PL lists all prereqs
6 - README: options
7
380.2 Sun Apr 11 2004
49 - key triplets on the client /24, not the full IP (job000004).
510 hotmail's outbound farm was never getting through.

P4Web/LINUX26X86/2005.1/82295 · Copyright © 1995-2005 Perforce Software · ttul.org