We have migrated a few servers using this script and it works great, however in some cases the Dovecot daemon complained about the size of the Diffie-Hellman key. Before the update a length of 1024 was valid, but after the update it was no longer valid, so customers were unable to retrieve their emails.
Jul 4 12:16:31 XXX dovecot[1147]: imap-login: Error: Failed to initialize SSL server context: Can't load DH parameters (ssl_dh setting): error:1408518A:SSL routines:ssl3_ctx_ctrl:dh key too small: user=<>, rip=XXX.XXX.XXX.XXX, lip=XXX.XXX.XXX.XXX, session=<002nPWkcaM6wBgw5>
Plesk support suggests a oneliner to fix the problem:
plesk sbin sslmng --service dovecot --strong-dh --dhparams-size=2048
Maybe this could be automated if dovecot is used?
We have migrated a few servers using this script and it works great, however in some cases the Dovecot daemon complained about the size of the Diffie-Hellman key. Before the update a length of 1024 was valid, but after the update it was no longer valid, so customers were unable to retrieve their emails.
Jul 4 12:16:31 XXX dovecot[1147]: imap-login: Error: Failed to initialize SSL server context: Can't load DH parameters (ssl_dh setting): error:1408518A:SSL routines:ssl3_ctx_ctrl:dh key too small: user=<>, rip=XXX.XXX.XXX.XXX, lip=XXX.XXX.XXX.XXX, session=<002nPWkcaM6wBgw5>Plesk support suggests a oneliner to fix the problem:
plesk sbin sslmng --service dovecot --strong-dh --dhparams-size=2048Maybe this could be automated if dovecot is used?