1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2026-05-10 17:52:39 +00:00

dkim: Add support for 3072 and 4096 bit RSA keys

Signed-off-by: Marvin A. Ruder <signed@mruder.dev>
This commit is contained in:
Marvin A. Ruder
2025-03-10 18:30:36 +01:00
parent 86df78255d
commit 2a23e2cb0d
5 changed files with 15 additions and 2 deletions

View File

@@ -240,8 +240,11 @@ function dkim($_action, $_data = null, $privkey = false) {
if (strlen($dkimdata['pubkey']) < 391) {
$dkimdata['length'] = "1024";
}
elseif (strlen($dkimdata['pubkey']) < 564) {
$dkimdata['length'] = "2048"
}
elseif (strlen($dkimdata['pubkey']) < 736) {
$dkimdata['length'] = "2048";
$dkimdata['length'] = "3072";
}
elseif (strlen($dkimdata['pubkey']) < 1416) {
$dkimdata['length'] = "4096";