mailman: temporarily disable suexec, allow access to public archives release_20150524
authorClinton Ebadi <clinton@unknownlamer.org>
Sun, 24 May 2015 23:38:32 +0000 (19:38 -0400)
committerClinton Ebadi <clinton@unknownlamer.org>
Sun, 24 May 2015 23:38:32 +0000 (19:38 -0400)
Debian Jessie suexec + mailman aren't playing nicely with each other
-- leave suexec disabled for now. Apache 2.4 also needs "require all
granted" to allow any access to a directory -- added for the public
list archives folder.

src/plugins/mailman.sml

index ef0a82f..ef72993 100644 (file)
@@ -112,8 +112,10 @@ val () = Env.actionV_one "mailmanVhost"
                             print "    ServerAdmin ";
                             print sadmin;
                             print "\n";
-                            print "    SuexecUserGroup list list\n";
+                            (* 
+                             print "    SuexecUserGroup list list\n";
                             print "\n";
+                            *)
                             print "    ErrorLog ";
                             print ld;
                             print "/error.log\n";
@@ -148,6 +150,11 @@ val () = Env.actionV_one "mailmanVhost"
                             print "        Order allow,deny\n";
                             print "        Allow from all\n";
                             print "    </Directory>\n";
+                            print "\n";
+                            print "    <Directory /var/lib/mailman/archives/public/>\n";
+                            print "        Options +SymlinksIfOwnerMatch -ExecCGI +Indexes\n";
+                            print "        Require all granted\n";
+                            print "    </Directory>\n";
 
                             Apache.doPre {user = user, nodes = map #1 places, id = vhostId, hostname = fullHost};