Remove PAM from mailserver and remove catchall

This commit is contained in:
Inex Code 2021-12-15 17:42:47 +03:00
parent 1c1f353ea2
commit 63aaeec08c

View file

@ -13,11 +13,6 @@ in
}) })
]; ];
services.dovecot2 = {
enablePAM = lib.mkForce true;
showPAMFailure = lib.mkForce true;
};
users.users = { users.users = {
virtualMail = { virtualMail = {
isNormalUser = false; isNormalUser = false;
@ -34,7 +29,6 @@ in
loginAccounts = { loginAccounts = {
"${cfg.username}@${cfg.domain}" = { "${cfg.username}@${cfg.domain}" = {
hashedPassword = cfg.hashedMasterPassword; hashedPassword = cfg.hashedMasterPassword;
catchAll = [ cfg.domain ];
sieveScript = '' sieveScript = ''
require ["fileinto", "mailbox"]; require ["fileinto", "mailbox"];
if header :contains "Chat-Version" "1.0" if header :contains "Chat-Version" "1.0"
@ -49,7 +43,6 @@ in
name = "${user.username}@${cfg.domain}"; name = "${user.username}@${cfg.domain}";
value = { value = {
hashedPassword = user.hashedPassword; hashedPassword = user.hashedPassword;
catchAll = [ cfg.domain ];
sieveScript = '' sieveScript = ''
require ["fileinto", "mailbox"]; require ["fileinto", "mailbox"];
if header :contains "Chat-Version" "1.0" if header :contains "Chat-Version" "1.0"