From: Clinton Ebadi Date: Thu, 10 Jan 2019 01:39:57 +0000 (-0500) Subject: mailman: support ssl on mailman domains X-Git-Tag: release_20190109-1 X-Git-Url: https://git.hcoop.net/hcoop/domtool2.git/commitdiff_plain/4c792c1b279b1f0a99d2cc39d174ee7c3e460f3f mailman: support ssl on mailman domains 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. --- diff --git a/lib/mailman.dtl b/lib/mailman.dtl index 8de45ee..dcfa585 100644 --- a/lib/mailman.dtl +++ b/lib/mailman.dtl @@ -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; diff --git a/src/plugins/mailman.sml b/src/plugins/mailman.sml index 4a2bfeb..bab7222 100644 --- a/src/plugins/mailman.sml +++ b/src/plugins/mailman.sml @@ -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";