@@ -422,6 +422,13 @@ in
422422 description = "List of administrators of the current host";
423423 };
424424
425+ authentication = mkOption {
426+ type = types.enum [ "internal_plain" "internal_hashed" "cyrus" "anonymous" ];
427+ default = "internal_hashed";
428+ example = "internal_plain";
429+ description = "Authentication mechanism used for logins.";
430+ };
431+
425432 extraConfig = mkOption {
426433 type = types.lines;
427434 default = "";
@@ -477,6 +484,7 @@ in
477484
478485 s2s_secure_domains = ${toLua cfg.s2sSecureDomains}
479486
487+ authentication = ${toLua cfg.authentication}
480488
481489 ${ cfg.extraConfig }
482490