If we don't have a wildcard - domain and no special - MX - hosts, we add the three special - subdomains imap, smtp and pop3, fixes #82

This commit is contained in:
Florian Aders (EleRas)
2010-04-10 07:52:53 +00:00
parent ee7e50004a
commit 1903f34dea

View File

@@ -207,7 +207,14 @@ class bind
if(count($this->mxservers) == 0)
{
$zonefile.= '@ IN MX 10 mail' . "\n" . 'mail IN ' . $ip_a_record . "\n";
$zonefile.= '@ IN MX 10 mail' . "\n";
$zonefile.= 'mail IN ' . $ip_a_record . "\n";
if($domain['iswildcarddomain'] != '1')
{
$zonefile.= 'imap IN ' . $ip_a_record . "\n";
$zonefile.= 'smtp IN ' . $ip_a_record . "\n";
$zonefile.= 'pop3 IN ' . $ip_a_record . "\n";
}
}
else
{
@@ -422,4 +429,4 @@ class bind
}
}
?>
?>