Tweakier dom
authorAdam Chlipala <adamc@hcoop.net>
Sun, 24 Feb 2008 21:40:26 +0000 (21:40 +0000)
committerAdam Chlipala <adamc@hcoop.net>
Sun, 24 Feb 2008 21:40:26 +0000 (21:40 +0000)
lib/easy_domain.dtl

index ee223f2..db27d29 100644 (file)
@@ -53,8 +53,19 @@ val dom =
 
     dns (dnsA default (ip_of_node (web_node_to_node web_node)));
 
-    handleMail;
-    dns (dnsMX 1 "deleuze.hcoop.net");
+    hmail : bool <- HandleMail;
+    if hmail then
+      handleMail
+    else
+      Skip
+    end;
+
+    amx : bool <- AddMX;
+    if amx then
+      dns (dnsMX 1 "deleuze.hcoop.net")
+    else
+      Skip
+    end;
 
     createWWW : bool <- CreateWWW;
     if createWWW then