diff --git a/postfix.nix b/postfix.nix index f318c36..f92300a 100644 --- a/postfix.nix +++ b/postfix.nix @@ -334,8 +334,9 @@ in { userList = users: concatStringsSep "," (map (mkEmail cfg.domain) users); in concatMapAttrsToList (alias: users: - concatMap - (domain: "${mkEmail domain alias} ${mkAliasUsers users}")); + let userEmails = concatStringsSep "," users; + in concatMap (domain: "${mkEmail domain alias} ${userEmails}") + domains); in concatStringsSep "\n" ((mkUserAliases cfg.aliases.user-aliases) ++ (mkAliasUsers allDomains cfg.aliases.alias-users));