manually added DKIM key creates empty DNS RR
Summary
Adding existing DKIM key for a domain by pasting the it into "DKIM Private-key:" textbox (instead of using "Generate DKIM Private-key" button) and saving it adds dummy TXT record (empty "p=") to DNS zone.
Steps to reproduce
- Enter Email / Mail Domain in ISPConfig interface
- Expand DKIM options by clicking "Domain Keys Identifid Mail (DKIM)" button
- click the "enable DKIM:" text box
- paste existing DKIM key to the "DKIM Private-key:"
- click the "Save" button
- the new TXT records without public key gets added to the domain.
Correct behaviour
The DKIM TXT Record should be only added to DNS if the public key is known (and does not alredy exist)
Environment
Server OS + version: Debian GNU/Linux 10 (buster) ISPConfig version: 3.2.11
Software version of the related software:
Server version: Apache/2.4.38 (Debian)
Server built: 2023-04-21T22:01:00
PHP 7.3.33-14+0~20230902.114+debian10~1.gbp764b27 (cli) (built: Sep 2 2023 07:11:20) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.33, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.33-14+0~20230902.114+debian10~1.gbp764b27, Copyright (c) 1999-2018, by Zend Technologies
References
https://forum.howtoforge.com/threads/creating-domain-with-manually-addded-dkim-key.91432/