Try some new settings
This commit is contained in:
parent
915a0f0691
commit
cea54ef0b0
@ -352,7 +352,6 @@ in {
|
|||||||
passdb {
|
passdb {
|
||||||
driver = ldap
|
driver = ldap
|
||||||
args = ${cfg.ldap-conf}
|
args = ${cfg.ldap-conf}
|
||||||
username_format = %n
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# All users map to one actual system user
|
# All users map to one actual system user
|
||||||
@ -361,6 +360,8 @@ in {
|
|||||||
args = uid=${
|
args = uid=${
|
||||||
toString mailUserUid
|
toString mailUserUid
|
||||||
} home=${cfg.state-directory}/mail/%u
|
} home=${cfg.state-directory}/mail/%u
|
||||||
|
user_attrs = =user=%{ldap:cn}
|
||||||
|
user_filter = (&(objectClass=organizationalPerson)(cn=%n))
|
||||||
}
|
}
|
||||||
|
|
||||||
service imap {
|
service imap {
|
||||||
|
@ -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}" = {
|
fudo.secrets.host-secrets."${hostname}" = {
|
||||||
|
Loading…
Reference in New Issue
Block a user