mirror of
https://gitlab.com/simple-nixos-mailserver/nixos-mailserver.git
synced 2024-12-27 23:46:43 +01:00
e9dea6cdb4
The dh.pem file is currently created by the postfix prestart script. If the entropy of the system is to low, the postfix prestart can timeout. In this case, an empty file is created. If the user restarts the postfix service, the dh.pem is not created because the file already exists (but is empty). When a ssl is established with dovecot, it fails with this message: imap-login: `Error:Failed to initialize SSL server context: Couldn't parse DH parameters: error:0906D06C:PEM routines:PEM_read_bio:no start line: Expecting: DH PARAMETERS` With this patch, the postfix service creates the dh.pem if the dh.pem doesn't exist or if it is empty. It doesn't fix the entropy or timeout issue but at least, the user knows something is failing:/ |
||
---|---|---|
.. | ||
borgbackup.nix | ||
clamav.nix | ||
common.nix | ||
dovecot-version.nix | ||
dovecot.nix | ||
environment.nix | ||
kresd.nix | ||
monit.nix | ||
networking.nix | ||
nginx.nix | ||
postfix.nix | ||
rmilter.nix | ||
rsnapshot.nix | ||
services.nix | ||
systemd.nix | ||
users.nix |