Code

Fixed kolab service
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 26 Sep 2006 07:35:15 +0000 (07:35 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 26 Sep 2006 07:35:15 +0000 (07:35 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4774 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servKolab.inc

index 7d8544a37a62188a4d3a4b74229d70d0099db085..3365211b96bee4bb46b8a62fadb5869848e14f9c 100644 (file)
@@ -108,11 +108,13 @@ class servkolab extends goService {
       Assign informations to smarty 
      ***************/
 
-    /* Set relayhost and if we have MX lookup enabled*/
-    if($this->postfix_mxrelayenabled) {
-      $smarty->assign("RelayMxSupportCheck"," checked ");
-    } else {
-      $smarty->assign("RelayMxSupportCheck","");
+    /* Set relayhost and if we have MX lookup enabled*/ 
+    if($this->acl_is_writeable("postfixmxrelayenabled")){
+      if($this->postfix_mxrelayenabled) {
+        $smarty->assign("RelayMxSupportCheck"," checked ");
+      } else {
+        $smarty->assign("RelayMxSupportCheck","");
+      }
     }
 
     /* Set acls */
@@ -294,7 +296,7 @@ class servkolab extends goService {
 
     /* Adapt relayhost */
     $this->postfix_relayhost= preg_replace('/[\[\]]/', '', $this->postfix_relayhost);
-    if (!$this->postfix_mxrelayenabled && $this->postfix_relayhost != ""){
+    if ($this->postfix_mxrelayenabled && $this->postfix_relayhost != ""){
       $this->postfix_relayhost= "[".$this->postfix_relayhost."]";
     }
 
@@ -384,6 +386,7 @@ class servkolab extends goService {
             "postfixmynetworks"              => _("SMTP privileged networks") ,
             "postfixenablevirusscan"         => _("Enable virus scan") ,
             "postfixrelayhost"               => _("Relayhost") ,
+            "postfixmxrelayenabled"          => _("Enable MX lookup for relayhost"),
             "apachehttp"                     => _("HTTP FreeBusy service") ,
             "apacheallowunauthenticatedfb"   => _("Allow unauthenticated free busy"),
             "postfixallowunauthenticated"    => _("Accept Internet Mail") ,