37 lines
1.8 KiB
Plaintext
37 lines
1.8 KiB
Plaintext
Index: postgrey
|
|
--- postgrey.orig
|
|
+++ postgrey
|
|
@@ -24,7 +24,7 @@ use vars qw(@ISA);
|
|
@ISA = qw(Net::Server::Multiplex);
|
|
|
|
my $VERSION = '1.37';
|
|
-my $DEFAULT_DBDIR = '/var/spool/postfix/postgrey';
|
|
+my $DEFAULT_DBDIR = '/var/db/postgrey';
|
|
my $CONFIG_DIR = '/etc/postfix';
|
|
|
|
sub read_clients_whitelists($)
|
|
@@ -598,8 +598,8 @@ sub main()
|
|
port => [ $opt{inet} ? $opt{inet} : $opt{unix}."|unix" ],
|
|
proto => $opt{inet} ? 'tcp' : 'unix',
|
|
socketmode => $opt{socketmode} || '0666',
|
|
- user => $opt{user} || 'postgrey',
|
|
- group => $opt{group} || 'nogroup',
|
|
+ user => $opt{user} || '_postgrey',
|
|
+ group => $opt{group} || '_postgrey',
|
|
dbdir => $opt{dbdir} || $DEFAULT_DBDIR,
|
|
setsid => $opt{daemonize} ? 1 : undef,
|
|
pid_file => $opt{daemonize} ? $opt{pidfile} : undef,
|
|
@@ -810,9 +810,9 @@ B<postgrey> [I<options>...]
|
|
-i, --inet=[HOST:]PORT listen on PORT, localhost if HOST is not specified
|
|
-d, --daemonize run in the background
|
|
--pidfile=PATH put daemon pid into this file
|
|
- --user=USER run as USER (default: postgrey)
|
|
- --group=GROUP run as group GROUP (default: nogroup)
|
|
- --dbdir=PATH put db files in PATH (default: /var/spool/postfix/postgrey)
|
|
+ --user=USER run as USER (default: _postgrey)
|
|
+ --group=GROUP run as group GROUP (default: _postgrey)
|
|
+ --dbdir=PATH put db files in PATH (default: /var/db/postgrey)
|
|
--delay=N greylist for N seconds (default: 300)
|
|
--max-age=N delete entries older than N days since the last time
|
|
that they have been seen (default: 35)
|