dns: fix generation of imap/pop3/mail/smtp A/AAAA-records
The dns-editor introduced a regression where imap/pop3/mail/smtp A-records would not get created, even tough the setting system.dns_createmailentry was enabled. fix A fix
This commit is contained in:
@@ -52,6 +52,13 @@ function createDomainZone($domain_id, $froxlorhostname = false)
|
|||||||
addRequiredEntry('@', 'NS', $required_entries);
|
addRequiredEntry('@', 'NS', $required_entries);
|
||||||
if ($domain['isemaildomain'] === '1') {
|
if ($domain['isemaildomain'] === '1') {
|
||||||
addRequiredEntry('@', 'MX', $required_entries);
|
addRequiredEntry('@', 'MX', $required_entries);
|
||||||
|
if (Settings::Get('system.dns_createmailentry')) {
|
||||||
|
foreach(['imap', 'pop3', 'mail', 'smtp'] as $record) {
|
||||||
|
foreach(['AAAA', 'A'] as $type) {
|
||||||
|
addRequiredEntry($record, $type, $required_entries);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// additional required records by setting
|
// additional required records by setting
|
||||||
|
|||||||
Reference in New Issue
Block a user