diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2019-02-10 18:51:13 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2019-02-10 18:51:13 +0100 |
commit | 2b958b3bf511db1bf1f951e48c6429f1713bd36e (patch) | |
tree | 73085fc842a7fd2ae76bf331694025636695a17d /ymir.nix | |
parent | d9e7698d23aa4ac39ba25d9b86f542119b81c459 (diff) | |
download | nixos-2b958b3bf511db1bf1f951e48c6429f1713bd36e.tar nixos-2b958b3bf511db1bf1f951e48c6429f1713bd36e.tar.gz nixos-2b958b3bf511db1bf1f951e48c6429f1713bd36e.tar.bz2 nixos-2b958b3bf511db1bf1f951e48c6429f1713bd36e.tar.xz nixos-2b958b3bf511db1bf1f951e48c6429f1713bd36e.zip |
...
Diffstat (limited to 'ymir.nix')
-rw-r--r-- | ymir.nix | 23 |
1 files changed, 20 insertions, 3 deletions
@@ -594,8 +594,8 @@ in rec { | |||
594 | 594 | ||
595 | milter_default_action = "accept"; | 595 | milter_default_action = "accept"; |
596 | milter_protocol = "2"; | 596 | milter_protocol = "2"; |
597 | smtpd_milters = ["local:private/dkim"]; | 597 | smtpd_milters = ["local:private/dkim" "local:private/rspamd"]; |
598 | non_smtpd_milters = ["local:private/dkim"]; | 598 | non_smtpd_milters = ["local:private/dkim" "local:private/rspamd"]; |
599 | 599 | ||
600 | alias_maps = ''texthash:${pkgs.writeText "aliases" '' | 600 | alias_maps = ''texthash:${pkgs.writeText "aliases" '' |
601 | postmaster gkleen | 601 | postmaster gkleen |
@@ -1099,6 +1099,23 @@ in rec { | |||
1099 | 1099 | ||
1100 | services.rspamd = { | 1100 | services.rspamd = { |
1101 | enable = true; | 1101 | enable = true; |
1102 | postfix.enable = true; | 1102 | workers = { |
1103 | controller = {}; | ||
1104 | rspamd_proxy = { | ||
1105 | bindSockets = [ | ||
1106 | { mode = "0660"; | ||
1107 | socket = "/var/lib/postfix/queue/private/rspamd"; | ||
1108 | owner = config.services.rspamd.user; | ||
1109 | group = config.services.postfix.group; | ||
1110 | } | ||
1111 | ]; | ||
1112 | extraConfig = '' | ||
1113 | upstream "local" { | ||
1114 | default = yes; | ||
1115 | self_scan = yes; | ||
1116 | } | ||
1117 | ''; | ||
1118 | }; | ||
1119 | }; | ||
1103 | }; | 1120 | }; |
1104 | } | 1121 | } |