More easy_domain
authorAdam Chlipala <adamc@hcoop.net>
Sun, 17 Dec 2006 22:40:01 +0000 (22:40 +0000)
committerAdam Chlipala <adamc@hcoop.net>
Sun, 17 Dec 2006 22:40:01 +0000 (22:40 +0000)
lib/alias.dtl
lib/domain.dtl
lib/easy_domain.dtl
lib/exim.dtl

index 8fe2246..10f7dde 100644 (file)
@@ -28,7 +28,7 @@ extern val addressesTarget : [email] -> aliasTarget;
 extern val dropTarget : aliasTarget;
 {{Silently delete all mail to the associated source.}}
 
-extern val aliasPrim : aliasSource -> aliasTarget -> [Domain] {MailNodes: [node]};
+extern val aliasPrim : aliasSource -> aliasTarget -> [Domain] {MailNodes: [mail_node]};
 {{Request redirection of all mail from the source to the target, specifying on
   which nodes this redirection should be applied.}}
 
index 5d2d057..afd922d 100644 (file)
@@ -77,3 +77,7 @@ extern val noDns : dnsKind;
 
 extern val domain : your_domain -> Domain => [Root] {DNS : dnsKind, TTL : int};
 {{Configure a domain to which you have access rights.}}
+
+extern type mail_node;
+{{A node offering SMTP services}}
+extern val mail_node_to_node : mail_node -> node;
\ No newline at end of file
index 3c3d4e0..92a635f 100644 (file)
@@ -32,3 +32,8 @@ val dom =
 
                        config
                end;
+
+val nameserver = \host -> dns (dnsNS host);
+val dnsIP = \from -> \to -> dns (dnsA from to);
+val dnsMail = \num -> \host -> dns (dnsMX num host);
+val dnsAlias = \from -> \to -> dns (dnsCNAME from to);
index feb320e..3e9e749 100644 (file)
@@ -1,4 +1,4 @@
 {{Exim MTA configuration}}
 
-extern val handleMail : [Domain] {MailNodes: [node]};
+extern val handleMail : [Domain] {MailNodes: [mail_node]};
 {{The specified nodes should handle mail for this domain.}}