DKIM/SPF/DMARC on Subdomain
Summary
It is not possible to add a DKIM/DMARC for an subdomain in den DNS config.
Steps to reproduce
-
try to create a DKIM or DMARC for any subdomain like app.testdom.xx
Not every time the the DKIM / DMARC for Domain and subdomain are the same. It should be possible to add diffrent DKIM / DMARC for subdomain too.
-
Example the company with domain.xx get a software on app.domain.xx and this software solution has its own mail handling with own dkim system
Environment
Ubu 22.04 + ISP 3.2.11
Proposed fix
optional, of course.
if you want to post code snippets, please use
maybe simple remove the checks in interface/web/dns/form/dns_txt.tform.php (my temp solution) and let create the user his custom records.
'data' => array (
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'validators' => array (
0 => array (
'type' => 'NOTEMPTY',
'errmsg'=> 'data_error_empty'
),
/* 1 => array (
'type' => 'REGEX',
'regex' => "/^((?!v=DKIM).)*$/s",
'errmsg'=> 'invalid_type_dkim'
),
2 => array (
'type' => 'REGEX',
'regex' => "/^((?!v=DMARC1; ).)*$/s",
'errmsg'=> 'invalid_type_dmarc'),
3 => array (
'type' => 'REGEX',
'regex' => "/^((?!v=spf).)*$/s",
'errmsg'=> 'invalid_type_spf'
),
*/
),