diff options
author | Georg | 2021-08-08 15:34:55 +0200 |
---|---|---|
committer | Georg | 2021-08-08 15:37:12 +0200 |
commit | 01da6ddafef02de1ea17bda689229a9ff77031e8 (patch) | |
tree | dd7b5e00f02aa9c6e250e3a994e4eb9d9f3f1c75 /mailcow/data | |
parent | 45dbfb176555d90cec7606cae082e1e2aaef8e74 (diff) | |
download | email-01da6ddafef02de1ea17bda689229a9ff77031e8.tar.gz email-01da6ddafef02de1ea17bda689229a9ff77031e8.tar.bz2 email-01da6ddafef02de1ea17bda689229a9ff77031e8.zip |
Init Mailcow
Signed-off-by: Georg <georg@lysergic.dev>
Diffstat (limited to 'mailcow/data')
-rw-r--r-- | mailcow/data/conf/nginx/custom_sogo_external.conf | 52 | ||||
-rw-r--r-- | mailcow/data/conf/postfix/extra.cf | 4 |
2 files changed, 56 insertions, 0 deletions
diff --git a/mailcow/data/conf/nginx/custom_sogo_external.conf b/mailcow/data/conf/nginx/custom_sogo_external.conf new file mode 100644 index 0000000..4965263 --- /dev/null +++ b/mailcow/data/conf/nginx/custom_sogo_external.conf @@ -0,0 +1,52 @@ +server { + listen 8081; + #server_name sogo.zz0.email; + location ^~ /SOGo/ { + location ~* ^/SOGo/so/.*\.(xml|js|html|xhtml)$ { + include /etc/nginx/conf.d/sogo_proxy_auth.active; + include /etc/nginx/conf.d/sogo.active; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header Host $http_host; + proxy_set_header x-webobjects-server-protocol HTTP/1.0; + proxy_set_header x-webobjects-remote-host $remote_addr; + proxy_set_header x-webobjects-server-name $server_name; + proxy_set_header x-webobjects-server-url $client_req_scheme://$http_host; + proxy_set_header x-webobjects-server-port $server_port; + proxy_hide_header Content-Type; + add_header Content-Type text/plain; + break; + } + include /etc/nginx/conf.d/sogo_proxy_auth.active; + include /etc/nginx/conf.d/sogo.active; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header Host $http_host; + proxy_set_header x-webobjects-server-protocol HTTP/1.0; + proxy_set_header x-webobjects-remote-host $remote_addr; + proxy_set_header x-webobjects-server-name $server_name; + proxy_set_header x-webobjects-server-url $client_req_scheme://$http_host; + proxy_set_header x-webobjects-server-port $server_port; + proxy_send_timeout 3600; + proxy_read_timeout 3600; + client_body_buffer_size 128k; + client_max_body_size 0; + break; + } + + location /SOGo.woa/WebServerResources/ { + alias /usr/lib/GNUstep/SOGo/WebServerResources/; + } + + location /.woa/WebServerResources/ { + alias /usr/lib/GNUstep/SOGo/WebServerResources/; + } + + location /SOGo/WebServerResources/ { + alias /usr/lib/GNUstep/SOGo/WebServerResources/; + } + + location (^/SOGo/so/ControlPanel/Products/[^/]*UI/Resources/.*\.(jpg|png|gif|css|js)$) { + alias /usr/lib/GNUstep/SOGo/$1.SOGo/Resources/$2; + } +} diff --git a/mailcow/data/conf/postfix/extra.cf b/mailcow/data/conf/postfix/extra.cf new file mode 100644 index 0000000..112bae0 --- /dev/null +++ b/mailcow/data/conf/postfix/extra.cf @@ -0,0 +1,4 @@ +myhostname = 3gy.de + +mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 [fe80::]/10 172.22.1.0/24 [fd4d:6169:6c63:6f77::]/64 192.168.0.0/24 172.16.9.2 [2a03:4000:53:64::] 172.16.9.8/29 172.16.24.0/29 +mail_name = FREEDOM |