From a3f4e289e17fe8ea046c967f672cf003d1f7308d Mon Sep 17 00:00:00 2001 From: tenksom Date: Wed, 1 Mar 2023 18:44:56 +0100 Subject: [PATCH] The born of sogo --- modules/sogo.nix | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 modules/sogo.nix diff --git a/modules/sogo.nix b/modules/sogo.nix new file mode 100644 index 0000000..91b2797 --- /dev/null +++ b/modules/sogo.nix @@ -0,0 +1,31 @@ +{config, pkgs, ... }: +let + hostname = "webmail.${config.fsr.domain}"; + domain = config.fsr.domain; + +in +{ + services = { + sogo = { + enable = true; + language = "German"; + extraConfig = " + WOWorkersCount = 10; + SOGoUserSources = ({ + type = ldap; + CNFieldName = cn; + UIDFieldName = uid; + baseDN = "ou = users, dc=ifsr, dc=de"; + bindDN = "uid=search, ou=users, dc=ifsr, dc=de"; + bindPassword = qwertz; + hostname = "ldap://localhost"; + }); + + "; + } + postgresql = { + enable = true; + } + + } +