nixos-mailserver/mail-server
Antoine Eiche e9dea6cdb4 postfix: also create the dh.pem if it is empty
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:/
2018-05-10 01:04:02 +02:00
..
borgbackup.nix Added basic support for borgbackup 2018-03-04 14:36:42 +00:00
clamav.nix update copywright 2018-01-29 10:34:27 +01: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 Added dovecot option for mail_max_userip_connections defaulting to 100 2018-03-13 10:43:30 +00:00
environment.nix remove clamav from packages, fixes #64 2018-02-01 09:14:21 +01:00
kresd.nix Added kresd as local nameserver so rspamd stops complaining 2018-01-13 01:39:21 +00:00
monit.nix Added monitoring of disk space and more with monit. 2018-02-22 20:33:55 +00:00
networking.nix update copywright 2018-01-29 10:34:27 +01:00
nginx.nix update copywright 2018-01-29 10:34:27 +01:00
postfix.nix Merge branch 'master' of github.com:r-raymond/nixos-mailserver 2018-04-08 15:28:58 +02:00
rmilter.nix dkim: set header canonicalization to relaxed 2018-05-04 19:55:25 +02:00
rsnapshot.nix Added basic rsnapshot backup. 2018-02-22 20:33:27 +00:00
services.nix update copywright 2018-01-29 10:34:27 +01:00
systemd.nix postfix: also create the dh.pem if it is empty 2018-05-10 01:04:02 +02:00
users.nix possible fix for #86 2018-02-23 14:51:15 +01:00