summaryrefslogtreecommitdiff
path: root/ymir.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2020-12-19 14:23:49 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2020-12-19 14:23:49 +0100
commitba4f3d8b1e70d06857860e8289cd97594ae7a39d (patch)
treed69f9065f7932e53f09b56d9d907c47c137c30bb /ymir.nix
parent60199ffefe6c952292fddb4528da8d611a96cc31 (diff)
downloadnixos-ba4f3d8b1e70d06857860e8289cd97594ae7a39d.tar
nixos-ba4f3d8b1e70d06857860e8289cd97594ae7a39d.tar.gz
nixos-ba4f3d8b1e70d06857860e8289cd97594ae7a39d.tar.bz2
nixos-ba4f3d8b1e70d06857860e8289cd97594ae7a39d.tar.xz
nixos-ba4f3d8b1e70d06857860e8289cd97594ae7a39d.zip
postfix spam services
Diffstat (limited to 'ymir.nix')
-rw-r--r--ymir.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/ymir.nix b/ymir.nix
index 5b008721..aeb27b72 100644
--- a/ymir.nix
+++ b/ymir.nix
@@ -525,8 +525,8 @@ in rec {
525 authorized_verp_clients = "$mynetworks"; 525 authorized_verp_clients = "$mynetworks";
526 526
527 milter_default_action = "accept"; 527 milter_default_action = "accept";
528 smtpd_milters = ["local:private/dkim" "local:private/rspamd"]; 528 smtpd_milters = ["local:/run/opendkim/opendkim.sock" "local:/run/rspamd/rspamd-milter.sock"];
529 non_smtpd_milters = ["local:private/dkim" "local:private/rspamd"]; 529 non_smtpd_milters = ["local:/run/opendkim/opendkim.sock" "local:/run/rspamd/rspamd-milter.sock"];
530 530
531 alias_maps = ''texthash:${pkgs.writeText "aliases" '' 531 alias_maps = ''texthash:${pkgs.writeText "aliases" ''
532 postmaster gkleen 532 postmaster gkleen
@@ -632,7 +632,7 @@ in rec {
632 services.opendkim = { 632 services.opendkim = {
633 enable = true; 633 enable = true;
634 user = "postfix"; group = "postfix"; 634 user = "postfix"; group = "postfix";
635 socket = "local:/var/lib/postfix/queue/private/dkim"; 635 socket = "local:/run/opendkim/opendkim.sock";
636 domains = ''csl:${concatStringsSep "," myDomains}''; 636 domains = ''csl:${concatStringsSep "," myDomains}'';
637 keyPath = "/var/lib/dkim/"; 637 keyPath = "/var/lib/dkim/";
638 selector = "ymir"; 638 selector = "ymir";
@@ -1034,7 +1034,7 @@ in rec {
1034 type = "rspamd_proxy"; 1034 type = "rspamd_proxy";
1035 bindSockets = [ 1035 bindSockets = [
1036 { mode = "0660"; 1036 { mode = "0660";
1037 socket = "/var/lib/postfix/queue/private/rspamd"; 1037 socket = "/run/rspamd/rspamd-milter.sock";
1038 owner = config.services.rspamd.user; 1038 owner = config.services.rspamd.user;
1039 group = config.services.postfix.group; 1039 group = config.services.postfix.group;
1040 } 1040 }