Operations grimoire/Mail/Sympa: Difference between revisions
From Nasqueron Agora
< Operations grimoire | Mail
(More configuration notes) |
(→Back-end nginx server: +nginx config) |
||
Line 28: | Line 28: | ||
=== Back-end nginx server === | === Back-end nginx server === | ||
<source lang="nginx"> | <source lang="nginx"> | ||
server { | |||
server_name lists.*; | |||
access_log /var/log/nginx/lists.nasqinternal.access.log; | |||
error_log /var/log/nginx/lists.nasqinternal.error.log; | |||
rewrite ^/$ /wws permanent; | |||
rewrite ^/wws$ /sympa permanent; | |||
rewrite ^/wws/(.*)$ /sympa/$1 permanent; | |||
location ^~ /static-sympa { | |||
alias /var/lib/sympa/static_content/; | |||
access_log off; | |||
} | |||
location /sympa { | |||
gzip off; | |||
include fastcgi_params; | |||
fastcgi_split_path_info ^(/sympa)(.+)$; | |||
fastcgi_param PATH_INFO $fastcgi_path_info; | |||
fastcgi_param SCRIPT_FILENAME /var/lib/sympa/bin/wwsympa-wrapper.fcgi; | |||
fastcgi_param SERVER_NAME $host; | |||
fastcgi_param HTTP_HOST $http_host; | |||
fastcgi_intercept_errors on; | |||
fastcgi_pass unix:/run/fcgiwrap.socket; | |||
} | |||
} | |||
</source> | </source> | ||
Revision as of 22:31, 26 January 2017
Sympa is a mailing list manager, with good support for multidomains, SOAP webservice.
It lives in /var/lib/sympa
. It's NOT managed as a Debian package, but installed from source.
Install
$ ./configure --prefix=/var/lib/sympa
$ make
$ make install
$ cd /var/lib/sympa/bin
$ ./sympa_wizard.pl --check
Configuration is located in /etc/sympa as a Git repository.
Postfix configuration is to be amended through D849.
Web interface
Application server
We need fcgiwrap listening at /run/fcgiwrap.socket
.
$ apt-get install fcgiwrap
$ systemctl status fcgiwrap
$ ls /run/fcgiwrap.socket
Back-end nginx server
server {
server_name lists.*;
access_log /var/log/nginx/lists.nasqinternal.access.log;
error_log /var/log/nginx/lists.nasqinternal.error.log;
rewrite ^/$ /wws permanent;
rewrite ^/wws$ /sympa permanent;
rewrite ^/wws/(.*)$ /sympa/$1 permanent;
location ^~ /static-sympa {
alias /var/lib/sympa/static_content/;
access_log off;
}
location /sympa {
gzip off;
include fastcgi_params;
fastcgi_split_path_info ^(/sympa)(.+)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME /var/lib/sympa/bin/wwsympa-wrapper.fcgi;
fastcgi_param SERVER_NAME $host;
fastcgi_param HTTP_HOST $http_host;
fastcgi_intercept_errors on;
fastcgi_pass unix:/run/fcgiwrap.socket;
}
}
Front-end nginx server
Currently on Dwellers. It only forwards requests for lists domain to our back-end nginx.
Configuration as code.
This service should be properly defined in rOPS repository as a Salt state.