diff options
author | Ben Sima <ben@bsima.me> | 2019-05-13 17:37:27 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2019-05-13 17:37:27 -0700 |
commit | bd4e4dfefd73ed578be8bdac3b1fda6f21482979 (patch) | |
tree | 1a3e59d184aa5d2a1b0f8f905878cea8ede36fab /depo/nutin-madaj/mail.nix | |
parent | 45f72cbf8ac58a8dd528c656482356c0933ed61f (diff) |
refactor nutin-madaj nix code
Diffstat (limited to 'depo/nutin-madaj/mail.nix')
-rw-r--r-- | depo/nutin-madaj/mail.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/depo/nutin-madaj/mail.nix b/depo/nutin-madaj/mail.nix new file mode 100644 index 0000000..96ad506 --- /dev/null +++ b/depo/nutin-madaj/mail.nix @@ -0,0 +1,40 @@ +{ ... }: + +{ + 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"; + }; + }; + }; +} |