Project

General

Profile

Howto mailman » History » Revision 2

Revision 1 (stbuehler, 2009-11-12 23:06) → Revision 2/3 (stbuehler, 2011-10-10 14:15)

h1. Howto mailman 

 "mailman":http://www.gnu.org/software/mailman/index.html is free software for managing electronic mail discussion and e-newsletter lists. You need a FastCGI CGI wrapper running (see [[Howto_CGI]]). 

 h2. Lighttpd config 

 <pre> 
 setup { 
	 module.load ( "mod_fastcgi", "mod_vhost" ); 
 } 

 var.vhosts = []; 

 # ... 

 var.vhosts = var.vhosts + [ 
	 "lists.example.com" => { "lists.example.com": ${ 
		 alias ( 
			 ("/mailman/", "/usr/lib/cgi-bin/mailman"), 
			 ("/pipermail/", "/var/lib/mailman/archives/public"), 
			 ("/images/mailman/", "/usr/share/images/mailman") 
		 ); 
		 if req.path =^ "/mailman/" { 
			 pathinfo; 
			 fastcgi "unix:/var/run/lighttpd/www-data-cgi.sock"; 
		 } else if req.path =^ "/pipermail" { 
			 dirlist; 
		 } 
	 } 
 ]; 

 # ... 

 vhost.map var.vhosts; 
 </pre>