linde: enable mailing from goatcounter
Alan Pearce alan@alanpearce.eu
Sat, 29 Jun 2024 17:12:36 +0200
1 files changed, 21 insertions(+), 0 deletions(-)
jump to
M system/linde.nix → system/linde.nix
@@ -15,6 +15,7 @@ net-ip6 = "2a01:4f8:c012:23a4::1"; net-rdnsip = "2a01:4f8:c012:23a4::53"; net-mask6 = "64"; net-gw6 = "fe80::1"; + domain = "alanpearce.eu"; ts-domain = "hydra-pinecone.ts.net"; golink = (builtins.getFlake (toString <golink>)).nixosModules.default; in @@ -156,6 +157,7 @@ }; networking = { hostName = hostname; + inherit domain; useDHCP = false; dhcpcd.enable = false; nameservers = [ @@ -354,6 +356,7 @@ settings = { tls = "proxy"; websocket = true; automigrate = true; + smtp = "smtp://localhost:25"; }; }; @@ -457,6 +460,24 @@ "HOME=%C/blocklist" ]; }; }; + + services.postfix = + let + localUser = "alan"; + forwardingAddress = "alan@alanpearce.eu"; + in + { + enable = true; + destination = [ ]; + domain = config.networking.domain; + virtual = '' + @${config.networking.hostName}.${config.networking.domain} ${localUser} + ${localUser} ${forwardingAddress} + ''; + config = { + inet_interfaces = "loopback-only"; + }; + }; services.kresd = { enable = true;