merge-requests/2/head
Matthew 2022-02-18 18:38:48 -05:00
parent 03e1d29369
commit 6bfff1802e
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
2 changed files with 11 additions and 28 deletions

View File

@ -3,32 +3,14 @@ server {
listen [::]:443 ssl http2; listen [::]:443 ssl http2;
server_name lists.libraryofcode.org; server_name lists.libraryofcode.org;
ssl_certificate /etc/nginx/ssl/org.chain.crt; location /static/ {
ssl_certificate_key /etc/nginx/ssl/org.key.pem; alias /etc/mailman3/static/;
}
client_max_body_size 1G;
location / { location / {
return 307 $scheme://lists.libraryofcode.org/cgi-bin/mailman/listinfo; proxy_pass http://127.0.0.1:6475;
} proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
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;
} }
} }

View File

@ -11,7 +11,7 @@ mail_name = Library of Code sp-us | Staff Services
# Relay Settings # Relay Settings
relayhost = relayhost =
relay_domains = lists.libraryofcode.org relay_domains = lists.libraryofcode.org, hash:/var/tmp/mailman/data/postfix_domains
# MDA & Delivery # MDA & Delivery
@ -19,7 +19,7 @@ append_dot_mydomain = no
biff = no biff = no
mailbox_transport = lmtp:unix:private/dovecot-lmtp mailbox_transport = lmtp:unix:private/dovecot-lmtp
message_size_limit = 1073741824 message_size_limit = 1073741824
transport_maps = hash:/etc/postfix/transport transport_maps = hash:/var/tmp/mailman/data/postfix_lmtp
mailbox_size_limit = 0 mailbox_size_limit = 0
recipient_delimiter = + recipient_delimiter = +
@ -82,13 +82,14 @@ smtpd_recipient_restrictions =
# Local Aliases # Local Aliases
alias_maps = hash:/etc/aliases alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
alias_database = hash:/etc/aliases alias_database = hash:/etc/aliases
# Virtual Alises # Virtual Alises
smtpd_sender_login_maps = hash:/etc/postfix/virtual-mailbox-users smtpd_sender_login_maps = hash:/etc/postfix/virtual-mailbox-users
virtual_alias_maps = hash:/etc/postfix/virtual virtual_alias_maps = hash:/etc/postfix/virtual
##local_recipient_maps = hash:/var/tmp/mailman/data/postfix_lmtp
# Network Settings & Milters # Network Settings & Milters