-
Notifications
You must be signed in to change notification settings - Fork 1
/
greylist.conf
executable file
·42 lines (35 loc) · 1.1 KB
/
greylist.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
###################
# conf file
###################
#
our @FROM_WHITELIST = ('[email protected]','[email protected]');
our @FROM_BLACKLIST = ('[email protected]');
our @IP_BLACKLIST = ('255.255.255.255');
our @IP_WHITELIST = ('127.0.0.1');
our $GREYDIR = "/var/spool/greylist";
our $LOGING = 2; # loging level: 0:nothing, 1:basic, 2:verbose, 3:debug
###################
# mail info
###################
#
# QMAIL:
my $m_ip = $ENV{TCPREMOTEIP};
my $m_to = $ENV{RCPTTO};
my $m_from = $ENV{MAILFROM};
###################
# time related variables
####################
#
our $t_block = 5*60; # temporary block expires (5 minutes)
our $t_timeout = 12*60*60; # unused open window expires (12 hours)
our $t_expiry = 61*24*60*60; # valid open window expires (2 months=61days)
our $t_cleanup = 20*60; # cleanup every (20 minutes)
###################
# exit codes
###################
#
# QMAIL:
my $e_accept = 0;
my $e_tempreject = 101;
my $e_reject = 102;
1; # Perl include required return code