Add mailman3 fix
parent
f2e08d7b16
commit
acb8e3f972
|
@ -198,3 +198,12 @@ SOCIALACCOUNT_PROVIDERS = {
|
||||||
COMPRESS_OFFLINE = True
|
COMPRESS_OFFLINE = True
|
||||||
|
|
||||||
POSTORIUS_TEMPLATE_BASE_URL = 'http://localhost/mailman3/'
|
POSTORIUS_TEMPLATE_BASE_URL = 'http://localhost/mailman3/'
|
||||||
|
|
||||||
|
# Add translations, this will be useless in Debian Bullseye
|
||||||
|
LANGUAGES = [
|
||||||
|
('en', 'English'),
|
||||||
|
('fr', 'Français'),
|
||||||
|
]
|
||||||
|
LOCALE_PATHS = [
|
||||||
|
'/etc/mailman3/locale',
|
||||||
|
]
|
||||||
|
|
|
@ -4,12 +4,29 @@ upstream mailman3 {
|
||||||
server unix:/run/mailman3-web/uwsgi.sock fail_timeout=0;
|
server unix:/run/mailman3-web/uwsgi.sock fail_timeout=0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Local hyperkitty API
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
listen [::]:80;
|
||||||
|
|
||||||
|
server_name localhost;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
uwsgi_pass mailman3;
|
||||||
|
include /etc/nginx/uwsgi_params;
|
||||||
|
}
|
||||||
|
|
||||||
|
# Log into separate log files
|
||||||
|
access_log /var/log/nginx/mailman3_access.log combined;
|
||||||
|
error_log /var/log/nginx/mailman3_error.log;
|
||||||
|
}
|
||||||
|
|
||||||
# Redirect http://mailman.crans.org to https://mailman.crans.org
|
# Redirect http://mailman.crans.org to https://mailman.crans.org
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
|
|
||||||
server_name mailman.crans.org localhost;
|
server_name mailman.crans.org;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
return 302 https://$host$request_uri;
|
return 302 https://$host$request_uri;
|
||||||
|
@ -21,7 +38,7 @@ server {
|
||||||
listen 443 ssl http2;
|
listen 443 ssl http2;
|
||||||
listen [::]:443 ssl http2;
|
listen [::]:443 ssl http2;
|
||||||
|
|
||||||
server_name mailman.crans.org localhost;
|
server_name mailman.crans.org;
|
||||||
server_tokens off;
|
server_tokens off;
|
||||||
|
|
||||||
# SSL common conf
|
# SSL common conf
|
||||||
|
|
|
@ -9,16 +9,15 @@ smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
|
||||||
biff = no
|
biff = no
|
||||||
|
|
||||||
# Uncomment the next line to generate "delayed mail" warnings
|
# Uncomment the next line to generate "delayed mail" warnings
|
||||||
#delay_warning_time = 4h
|
delay_warning_time = 4h
|
||||||
|
|
||||||
# See http://www.postfix.org/COMPATIBILITY_README.html -- default to 2 on
|
# See http://www.postfix.org/COMPATIBILITY_README.html -- default to 2 on
|
||||||
# fresh installs.
|
# fresh installs.
|
||||||
compatibility_level = 2
|
compatibility_level = 2
|
||||||
|
|
||||||
# Use self-signed Debian generated cert for local TLS
|
|
||||||
# TLS parameters
|
# TLS parameters
|
||||||
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
|
smtpd_tls_cert_file=/etc/letsencrypt/live/mailman.crans.org/fullchain.pem
|
||||||
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
|
smtpd_tls_key_file=/etc/letsencrypt/live/mailman.crans.org/privkey.pem
|
||||||
smtpd_use_tls=yes
|
smtpd_use_tls=yes
|
||||||
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
|
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
|
||||||
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
|
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
|
||||||
|
@ -26,13 +25,13 @@ smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
|
||||||
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
|
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
|
||||||
# information on enabling SSL in the smtp client.
|
# information on enabling SSL in the smtp client.
|
||||||
|
|
||||||
|
# Limit to 200Mo by message
|
||||||
|
message_size_limit = 209715200
|
||||||
|
|
||||||
# Default aliases
|
# Default aliases
|
||||||
alias_maps = hash:/etc/aliases
|
alias_maps = hash:/etc/aliases
|
||||||
alias_database = hash:/etc/aliases
|
alias_database = hash:/etc/aliases
|
||||||
|
|
||||||
# All non local mail is sent to domain MX
|
|
||||||
relayhost = $mydomain
|
|
||||||
|
|
||||||
# Only localhost
|
# Only localhost
|
||||||
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
|
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue