diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2019-02-10 19:42:38 +0100 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2019-02-10 19:42:38 +0100 |
| commit | 628e4149dc3465c909564bc4a1fd861cf6de9e99 (patch) | |
| tree | 7877d1465d23f6a616bfd411b4f63d6fa5baf0d1 | |
| parent | ee59ed6d96f7647668a5a569f8d1553c395decec (diff) | |
| download | nixos-628e4149dc3465c909564bc4a1fd861cf6de9e99.tar nixos-628e4149dc3465c909564bc4a1fd861cf6de9e99.tar.gz nixos-628e4149dc3465c909564bc4a1fd861cf6de9e99.tar.bz2 nixos-628e4149dc3465c909564bc4a1fd861cf6de9e99.tar.xz nixos-628e4149dc3465c909564bc4a1fd861cf6de9e99.zip | |
...
| -rw-r--r-- | ymir.nix | 30 |
1 files changed, 17 insertions, 13 deletions
| @@ -604,6 +604,16 @@ in rec { | |||
| 604 | sender_canonical_classes = "envelope_sender"; | 604 | sender_canonical_classes = "envelope_sender"; |
| 605 | recipient_canonical_maps = "tcp:localhost:10002"; | 605 | recipient_canonical_maps = "tcp:localhost:10002"; |
| 606 | recipient_canonical_classes = ["envelope_recipient" "header_recipient"]; | 606 | recipient_canonical_classes = ["envelope_recipient" "header_recipient"]; |
| 607 | |||
| 608 | smtpd_discard_ehlo_keyword_address_maps = "cidr:${pkgs.writeText "esmtp_access" '' | ||
| 609 | # Allow DSN requests from local subnet only | ||
| 610 | 192.168.0.0/16 silent-discard | ||
| 611 | 172.16.0.0/12 silent-discard | ||
| 612 | 10.0.0.0/8 silent-discard | ||
| 613 | 0.0.0.0/0 silent-discard, dsn | ||
| 614 | fd00::/8 silent-discard | ||
| 615 | ::/0 silent-discard, dsn | ||
| 616 | ''}"; | ||
| 607 | }; | 617 | }; |
| 608 | masterConfig = { | 618 | masterConfig = { |
| 609 | uucp = { | 619 | uucp = { |
| @@ -683,18 +693,6 @@ in rec { | |||
| 683 | ''; | 693 | ''; |
| 684 | }; | 694 | }; |
| 685 | 695 | ||
| 686 | services.postgrey = { | ||
| 687 | enable = false; | ||
| 688 | socket = { | ||
| 689 | path = "/var/lib/postfix/queue/private/policy-greylist"; | ||
| 690 | mode = "0777"; | ||
| 691 | }; | ||
| 692 | delay = 60; | ||
| 693 | autoWhitelist = 1; | ||
| 694 | maxAge = 7; | ||
| 695 | retryWindow = 1; | ||
| 696 | }; | ||
| 697 | |||
| 698 | services.dovecot2 = { | 696 | services.dovecot2 = { |
| 699 | enable = true; | 697 | enable = true; |
| 700 | enableImap = true; | 698 | enableImap = true; |
| @@ -1092,8 +1090,14 @@ in rec { | |||
| 1092 | }; | 1090 | }; |
| 1093 | locals = { | 1091 | locals = { |
| 1094 | "milter_headers.conf".text = '' | 1092 | "milter_headers.conf".text = '' |
| 1095 | extended_spam_headers = true; | 1093 | use = ["authentication-results", "x-spamd-bar", "x-stat-signature"]; |
| 1094 | ''; | ||
| 1095 | "actions.conf".text = '' | ||
| 1096 | reject = 150; | ||
| 1097 | add_header = 6; | ||
| 1098 | greylist = 4; | ||
| 1096 | ''; | 1099 | ''; |
| 1097 | }; | 1100 | }; |
| 1098 | }; | 1101 | }; |
| 1102 | |||
| 1099 | } | 1103 | } |
