X-Git-Url: https://git.hcoop.net/hcoop/domtool2.git/blobdiff_plain/de5351c7e5e91a5a055127e7294419c64a1c74df..e9f528ab975ac28c16b2c370e69206a48f584d78:/lib/mailman.dtl diff --git a/lib/mailman.dtl b/lib/mailman.dtl index 2cf0445..21e3b49 100644 --- a/lib/mailman.dtl +++ b/lib/mailman.dtl @@ -3,3 +3,33 @@ extern val mailmanWebHost : domain -> [Domain]; {{Set the hostname of the web site for administration of mailing lists for this domain.}} + +extern type mailman_web_node; +{{Like web_node, but with the possibility of using some additional + nodes set by the admins.}} + +extern val mailman_web_node : mailman_web_node; +{{The default location for Mailman web interfaces}} + +extern val mailman_web_node_to_node : mailman_web_node -> node; + +extern val mailmanVhost : host -> [Domain] + {MailmanWebNodes : [mailman_web_node], + SSL : ssl, + User : your_user}; +{{Create an Apache virtual host to serve as the web interface for some Mailman + lists.}} + +val mailman = \ host : (host) -> begin + dnsIP host (ip_of_node (mailman_web_node_to_node mailman_web_node)); + domainHost host; + mwh <- Hostname; + mailmanWebHost mwh; + mailmanVhost host where + MailmanWebNodes = [mailman_web_node]; + SSL = no_ssl + end; +end; +{{The most common Mailman config, for when you want to have a virtual host of your + domain dedicated to a Mailman interface. Provide the name of that host (e.g., + "lists") to this directive, and it will take care of the rest.}}