Need to make aliases for the full address

This commit is contained in:
niten 2023-10-13 18:35:00 -07:00
parent be3234dda4
commit 44b9a32259
1 changed files with 5 additions and 3 deletions

View File

@ -325,9 +325,11 @@ in {
userAliasMaps = concatMapAttrsToList (username: userAliases: userAliasMaps = concatMapAttrsToList (username: userAliases:
map (alias: "/^${escapeDot alias}$/ ${username}") userAliases) map (alias: "/^${escapeDot alias}$/ ${username}") userAliases)
cfg.aliases.user-aliases; cfg.aliases.user-aliases;
aliasUserMaps = mapAttrsToList (alias: users: aliasUserMaps = concatMapAttrsToList (alias: users:
"/^${escapeDot alias}$/ ${concatStringsSep "," users}") (map (domain:
cfg.aliases.alias-users; "/^${escapeDot alias}@${escapeDot domain}$/ ${
concatStringsSep "," users
}") allDomains)) cfg.aliases.alias-users;
in writeEntries "sender_login_maps" in writeEntries "sender_login_maps"
(defaultMaps ++ userAliasMaps ++ aliasUserMaps); (defaultMaps ++ userAliasMaps ++ aliasUserMaps);
}; };