mysql: revoke permissions when dropping database
[hcoop/domtool2.git] / lib / mailman.dtl
CommitLineData
325285ab
AC
1{{Mailman mailing list system}}
2
3extern val mailmanWebHost : domain -> [Domain];
4{{Set the hostname of the web site for administration of mailing lists for this
5 domain.}}
e9f528ab 6
b5f2d506 7extern type mailman_node;
e9f528ab
AC
8{{Like <tt>web_node</tt>, but with the possibility of using some additional
9 nodes set by the admins.}}
10
b5f2d506 11extern val mailman_node : mailman_node;
e9f528ab
AC
12{{The default location for Mailman web interfaces}}
13
b5f2d506
AC
14extern val mailman_node_to_node : mailman_node -> node;
15
16extern type mailman_place;
17extern val mailman_place_default : mailman_node -> mailman_place;
f924c1cf 18extern val mailman_place : mailman_node -> your_ip -> your_ipv6 -> mailman_place;
b5f2d506
AC
19extern val mailman_place_to_web_node : mailman_place -> web_node;
20extern val mailman_place_to_node : mailman_place -> node;
21extern val mailman_place_to_ip : mailman_place -> ip;
f924c1cf 22extern val mailman_place_to_ipv6 : mailman_place -> ipv6;
b5f2d506 23{{Analogous to <tt>web_place</tt>, but based on <tt>mailman_node</tt>s}}
e9f528ab
AC
24
25extern val mailmanVhost : host -> [Domain]
ae272cb5
AC
26 {MailmanPlaces : [mailman_place],
27 SSL : ssl,
bd8614c8 28 MailmanForceSSL : bool,
ae272cb5
AC
29 User : your_user,
30 ServerAdmin : email};
e9f528ab
AC
31{{Create an Apache virtual host to serve as the web interface for some Mailman
32 lists.}}
33
34val mailman = \ host : (host) -> begin
c4b8e3b5
AC
35 let
36 domainHost host;
37 in
b5f2d506 38 dnsIP host (ip_of_node (mailman_node_to_node mailman_node));
400fd64b 39 dnsIPv6 host (ipv6_of_node (mailman_node_to_node mailman_node));
c4b8e3b5
AC
40 mwh <- Hostname;
41 mailmanWebHost mwh;
42 mailmanVhost host where
b5f2d506 43 MailmanPlaces = [mailman_place_default mailman_node];
c4b8e3b5
AC
44 end
45 end
e9f528ab
AC
46end;
47{{The most common Mailman config, for when you want to have a virtual host of your
48 domain dedicated to a Mailman interface. Provide the name of that host (e.g.,
49 "lists") to this directive, and it will take care of the rest.}}