@cryptotaxi247 / infra / commits / 9c521cf2

Filter out empty mailing lists from `postfix-virtual-mailing-lists`

This addresses the following warning: ```console [root@umbriel:~]# journalctl -u postfix-setup.service ... May 11 08:24:38 umbriel systemd[1]: Starting Setup for Postfix mail server... May 11 08:24:39 umbriel postfix-setup-start[987]: postmap: warning: /var/lib/postfix/conf/virtual-mailing-lists, line 16: expected format: key whitespace value May 11 08:24:39 umbriel postfix/postmap[987]: warning: /var/lib/postfix/conf/virtual-mailing-lists, line 16: expected format: key whitespace value ```

Jeremy Fleischman committed May 21, 2026 at 18:15 UTC 9c521cf2e4b07c71c0e1660b1dfce4b354bb8d9f
1 file changed +3 -3
non-critical-infra/modules/mailserver/mailing-lists-options.nix
+3 -3
@@ -123,9 +123,9 @@ in
123
124 sops.templates."postfix-virtual-mailing-lists" = {
125 content = lib.concatStringsSep "\n" (
126 - lib.mapAttrsToList (
127 - name: members: "${name} ${lib.concatStringsSep ", " members}"
128 - ) listsWithSecretPlaceholders
126 + lib.mapAttrsToList (name: members: "${name} ${lib.concatStringsSep ", " members}") (
127 + lib.filterAttrs (_name: members: builtins.length members > 0) listsWithSecretPlaceholders
128 + )
129 );
130
131 # Need to restart postfix-setup to rerun `postmap` and generate updated `.db`