mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-17 17:44:44 +00:00
nixos/mailman: ensure Postfix is started after Mailman
On first run, Postfix will refuse to start if it's started before Mailman is up, because it'll try to read the map files generated Mailman the first time it's started, and they won't exist yet. To fix this, make sure Postfix isn't started until after Mailman is up if they're both activated at the same time.
This commit is contained in:
parent
fb2fa1b50f
commit
572131c6a9
@ -313,6 +313,7 @@ in {
|
||||
systemd.services = {
|
||||
mailman = {
|
||||
description = "GNU Mailman Master Process";
|
||||
before = lib.optional cfg.enablePostfix "postfix.service";
|
||||
after = [ "network.target" ]
|
||||
++ lib.optional cfg.enablePostfix "postfix-setup.service";
|
||||
restartTriggers = [ config.environment.etc."mailman.cfg".source ];
|
||||
|
Loading…
Reference in New Issue
Block a user