Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: postfix service doesn't notice changes to mailing list memberships #505

Closed
jfly opened this issue Nov 5, 2024 · 0 comments · Fixed by #506
Closed

bug: postfix service doesn't notice changes to mailing list memberships #505

jfly opened this issue Nov 5, 2024 · 0 comments · Fixed by #506
Assignees

Comments

@jfly
Copy link
Contributor

jfly commented Nov 5, 2024

Relates to #485.

#495 adds simple-nixos-mailserver to umbriel, but it has a bug: when you change mailing list memberships, postfix doesn't notice the change.

postfix doesn't actually need to get reloaded to observe this change, but we do need to re-run postmap to generate updated db map files. This happens in the postfix-setup service.

This doesn't play nicely with how we're using a sops-nix template to generate the map file, because the path never changes, which means the postfix-setup service never re-runs.

I discussed this with @Mic92, and fixing this requires a change to sops-nix. We have two ideas:

  1. Feature request: "input addressed secret paths" Mic92/sops-nix#648 would help here, but is currently blocked by nix getting support for parsing yaml
  2. Feature request: support restartUnits and reloadUnits for templates Mic92/sops-nix#634

I'm going to work on 2) now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant