diff options
-rw-r--r-- | odin.nix | 68 |
1 files changed, 0 insertions, 68 deletions
@@ -201,74 +201,6 @@ | |||
201 | networks = ["127.0.0.0/8" "[::ffff:127.0.0.0]/104" "[::1]/128" "10.141.0.0/16"]; | 201 | networks = ["127.0.0.0/8" "[::ffff:127.0.0.0]/104" "[::1]/128" "10.141.0.0/16"]; |
202 | }; | 202 | }; |
203 | 203 | ||
204 | services.rspamd = { | ||
205 | enable = true; | ||
206 | workers = { | ||
207 | controller = {}; | ||
208 | rspamd_proxy = { | ||
209 | bindSockets = [ | ||
210 | { mode = "0660"; | ||
211 | socket = "/var/lib/postfix/queue/private/rspamd"; | ||
212 | owner = config.services.rspamd.user; | ||
213 | group = config.services.postfix.group; | ||
214 | } | ||
215 | ]; | ||
216 | extraConfig = '' | ||
217 | upstream "local" { | ||
218 | default = yes; | ||
219 | self_scan = yes; | ||
220 | } | ||
221 | ''; | ||
222 | }; | ||
223 | }; | ||
224 | locals = { | ||
225 | "milter_headers.conf".text = '' | ||
226 | use = ["authentication-results", "x-spamd-result", "x-rspamd-queue-id", "x-rspamd-server"]; | ||
227 | remove_upstream_spam_flag = false; | ||
228 | ''; | ||
229 | "actions.conf".text = '' | ||
230 | add_header = 10; | ||
231 | ''; | ||
232 | "groups.conf".text = '' | ||
233 | symbols { | ||
234 | "BAYES_SPAM" { | ||
235 | weight = 2.0; | ||
236 | } | ||
237 | } | ||
238 | ''; | ||
239 | "dmarc.conf".text = '' | ||
240 | reporting = true; | ||
241 | domain = "yggdrasil.li"; | ||
242 | email = "postmaster@yggdrasil.li"; | ||
243 | } | ||
244 | ''; | ||
245 | "redis.conf".text = '' | ||
246 | servers = "localhost"; | ||
247 | ''; | ||
248 | "dkim_signing.conf".text = "enabled = false;"; | ||
249 | "neural.conf".text = "enabled = false;"; | ||
250 | "classifier-bayes.conf".text = '' | ||
251 | enable = true; | ||
252 | expire = 8640000; | ||
253 | new_schema = true; | ||
254 | backend = "redis"; | ||
255 | per_user = true; | ||
256 | min_learns = 0; | ||
257 | |||
258 | autolearn = [0, 10]; | ||
259 | |||
260 | statfile { | ||
261 | symbol = "BAYES_HAM"; | ||
262 | spam = false; | ||
263 | } | ||
264 | statfile { | ||
265 | symbol = "BAYES_SPAM"; | ||
266 | spam = true; | ||
267 | } | ||
268 | ''; | ||
269 | }; | ||
270 | }; | ||
271 | |||
272 | services.borgbackup = { | 204 | services.borgbackup = { |
273 | snapshots = "lvm"; | 205 | snapshots = "lvm"; |
274 | prefix = "yggdrasil.asgard.odin."; | 206 | prefix = "yggdrasil.asgard.odin."; |