From 1903f34dea104ffc3dc8a9012e22dbd47fdd163f Mon Sep 17 00:00:00 2001 From: "Florian Aders (EleRas)" Date: Sat, 10 Apr 2010 07:52:53 +0000 Subject: [PATCH] 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 --- scripts/jobs/cron_tasks.inc.dns.10.bind.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/scripts/jobs/cron_tasks.inc.dns.10.bind.php b/scripts/jobs/cron_tasks.inc.dns.10.bind.php index c24bd339..0579afb1 100644 --- a/scripts/jobs/cron_tasks.inc.dns.10.bind.php +++ b/scripts/jobs/cron_tasks.inc.dns.10.bind.php @@ -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 } } -?> \ No newline at end of file +?>