misc_nixos-mailserver/mail-server
Brian Olsen 8a27b941bf Start dovecot before postfix and add target for certificates
It seemed weird to me that preStart on postfix was used to generate
files not needed directly by postfix and for the self-signed
certificate which is also needed by dovecot. nginx.service was also
used as a proxy for when ACME certificate generation was done.

So I have created mailserver-certificates.target for when certificates
are available for other services. For self-signed that means that a
new oneshot service called mailserver-selfsigned-certificate has been
run. And for ACME this means that the target
acme-selfsigned-certificates has been reached (which is when acme has
created the self-signed certificates used before the actual
certificates provided by LetsEncrypt are created). This setup has the
added bonus that if you want to run a service to provide your own
certificates you can set that to run before
mailserver-certificates.target.

DH Parameters are only needed by dovecot so generation of that file has
been moved to the dovecot2 preStart.

And lastly the only remaining reason to for dovecot to start before
postfix was that the auth and lmtp sockets where located in a directory
created by postfix. But since they could just as well be located in
/run/dovecot2 as long as postfix has access to them I have moved them
there.
2018-06-29 21:35:16 +09:30
..
borgbackup.nix fix conditions for enabling services 2018-05-22 23:18:55 +02:00
clamav.nix Merge pull request #128 from Infinisil/fix-enable-conditions 2018-06-09 15:18:46 +02:00
common.nix add vitual mail users 2018-02-18 12:17:32 +01:00
dovecot-version.nix dovecot: read dovecot version into nix variable 2018-02-17 22:24:39 +10:30
dovecot.nix Start dovecot before postfix and add target for certificates 2018-06-29 21:35:16 +09:30
environment.nix remove clamav from packages, fixes #64 2018-02-01 09:14:21 +01:00
kresd.nix fix conditions for enabling services 2018-05-22 23:18:55 +02:00
monit.nix fix conditions for enabling services 2018-05-22 23:18:55 +02:00
networking.nix update copywright 2018-01-29 10:34:27 +01:00
nginx.nix fix conditions for enabling services 2018-05-22 23:18:55 +02:00
post-upgrade-check.nix fix conditions for enabling services 2018-05-22 23:18:55 +02:00
postfix.nix Start dovecot before postfix and add target for certificates 2018-06-29 21:35:16 +09:30
rmilter.nix dkim: set header canonicalization to relaxed 2018-05-04 19:55:25 +02:00
rsnapshot.nix fix conditions for enabling services 2018-05-22 23:18:55 +02:00
services.nix update copywright 2018-01-29 10:34:27 +01:00
systemd.nix Start dovecot before postfix and add target for certificates 2018-06-29 21:35:16 +09:30
users.nix possible fix for #86 2018-02-23 14:51:15 +01:00