-
Notifications
You must be signed in to change notification settings - Fork 0
/
bad_clients.conf.ext.dist
50 lines (41 loc) · 1.69 KB
/
bad_clients.conf.ext.dist
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
47
48
49
50
[general]
; Directory with lists
list_path=/etc/dovecot/lists
; path to the python script
asn_script_path=/usr/local/bin/client_networks.py
; Comma separated lists fof services to always deny for
disabled_services=pop3
; Cache path can be file
# cachepath=whois_cache.json
; or redis uri redis:host:port
cachepath=redis:127.0.0.1:6379
; Also log/audit request from local ips
log_local=yes
; Additional networks to not block and not log
ignore_networks=192.168.0.0/16,224.0.0.0/4
; Enable MaxMind GeoLite Lookups
enable_maxmind=yes
; What to return if request shall succeed
;
; next (PASSDB_RESULT_NEXT) indicates that this passdb did not authenticate user, next passdb should do it.
; if we are the last passdb the request will fail
; unknown (PASSDB_RESULT_USER_UNKNOWN) prent we don't know the user and leave it up to the current authentication state
; or next passdb
; ok (PASSDB_RESULT_OK) if a previous passwd set "skip_password_check", i.e. it authenticated the user return ok.
; if "passdbs_seen_user_unknown" is set, i.e. none of the previous passdb knew the user we will always return unknown
; as well, to not inadvertently let false request through
result_success=ok
; What to return if the request shall be blocked
;
; disabled (PASSDB_RESULT_USER_DISABLED)
; expired (PASSDB_RESULT_PASS_EXPIRED)
; missmatch (PASSDB_RESULT_PASSWORD_MISMATCH)
result_block=expired
; Process the request even if the user was not previously authenticated
; i.e. if "passdbs_seen_user_unknown" is set
; this might increase load and cachesize if a lot of bruteforce request are happening
; and will probably generate a lot of spam
process_unknown=no
[maxmind]
geo_city=GeoLite2-City.mmdb
geo_asn=GeoLite2-ASN.mmdb