Need to make aliases for the full address
This commit is contained in:
parent
be3234dda4
commit
44b9a32259
|
@ -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);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue