-
-
Notifications
You must be signed in to change notification settings - Fork 2k
remove: Diffie-Hellman parameters for Postfix & Dovecot #4562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
This patch removes all custom DH parameters from DMS. The documentation update is NOT included in this patch yet. ref: #4538 Signed-off-by: Georg Lauterbach <[email protected]>
|
TL;DR UPDATE: Dovecot docker-mailserver/target/scripts/helpers/ssl.sh Lines 145 to 146 in 5f4e868
Test failure in The All dropped DHE ciphers were AES-CBC cipher is not an AEAD cipher, so only AEAD ciphers remain after this change. Apart from slight priority order/sort of the cipher suites between All related test failures were occurring at docker-mailserver/test/tests/parallel/set2/tls_cipherlists.bats Lines 132 to 133 in 5f4e868
Since Postfix and Dovecot now diverge, we will need to either:
For option A we would only have the following comparisons differing: docker-mailserver/test/tests/parallel/set2/tls_cipherlists.bats Lines 208 to 210 in 5f4e868
docker-mailserver/test/tests/parallel/set2/tls_cipherlists.bats Lines 216 to 218 in 5f4e868
Which needs to be used in docker-mailserver/test/tests/parallel/set2/tls_cipherlists.bats Lines 132 to 138 in 5f4e868
This could be supported similar to how the port 25 variants are already done, using a suffix as a 2nd option for the lookup key: docker-mailserver/test/tests/parallel/set2/tls_cipherlists.bats Lines 174 to 181 in 5f4e868
Doing so with a suffix like docker-mailserver/test/tests/parallel/set2/tls_cipherlists.bats Lines 212 to 214 in 5f4e868
docker-mailserver/test/tests/parallel/set2/tls_cipherlists.bats Lines 229 to 232 in 5f4e868
UPDATE: I've since found that the timeout 1 openssl s_client -tls1_2 -cipher ECDHE-RSA-AES256-SHA384 -connect mail.example.test:143 -starttls imap -CAfile /tmp/tls/ca-cert.pemThe failure appears to be specific to docker-mailserver/target/scripts/helpers/ssl.sh Lines 145 to 146 in 5f4e868
docker-mailserver/target/dovecot/10-ssl.conf Lines 60 to 61 in 5f4e868
I've been thinking we should disable server preference for some time now (at least with I think we may have seen some bug reports potentially related to this selection order "bug" in the past but the errors reported weren't helpful at identifying that 😓 (the problem of misconfigured server service like Dovecot here also affects negotiation with client preference) Beyond the adjustment to the tests, we still need to consider docs. Which I'll address when I return to this (I'll apply any needed changes at that point too). Spent too much troubleshooting the above today 😝 |
Additional question before: Should we try to somehow update to Debian 13 first and then decide on this, if possible? We are currently seeing the Debian 12 / Dovecot 2.3 behavior - maybe we'd be having double work if we change it now, update, and then have to change it again. |
That's a good point. I don't think much will change though. Given that Postfix will continue to provide DHE cipher suite support via the OpenSSL 3.0 fallback they have (which seems to be Postfix specific), and Dovecot only works by ensuring I think the ability to customize can still be dropped since there shouldn't be a need to keep that, and we can update the docs for anyone that would want that. |
Sounds good 👍🏼
Agreed 👍🏼 I will be tackler some smaller issues that are still to be done before we have a more thorough version of #4536. If you can tackle this PR, I'd be very grateful. |
Yes no worries, I'll take care of it tomorrow if I can spare the time 👍 UPDATE: Will be a bit longer as I need to take some time to recover from an injury 😅 NOTE: Latest push is still WIP. |
- Better document cipher suite support. - Custom DH params revised. - Additional note about impact of disabling DH params and how to exclude DHE cipher suites.
|
Documentation preview for this PR is ready! 🎉 Built with commit: 8461468 |
|
@polarathene I'd like to work on the Debian 13 changes again. If you cannot pick this up, I can give it a try. Just tell me what you'd like to see implemented. |
|
Unfortunately past me didn't leave a checklist when I got interrupted by an injury, so what I intended to tackle on the docs front is unclear (I lost any local work associated to this PR when my system crashed again). I did make a mention about the test failure at least, we need to exclude the DHE cipher defaults from Dovecot, otherwise even without a configured FFDHE params file it will still accept negotiating these cipher suites which will fail. The alternative is to keep DHE params, which may be useful for legacy IMAP/POP3 clients, but I did update the docs for users that would require that support. I'll give this a glance over soon so the PR can unblock you. |
|
I'll have some days off that I'd like to dedicate to DMS soon. @polarathene can we get this PR ready for review and merge it to unblock me? :) |
I can try to squeeze in some time for this over the next few days. Juggling quite a bit atm. Just to be clear I don't believe this PR should be blocking you? IIRC we were looking at dropping DH params which this PR does focus on but Dovecot 2.4 was fine to keep DH params present. Was there something else concerning as a blocker? |
Sorry for the late response; I was way busier than I thought I'd be. I was under the impression this PR was blocking the Debian 13 PR. Never mind me then, I'll tend to it in the next days. PS: I wish you a happy new year @casperklein @polarathene! :) |
Description
This patch removes all custom DH parameters from DMS.
Fixes #4538
Type of change
Checklist
docs/)CHANGELOG.md