This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

superconfig / 2configs / exim-smarthost.nix
1.8 kB 65 lines
1{ self, config, lib, pkgs, ... }: let 2 3 to = lib.concatStringsSep "," [ 4 "lass@green.r" 5 ]; 6 7 mails = import "${config.krebs.secret.directory}/mails.nix"; # todo make this pure somehow 8 9in { 10 imports = [ 11 self.inputs.stockholm.nixosModules.exim-smarthost 12 ]; 13 environment.systemPackages = [ pkgs.review-mail-queue ]; 14 15 krebs.exim-smarthost = { 16 enable = true; 17 dkim = [ 18 { domain = "lassul.us"; } 19 ]; 20 ssl_cert = "/var/lib/acme/mail.lassul.us/fullchain.pem"; 21 ssl_key = "/var/lib/acme/mail.lassul.us/key.pem"; 22 primary_hostname = "lassul.us"; 23 sender_domains = [ 24 "lassul.us" 25 ]; 26 relay_from_hosts = map (host: host.nets.retiolum.ip6.addr) [ 27 config.krebs.hosts.aergia 28 config.krebs.hosts.blue 29 config.krebs.hosts.coaxmetal 30 config.krebs.hosts.green 31 config.krebs.hosts.mors 32 config.krebs.hosts.xerxes 33 ]; 34 internet-aliases = map (from: { inherit from to; }) mails ++ [ 35 ]; 36 system-aliases = [ 37 { from = "mailer-daemon"; to = "postmaster"; } 38 { from = "postmaster"; to = "root"; } 39 { from = "nobody"; to = "root"; } 40 { from = "hostmaster"; to = "root"; } 41 { from = "usenet"; to = "root"; } 42 { from = "news"; to = "root"; } 43 { from = "webmaster"; to = "root"; } 44 { from = "www"; to = "root"; } 45 { from = "ftp"; to = "root"; } 46 { from = "abuse"; to = "root"; } 47 { from = "noc"; to = "root"; } 48 { from = "security"; to = "root"; } 49 { from = "root"; to = "lass"; } 50 ]; 51 }; 52 krebs.iptables.tables.filter.INPUT.rules = [ 53 { predicate = "-p tcp --dport smtp"; target = "ACCEPT"; } 54 ]; 55 56 security.acme.certs."mail.lassul.us" = { 57 group = "lasscert"; 58 webroot = "/var/lib/acme/acme-challenge"; 59 }; 60 users.groups.lasscert.members = [ 61 "dovecot2" 62 "exim" 63 "nginx" 64 ]; 65}