diff options
author | Ben Sima <ben@bsima.me> | 2019-02-17 01:49:10 -0800 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2019-02-17 01:50:52 -0800 |
commit | 1f8698468adf3f3328e32e61fa04bf20039c877d (patch) | |
tree | 95e1d48c86c03ba37e3091dbede0902f87a57992 | |
parent | cf5b024e189cb4ed85f80b521cf9e0e5dc5b5070 (diff) |
First cut at mail configuration
Let's see if this one works
-rw-r--r-- | configuration.nix | 37 | ||||
-rw-r--r-- | nixos.nix | 10 |
2 files changed, 47 insertions, 0 deletions
diff --git a/configuration.nix b/configuration.nix index adf90d3..93f8c18 100644 --- a/configuration.nix +++ b/configuration.nix @@ -42,6 +42,43 @@ in }; }; + mailserver = { + enable = true; + monitoring = { + enable = true; + alertAddress = "ben@bsima.me"; + }; + fqdn = "mail.simatime.com"; + domains = [ "simatime.com" ]; + certificateScheme = 3; # let's encrypt + enableImap = true; + enablePop3 = true; + enableImapSsl = true; + enablePop3Ssl = true; + enableManageSieve = true; + virusScanning = false; # ur on ur own + + loginAccounts = { + "ben@simatime.com" = { + hashedPassword = "$6$Xr180W0PqprtaFB0$9S/Ug1Yz11CaWO7UdVJxQLZWfRUE3/rarB0driXkXALugEeQDLIjG2STGQBLU23//JtK3Mz8Kwsvg1/Zo0vD2/"; + aliases = [ + # admin stuff + "postmaster@simatime.com" + "abuse@simatime.com" + ]; + catchAll = [ "simatime.com" ]; + quota = "1G"; + }; + "nick@simatime.com" = { + hashedPassword = "$6$31P/Mg8k8Pezy1e$Fn1tDyssf.1EgxmLYFsQpSq6RP4wbEvP/UlBlXQhyKA9FnmFtJteXsbJM1naa8Kyylo8vZM9zmeoSthHS1slA1"; + aliases = [ + "nicolai@simatime.com" + ]; + quota = "1G"; + }; + }; + }; + boot.cleanTmpDir = true; networking.hostName = "simatime"; networking.firewall.allowPing = true; @@ -9,8 +9,18 @@ import "${nixpkgs}/nixos" { imports = [ ./hardware-configuration.nix ./networking.nix + + # end config ./configuration.nix + + # our modules ./ibb/module.nix + + # third party + (builtins.fetchTarball { + url = "https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/archive/v2.2.0/nixos-mailserver-v2.2.0.tar.gz"; + sha256 = "0gqzgy50hgb5zmdjiffaqp277a68564vflfpjvk1gv6079zahksc"; + }) ]; }; } |