You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
					
						
							2.0 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							2.0 KiB
						
					
					
				sympa on debian 12
DOC: https://www.sympa.community/manual/install/install-sympa-distribution-debian.html https://wiki.evolix.org/HowtaptoSympa
USE OF: postfix + postgresql + ...
Apache2 + fcgi (deprecated, see nginx below)
Rk: replace {{PUBLIC_URL}} and {{LISTMASTER}} according to your needs!
PUBLIC_URL=listes.artcode.re
LISTMASTER=pvincent@artcode.re
- apt install -y postfix postgresql apache2 libapache2-mod-fcgid spawn-fcgi
- domain: {{PUBLIC_URL}}
 
 - apt install -y sympa
- db: postgresql
 - pass: sympa
 - web: apache2
 - setuid: no
 
 - editor /etc/sympa/sympa/sympa.conf
- listmaster: {{LISTMASTER}}
 - lang: fr
 - wwsympa_url: http://{{PUBLIC_URL}}/wws
 
 - a2enmod rewrite proxy_fcgi
 - editor /etc/apache2/sites-available/sympa.conf
<VirtualHost *:80> ServerName {{PUBLIC_URL}} RewriteEngine On RewriteRule ^/$ /wws [R] <Location /wws> SetHandler "proxy:unix:/run/sympa/wwsympa.socket|fcgi://localhost" Require all granted </Location> </VirtualHost> - a2dissite 000-default.conf
 - a2ensite sympa.conf
 - systemctl restart apache2 sympa
 
Nginx + fastcgi (recommended!)
- apt install -y postfix postgresql nginx fcgiwrap perl-doc
- domain: {{PUBLIC_URL}}
 
 - apt install -y sympa
 - editor /etc/sympa/sympa/sympa.conf
- listmaster: {{LISTMASTER}}
 - lang: fr
 
 - editor /etc/nginx/sites-available/sympa.conf
 
server {
    listen 80;
    server_name _;
    rewrite ^/$ /wws permanent;
    location /wws {
      include fastcgi_params;
      fastcgi_param SERVER_NAME $host;
      fastcgi_pass  unix:/run/sympa/wwsympa.socket;
    }
    location /static-sympa {
		  alias /usr/share/sympa/static_content;
    }
    location /css-sympa {
		  alias /var/lib/sympa/css;
    }
    location /pictures-sympa { 
      alias /var/lib/sympa/pictures;
    }
 
}
- cd /etc/nginx/sites-enabled
- rm default
 - ln -s ../sites-available/sympa.conf
 
 - systemctl reload nginx
 
after any sympa change!
- systemctl restart wwsympa.socket