Try some new settings

This commit is contained in:
niten 2023-09-30 12:20:39 -07:00
parent 915a0f0691
commit cea54ef0b0
2 changed files with 2 additions and 37 deletions

View File

@ -352,7 +352,6 @@ in {
passdb {
driver = ldap
args = ${cfg.ldap-conf}
username_format = %n
}
# All users map to one actual system user
@ -361,6 +360,8 @@ in {
args = uid=${
toString mailUserUid
} home=${cfg.state-directory}/mail/%u
user_attrs = =user=%{ldap:cn}
user_filter = (&(objectClass=organizationalPerson)(cn=%n))
}
service imap {

View File

@ -187,42 +187,6 @@ in {
};
};
};
## No...these ports were already open
# xinetd = {
# enable = true;
# services = let
# genService = { name, port, protocols ? [ "tcp" ] }:
# map (protocol: {
# inherit name;
# server = "/usr/bin/env";
# extraConfig = "redirect = 127.0.0.1 ${toString port}";
# }) protocols;
# in concatMap genService [
# {
# name = "imap";
# port = 9143;
# }
# {
# name = "imaps";
# port = 9993;
# }
# {
# name = "smtp";
# port = 9025;
# protocols = [ "tcp" "udp" ];
# }
# {
# name = "submission";
# port = 9587;
# protocols = [ "tcp" "udp" ];
# }
# {
# name = "submissions";
# port = 9465;
# }
# ];
# };
};
fudo.secrets.host-secrets."${hostname}" = {