|
|
@@ -1,28 +1,27 @@ |
|
|
--- a/sqlgrey 2012-08-24 18:05:39.000000000 -0700 |
|
|
+++ b/sqlgrey 2012-08-24 18:07:09.000000000 -0700 |
|
|
--- a/sqlgrey 2012-02-13 08:54:08.000000000 -0800 |
|
|
+++ b/sqlgrey 2019-04-23 18:04:12.000000000 -0700 |
|
|
@@ -1,4 +1,4 @@ |
|
|
-#!/usr/bin/perl -w |
|
|
+#!@PREFIX@/bin/perl -w |
|
|
+#!@PERL_BIN@ -w |
|
|
|
|
|
# sqlgrey: a postfix greylisting policy server using an SQL backend |
|
|
# based on postgrey |
|
|
@@ -56,11 +56,11 @@ |
|
|
@@ -57,10 +57,10 @@ |
|
|
# defaults |
|
|
my %dflt; |
|
|
$dflt{loglevel} = 2; # used for $dflt{log} entries in read_conffile() |
|
|
-$dflt{user} = 'sqlgrey'; |
|
|
-$dflt{group} = 'sqlgrey'; |
|
|
+$dflt{user} = '@SQLGREYUSER@'; |
|
|
+$dflt{group} = '@SQLGREYGROUP@'; |
|
|
$dflt{inet} = '2501'; |
|
|
-$dflt{pidfile} = '/var/run/sqlgrey.pid'; |
|
|
-$dflt{conf_dir} = '/etc/sqlgrey'; |
|
|
+$dflt{user} = '@SQLGREYUSER@'; |
|
|
+$dflt{group} = '@SQLGREYGROUP@'; |
|
|
+$dflt{pidfile} = '@PREFIX@/var/run/@NAME@/sqlgrey.pid'; |
|
|
+$dflt{conf_dir} = '@PREFIX@/etc/sqlgrey'; |
|
|
$dflt{reconnect_delay} = 5; # 5 minutes |
|
|
$dflt{max_connect_age} = 24; # 24 hours |
|
|
$dflt{awl_age} = 60; # 60 days |
|
|
@@ -103,7 +103,7 @@ |
|
|
@@ -104,7 +104,7 @@ |
|
|
}; |
|
|
|
|
|
# Default configuration file |
|
|
@@ -31,7 +30,7 @@ |
|
|
|
|
|
# whitelist files |
|
|
my $stat_ip_whitelist_file = $dflt{conf_dir} . '/clients_ip_whitelist'; |
|
|
@@ -2703,7 +2703,7 @@ |
|
|
@@ -2739,7 +2739,7 @@ |
|
|
close(STDERR); |
|
|
# Ugly hack to prevent perl from complaining |
|
|
# 'warning: Filehandle STDERR reopened as FILE only \ |
|
|
@@ -40,7 +39,7 @@ |
|
|
open(STDIN,'</dev/null'); |
|
|
open(STDOUT,'>/dev/null'); |
|
|
open(STDERR,'>/dev/null'); |
|
|
@@ -2787,15 +2787,15 @@ |
|
|
@@ -2825,15 +2825,15 @@ |
|
|
-k, --kill kill a running sqlgrey |
|
|
(identified by 'pidfile' content) |
|
|
-f, --configfile=FILE read config from FILE |
|
|
@@ -59,7 +58,7 @@ |
|
|
|
|
|
=head1 DESCRIPTION |
|
|
|
|
|
@@ -2903,7 +2903,7 @@ |
|
|
@@ -2941,7 +2941,7 @@ |
|
|
=item * |
|
|
|
|
|
Start by adding check_policy_service after reject_unauth_destination in |
|
|
@@ -68,7 +67,7 @@ |
|
|
|
|
|
smtpd_recipient_restrictions = |
|
|
... |
|
|
@@ -2927,7 +2927,7 @@ |
|
|
@@ -2965,7 +2965,7 @@ |
|
|
If you want to disable greylisting for some users you can configure |
|
|
Postfix like this: |
|
|
|
|
|
@@ -77,7 +76,7 @@ |
|
|
i_like_spam@ee.ethz.ch OK |
|
|
|
|
|
Then you'll add a check_recipient_access in main.cf before the |
|
|
@@ -2935,8 +2935,8 @@ |
|
|
@@ -2973,8 +2973,8 @@ |
|
|
smtpd_recipient_restrictions = |
|
|
... |
|
|
reject_unauth_destination |
|
|
|