aboutsummaryrefslogtreecommitdiffstats
path: root/test/functional/configs/maps.conf
blob: d90440384f8c1d684c58a6dc31b1e7a8f8392a72 (plain)
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
51
52
53
54
55
56
57
58
options = {
	filters = ["spf", "dkim", "regexp"]
	url_tld = "${TESTDIR}/../lua/unit/test_tld.dat"
	pidfile = "${TMPDIR}/rspamd.pid"
}
logging = {
	type = "file",
	level = "debug"
	filename = "${TMPDIR}/rspamd.log"
}
metric = {
	name = "default",
	actions = {
		reject = 100500,
	}
	unknown_weight = 1
}

worker {
	type = normal
	bind_socket = ${LOCAL_ADDR}:${PORT_NORMAL}
	count = 1
	keypair {
		pubkey = "${KEY_PUB1}";
		privkey = "${KEY_PVT1}";
	}
}
modules {
    path = "${TESTDIR}/../../src/plugins/lua/"
}
multimap {
  DNSBL_MAP {
    type = "dnsbl";
    map = "rspamd.com";
  }
  IP_MAP {
    type = "ip";
    map = "${TESTDIR}/configs/maps/ip.list";
  }
  FROM_MAP {
    type = "from";
    filter = "email:domain";
    map = "${TESTDIR}/configs/maps/domains.list";
  }
  REGEXP_MAP {
    type = "from";
    filter = "email:addr";
    regexp = true;
    map = "${TESTDIR}/configs/maps/regexp.list";
  }
  DEPS_MAP {
    type = "from";
    filter = "email:addr";
    regexp = true;
    map = "${TESTDIR}/configs/maps/regexp.list";
    require_symbols = "R_SPF_ALLOW & DNSBL_MAP & !FROM_MAP";
  }
}