domtool-mode standard library table changes performed automatically by Makefile
[hcoop/domtool2.git] / lib / easy_domain.dtl
index 7ed29a4..aef0232 100644 (file)
@@ -17,7 +17,7 @@ val webAt =
 
 val web = webAt web_node;
 
-val dom =
+val domNoDefaultAlias =
        \ d : (your_domain) ->
        \\ config : Domain ->
                domain d with
@@ -28,8 +28,6 @@ val dom =
 
                        handleMail;
                        dns (dnsMX 1 "deleuze.hcoop.net");
-                       mailbox <- Mailbox;
-                       defaultAlias mailbox;
 
                        web "www" with
                                serverAliasDefault;
@@ -40,6 +38,15 @@ val dom =
                        config
                end;
 
+val dom =
+       \ d : (your_domain) ->
+       \\ config : Domain ->
+               domNoDefaultAlias d with
+                 config;
+                 mailbox <- Mailbox;
+                 defaultAlias mailbox;
+               end;
+
 val nameserver = \host -> dns (dnsNS host);
 val dnsIP = \from -> \to -> dns (dnsA from to);
 val dnsMail = \num -> \host -> dns (dnsMX num host);