Add /var/lib/dovecot to mailstate persistence#890
Add /var/lib/dovecot to mailstate persistence#890johansmitsnl merged 1 commit intodocker-mailserver:masterfrom
Conversation
Added `/var/lib/dovecot/` to the list of folders that get persisted in `mailstate`. So the creation of `ssl-parameters.dat` has not to be done every restart again. This may only take some dozen seconds, but can be very long on systems with high load.
|
Closes #887 |
|
objection, maybe it is wise to generate the SSL/TLS - params from scratch once in a while. |
|
@mwlczk dovecot does regeneration by default:
|
|
No, automatic generation is disabled in the configuration already by setting ssl_parameters_regenerate = 0 (try: Also even the dovecot developer think nowadays, that the regeneration wasn't a very good idea: "Dovecot v2.1.x and older regenerated them every week by default, but because the extra security gained by the regeneration is quite small, Dovecot v2.2 disabled the regeneration feature completely." (see: https://wiki.dovecot.org/SSL/DovecotConfiguration under SSL security settings). I'm pro security, but only if it is useful. And, only because the |
|
But after what amount of time would you suggest to regenerate the ssl parameters? |
|
Actually I do not know. And it seems like the dovecot developers do not recommend to do so anymore (otherwise they wouldn't "disabled the regeneration feature completely" as they write in the wiki). As always it will depend on your needed level of security, if you feel like all secret services of the world are trying to hack your mail server, you should probably regenerate them quite often (and use more than the standard 2048 length). But than there are much more important things to make secure before dovecots SSL encryption. BUT again as a disclaimer, I am no security expert and I do not run a high value site. The things above are only my thought! You have to decide how big your need for security is by yourself (but than also question yourself if downloading a ready solution from github without a complete code review is a clever thing to do 😉). |
|
In my opinion we should not automatically regenerate the ssl parameters by default. I believe the dovecot team does not just drop a security feature when it has some enhancement. So we could just provide a wikipage for the more security-concerned people. Or when someone wants to create an enviromental variable to enable automatical regeneration if needed. |
Added
/var/lib/dovecot/to the list of folders that get persisted inmailstate. So the creation ofssl-parameters.dathas not to be done every restart again. This may only take some dozen seconds, but can be very long on systems with high load.