From 6bfff1802e337cf73e11ecd284813b524266bdcc Mon Sep 17 00:00:00 2001 From: Matthew R Date: Fri, 18 Feb 2022 18:38:48 -0500 Subject: [PATCH] fixes --- .../lists.libraryofcode.org.conf | 32 ++++--------------- Postfix/main.conf | 7 ++-- 2 files changed, 11 insertions(+), 28 deletions(-) diff --git a/Nginx/Server Blocks/lists.libraryofcode.org.conf b/Nginx/Server Blocks/lists.libraryofcode.org.conf index a823fa7..9a5f110 100644 --- a/Nginx/Server Blocks/lists.libraryofcode.org.conf +++ b/Nginx/Server Blocks/lists.libraryofcode.org.conf @@ -3,32 +3,14 @@ server { listen [::]:443 ssl http2; server_name lists.libraryofcode.org; - ssl_certificate /etc/nginx/ssl/org.chain.crt; - ssl_certificate_key /etc/nginx/ssl/org.key.pem; - - client_max_body_size 1G; + location /static/ { + alias /etc/mailman3/static/; + } location / { - return 307 $scheme://lists.libraryofcode.org/cgi-bin/mailman/listinfo; - } - - location /cgi-bin/mailman { - root /usr/lib/; - fastcgi_split_path_info (^/cgi-bin/mailman/[^/]*)(.*)$; - include /etc/nginx/fastcgi_params; - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; - fastcgi_param PATH_INFO $fastcgi_path_info; - fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; - fastcgi_intercept_errors on; - fastcgi_pass unix:/var/run/fcgiwrap.socket; - } - - location /images/mailman { - alias /usr/share/images/mailman; - } - - location /pipermail { - alias /var/lib/mailman/archives/public; - autoindex on; + proxy_pass http://127.0.0.1:6475; + proxy_set_header Host $host; + proxy_set_header X-Forwarded-For $remote_addr; + } } diff --git a/Postfix/main.conf b/Postfix/main.conf index 9099011..4728512 100644 --- a/Postfix/main.conf +++ b/Postfix/main.conf @@ -11,7 +11,7 @@ mail_name = Library of Code sp-us | Staff Services # Relay Settings relayhost = -relay_domains = lists.libraryofcode.org +relay_domains = lists.libraryofcode.org, hash:/var/tmp/mailman/data/postfix_domains # MDA & Delivery @@ -19,7 +19,7 @@ append_dot_mydomain = no biff = no mailbox_transport = lmtp:unix:private/dovecot-lmtp message_size_limit = 1073741824 -transport_maps = hash:/etc/postfix/transport +transport_maps = hash:/var/tmp/mailman/data/postfix_lmtp mailbox_size_limit = 0 recipient_delimiter = + @@ -82,13 +82,14 @@ smtpd_recipient_restrictions = # Local Aliases -alias_maps = hash:/etc/aliases +alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases alias_database = hash:/etc/aliases # Virtual Alises smtpd_sender_login_maps = hash:/etc/postfix/virtual-mailbox-users virtual_alias_maps = hash:/etc/postfix/virtual +##local_recipient_maps = hash:/var/tmp/mailman/data/postfix_lmtp # Network Settings & Milters