diff options
-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 | } |