summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2020-03-28 16:00:38 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2020-03-28 16:00:38 +0100
commitec2fc2d4fb9b1daf7ea6e951ddc981cf330007a8 (patch)
tree4593c0fa4ad7252d884bc473d68794066734a45a
parentecf90b8e495d7d5643cc9234efe86b36a9dc9efa (diff)
downloadnixos-ec2fc2d4fb9b1daf7ea6e951ddc981cf330007a8.tar
nixos-ec2fc2d4fb9b1daf7ea6e951ddc981cf330007a8.tar.gz
nixos-ec2fc2d4fb9b1daf7ea6e951ddc981cf330007a8.tar.bz2
nixos-ec2fc2d4fb9b1daf7ea6e951ddc981cf330007a8.tar.xz
nixos-ec2fc2d4fb9b1daf7ea6e951ddc981cf330007a8.zip
...
-rw-r--r--odin.nix68
1 files changed, 0 insertions, 68 deletions
diff --git a/odin.nix b/odin.nix
index cb21ea19..ceacbcc6 100644
--- a/odin.nix
+++ b/odin.nix
@@ -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.";