mailman: support ssl on mailman domains release_20190109-1
authorClinton Ebadi <clinton@unknownlamer.org>
Thu, 10 Jan 2019 01:39:57 +0000 (20:39 -0500)
committerClinton Ebadi <clinton@unknownlamer.org>
Thu, 10 Jan 2019 01:39:57 +0000 (20:39 -0500)
SSL only worked in mailmanVhost for lists.hcoop.net because the
default vhost happens to use the *.hcoop.net certificate.

Actually specify certificate so this works generally instead.

Continuing the tradition of duplication between vhost and mailmanVhost.

lib/mailman.dtl
src/plugins/mailman.sml

index 8de45ee..dcfa585 100644 (file)
@@ -40,7 +40,6 @@ val mailman = \ host : (host) -> begin
     mailmanWebHost mwh;
     mailmanVhost host where
       MailmanPlaces = [mailman_place_default mailman_node];
-      SSL = no_ssl
     end
   end
 end;
index 4a2bfeb..bab7222 100644 (file)
@@ -126,6 +126,12 @@ val () = Env.actionV_one "mailmanVhost"
                             print "    ServerAdmin ";
                             print sadmin;
                             print "\n";
+                            case ssl of
+                                SOME cert =>
+                                (print "\n\tSSLEngine on\n\tSSLCertificateFile ";
+                                 print cert;
+                                 print "\n")
+                              | NONE => ();
                             (*
                              print "    SuexecUserGroup list list\n";
                             print "\n";