Merge branch 'master' of https://github.com/mailcow/mailcow-dockerized
This commit is contained in:
		| @@ -428,7 +428,7 @@ $tfa_data = get_tfa(); | ||||
|             <input class="form-control input-sm" name="dkim_selector" value="dkim" required> | ||||
|           </div> | ||||
|           <div class="form-group"> | ||||
|             <label for="private_key_file"><?=$lang['admin']['private_key'];?>:</label> | ||||
|             <label for="private_key_file"><?=$lang['admin']['private_key'];?>: (RSA PKCS#8)</label> | ||||
|             <textarea class="form-control input-sm" rows="10" name="private_key_file" id="private_key_file" required placeholder="-----BEGIN RSA KEY-----"></textarea> | ||||
|           </div> | ||||
|           <button class="btn btn-sm btn-default" data-action="add_item" data-id="dkim_import" data-api-url='add/dkim_import' data-api-attr='{}' href="#"><span class="glyphicon glyphicon-plus"></span> <?=$lang['admin']['import'];?></button> | ||||
|   | ||||
| @@ -123,7 +123,7 @@ function dkim($_action, $_data = null) { | ||||
|         try { | ||||
|           $redis->hSet('DKIM_PUB_KEYS', $to_domain, $from_domain_dkim['pubkey']); | ||||
|           $redis->hSet('DKIM_SELECTORS', $to_domain, $from_domain_dkim['dkim_selector']); | ||||
|           $redis->hSet('DKIM_PRIV_KEYS', $from_domain_dkim['dkim_selector'] . '.' . $to_domain, trim($from_domain_dkim['privkey'])); | ||||
|           $redis->hSet('DKIM_PRIV_KEYS', $from_domain_dkim['dkim_selector'] . '.' . $to_domain, base64_decode(trim($from_domain_dkim['privkey']))); | ||||
|         } | ||||
|         catch (RedisException $e) { | ||||
|           $_SESSION['return'][] = array( | ||||
| @@ -307,4 +307,4 @@ function dkim($_action, $_data = null) { | ||||
|       } | ||||
|     break; | ||||
|   } | ||||
| } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user