blob: 17ada99e16f1120a5cbc5d82e5008842fb662b56 [file] [log] [blame]
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +01001RCPT_MAILCOW_DOMAIN {
2 type = "rcpt";
3 filter = "email:domain";
4 map = "redis://DOMAIN_MAP";
5 symbols_set = ["RCPT_MAILCOW_DOMAIN"];
6}
7
8WHITELISTED_FWD_HOST {
9 type = "ip";
10 map = "redis://WHITELISTED_FWD_HOST";
11 symbols_set = ["WHITELISTED_FWD_HOST"];
12}
13
14BULK_HEADER {
15 type = "content";
16 map = "${LOCAL_CONFDIR}/custom/bulk_header.map";
17 filter = "headers"
18 regexp = true;
19 symbols_set = ["BULK_HEADER"];
20}
21
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +020022CHAT_VERSION_HEADER {
23 type = "header";
24 header = "Chat-Version";
25 map = "${LOCAL_CONFDIR}/custom/chat_versions.map";
26 regexp = true;
27 symbols_set = ["CHAT_VERSION_HEADER"];
28}
29
30BAD_HEADER {
31 type = "content";
32 map = "${LOCAL_CONFDIR}/custom/bad_header.map";
33 filter = "headers"
34 regexp = true;
35 symbols_set = ["BAD_HEADER"];
36}
37
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010038LOCAL_BL_ASN {
39 require_symbols = "!MAILCOW_WHITE";
40 type = "asn";
41 map = "${LOCAL_CONFDIR}/custom/bad_asn.map";
42 score = 5;
43 description = "Sender's ASN is on the local blacklist";
44 symbols_set = ["LOCAL_BL_ASN"];
45}
46
47GLOBAL_SMTP_FROM_WL {
48 type = "from";
49 map = "${LOCAL_CONFDIR}/custom/global_smtp_from_whitelist.map";
50 regexp = true;
51 score = -2050;
52}
53
54GLOBAL_SMTP_FROM_BL {
55 type = "from";
56 map = "${LOCAL_CONFDIR}/custom/global_smtp_from_blacklist.map";
57 regexp = true;
58 score = 2050;
59}
60
61GLOBAL_MIME_FROM_WL {
62 type = "header";
63 header = "from";
64 filter = "email:addr";
65 map = "${LOCAL_CONFDIR}/custom/global_mime_from_whitelist.map";
66 regexp = true;
67 score = -2050;
68}
69
70GLOBAL_MIME_FROM_BL {
71 type = "header";
72 header = "from";
73 filter = "email:addr";
74 map = "${LOCAL_CONFDIR}/custom/global_mime_from_blacklist.map";
75 regexp = true;
76 score = 2050;
77}
78
79GLOBAL_RCPT_WL {
80 type = "rcpt";
81 map = "${LOCAL_CONFDIR}/custom/global_rcpt_whitelist.map";
82 regexp = true;
83 prefilter = true;
84 action = "accept";
85}
86
87GLOBAL_RCPT_BL {
88 type = "rcpt";
89 map = "${LOCAL_CONFDIR}/custom/global_rcpt_blacklist.map";
90 regexp = true;
91 prefilter = true;
92 action = "reject";
93}
94
95SIEVE_HOST {
96 type = "ip";
97 map = "${LOCAL_CONFDIR}/custom/dovecot_trusted.map";
98 symbols_set = ["SIEVE_HOST"];
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010099}
100
101RSPAMD_HOST {
102 type = "ip";
103 map = "${LOCAL_CONFDIR}/custom/rspamd_trusted.map";
104 symbols_set = ["RSPAMD_HOST"];
105}
106
107MAILCOW_DOMAIN_HEADER_FROM {
108 type = "header";
109 header = "from";
110 filter = "email:domain";
111 map = "redis://DOMAIN_MAP";
112}
113
114IP_WHITELIST {
115 type = "ip";
116 map = "${LOCAL_CONFDIR}/custom/ip_wl.map";
117 symbols_set = ["IP_WHITELIST"];
118 score = -2050;
119}
120
121FISHY_TLD {
122 type = "from";
123 filter = "email:domain";
124 map = "${LOCAL_CONFDIR}/custom/fishy_tlds.map";
125 regexp = true;
126 score = 0.1;
127}
128
129BAD_WORDS {
130 type = "content";
131 filter = "text";
132 map = "${LOCAL_CONFDIR}/custom/bad_words.map";
133 regexp = true;
134 score = 0.1;
135}
136
137BAD_WORDS_DE {
138 type = "content";
139 filter = "text";
140 map = "${LOCAL_CONFDIR}/custom/bad_words_de.map";
141 regexp = true;
142 score = 0.1;
143}
144
145BAD_LANG {
146 type = 'selector';
147 selector = 'languages';
148 map = "${LOCAL_CONFDIR}/custom/bad_languages.map";
149 symbols_set = ["LANG_FILTER"];
150 regexp = true;
151 score = 5.0;
152}
153
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +0200154BAZAAR_ABUSE_CH {
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +0100155 type = "selector";
156 selector = "attachments(hex,md5)";
157 map = "https://bazaar.abuse.ch/export/txt/md5/recent/";
158 score = 10.0;
159}
160
161URLHAUS_ABUSE_CH {
162 type = "url";
163 filter = "full";
164 map = "https://urlhaus.abuse.ch/downloads/text_online/";
165 score = 10.0;
166}
167
168SMTP_LIMITED_ACCESS {
169 type = "user";
170 map = "redis://SMTP_LIMITED_ACCESS";
171 symbols_set = ["SMTP_LIMITED_ACCESS"];
172}
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +0200173
174BAD_SUBJECT_00 {
175 type = "header";
176 header = "subject";
177 regexp = true;
178 map = "http://nullnull.org/bad-subject-regex.txt";
179 score = 6.0;
180 symbols_set = ["BAD_SUBJECT_00"];
181}