diff options
Diffstat (limited to 'hosts/surtr/email/default.nix')
-rw-r--r-- | hosts/surtr/email/default.nix | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/hosts/surtr/email/default.nix b/hosts/surtr/email/default.nix index 947aa328..b952070b 100644 --- a/hosts/surtr/email/default.nix +++ b/hosts/surtr/email/default.nix | |||
@@ -21,8 +21,6 @@ let | |||
21 | }; | 21 | }; |
22 | 22 | ||
23 | spmDomains = ["bouncy.email"]; | 23 | spmDomains = ["bouncy.email"]; |
24 | |||
25 | spm = pkgs.callPackage ./spm {}; | ||
26 | in { | 24 | in { |
27 | config = { | 25 | config = { |
28 | nixpkgs.overlays = [ | 26 | nixpkgs.overlays = [ |
@@ -118,7 +116,14 @@ in { | |||
118 | "reject_unverified_recipient" | 116 | "reject_unverified_recipient" |
119 | ]; | 117 | ]; |
120 | unverified_recipient_reject_code = "550"; | 118 | unverified_recipient_reject_code = "550"; |
121 | unverified_recipient_reject_reason = "Recipient address rejected: undeliverable address"; | 119 | unverified_recipient_reject_reason = "Recipient address lookup failed"; |
120 | address_verify_map = "internal:address_verify_map"; | ||
121 | address_verify_positive_expire_time = "1h"; | ||
122 | address_verify_positive_refresh_time = "15m"; | ||
123 | address_verify_negative_expire_time = "15s"; | ||
124 | address_verify_negative_refresh_time = "5s"; | ||
125 | address_verify_cache_cleanup_interval = "5s"; | ||
126 | address_verify_poll_delay = "1s"; | ||
122 | 127 | ||
123 | smtpd_relay_restrictions = [ | 128 | smtpd_relay_restrictions = [ |
124 | "permit_mynetworks" | 129 | "permit_mynetworks" |
@@ -643,7 +648,7 @@ in { | |||
643 | systemd.services.spm = { | 648 | systemd.services.spm = { |
644 | serviceConfig = { | 649 | serviceConfig = { |
645 | Type = "notify"; | 650 | Type = "notify"; |
646 | ExecStart = "${spm}/bin/spm-server"; | 651 | ExecStart = "${pkgs.spm}/bin/spm-server"; |
647 | User = "spm"; | 652 | User = "spm"; |
648 | Group = "spm"; | 653 | Group = "spm"; |
649 | 654 | ||