Skip to content

postfix: add catch-all mapping to vaccounts file.

Bill requested to merge wathiede/nixos-mailserver:catch-all-send into master

This allows catch-all users to send email as anyone from the domain.

This is one possible fix to #207 (closed)

Note, the comment for vaccounts_file in postfix.nix says:

  # for details on how this file looks. By using the same file as valiases,
  # every alias is owned (uniquely) by its user.

And my change is making it true that valiases and vaccounts are the same contents, but not the same file. I'm also making the contents the same by duplicating logic. Should the contents be set once in the let, and valiases_file and vaccounts_file use the same variable for their contents so they stay in sync?

Merge request reports