forked from nkovacne/pcc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpcc.conf
46 lines (43 loc) · 1.93 KB
/
pcc.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
43
44
45
46
[server]
# Interface where the daemon will be running
host = localhost
# Daemon's listening port
port = 9999
[db]
# Connection string using the following syntax:
# dialect[+driver]://username[:password]@host[:port]/database
# More info: http://docs.sqlalchemy.org/en/rel_0_9/core/engines.html
# Examples:
# dbcon = postgresql://scott:tiger@localhost/mydatabase
# dbcon = postgresql+psycopg2://scott:tiger@localhost/mydatabase
# dbcon = mysql://scott:tiger@localhost/foo
# dbcon = mysql+mysqldb://scott:tiger@localhost/foo
# dbcon = oracle://scott:[email protected]:1521/sidname
# dbcon = sqlite:////absolute/path/to/foo.db
[mail]
# Space separated list of domains that handles your mail server, that is,
# any domain that you wish to process for outgoing e-mails
domains = yourdomain1.com yourdomain2.com
# SMTP server hostname whereby send notifications to admins (see notice parameter below)
mailsrv = localhost
# SMTP server port whereby send notifications to admins (see notice parameter below)
mailport = 25
# Space separated list of e-mail addresses of users that should be notified upon user blocks
notice = [email protected]
[policy]
# What to do with blocked e-mails: REJECT or HOLD?
action = HOLD
# Number of different countries (and not listed in ignorecountries) for the same user
# after which they should be blocked
how_many_different_countries = 3
# ... in how many days?
in_how_much_time_in_days = 2
# Space separated list of countries which should not be considered in the accounting
# The countries must be in the 2-letter international standard format (UK, US, ES, ...)
ignorecountries = UK
# Space separated list of senders that won't ever be blocked
whitelisted = [email protected]
# Space separated list of client IPs or CIDR masks to whitelist. No hosts allowed.
whitelistedips = 8.8.8.8/32 9.9.9.9
# Short message to append to the reject/hold message
reason = Your account has been temporarily blocked. Please, contact your administrator