WIP: need to include SMTP relay

This commit is contained in:
Lieuwe Leene 2022-11-19 18:55:06 +01:00
parent 1d08397182
commit 9c56e5359c
3 changed files with 22 additions and 11 deletions

View File

@ -1,13 +1,3 @@
## Start of configuration add by letsencrypt container
location ^~ /.well-known/acme-challenge/ {
auth_basic off;
auth_request off;
allow all;
root /usr/share/nginx/html;
try_files $uri =404;
break;
}
## End of configuration add by letsencrypt container
add_header Referrer-Policy "no-referrer" always;
add_header X-Content-Type-Options "nosniff" always;
add_header X-Download-Options "noopen" always;

View File

@ -192,6 +192,25 @@ services:
- USERNAME=${DNS_USERNAME}
- PASSWORD=${DNS_PASSWORD}
autodiscover:
image: monogramm/autodiscover-email-settings:latest
container_name: autodiscover
environment:
- VIRTUAL_HOST=autodiscover.${NGINX_HOST},autoconfig.${NGINX_HOST}
- VIRTUAL_PORT=8000
- DOMAIN=${NGINX_HOST}
- IMAP_HOST=mail.${NGINX_HOST}
- IMAP_PORT=993
- IMAP_SOCKET=SSL
- POP_HOST=mail.${NGINX_HOST}
- POP_PORT=995
- POP_SOCKET=SSL
- SMTP_HOST=mail.${NGINX_HOST}
- SMTP_PORT=587
- SMTP_SOCKET=STARTTLS
expose:
- "8000"
volumes:
acme-state:
gitea_data:

View File

@ -10,7 +10,6 @@ TZ=Europe/Berlin
ENABLE_SPAMASSASSIN=1
SPAMASSASSIN_SPAM_TO_INBOX=1
ENABLE_CLAMAV=1
ENABLE_DNSBL=1
ENABLE_FAIL2BAN=1
ENABLE_POSTGREY=1
ENABLE_SASLAUTHD=0
@ -18,6 +17,9 @@ ONE_DIR=1
TLS_LEVEL=modern
ENABLE_UPDATE_CHECK=1
SSL_TYPE=letsencrypt
SPOOF_PROTECTION=1
ENABLE_POP3=1
ENABLE_DNSBL=1
## SQL Server Env
POSTGRES_USER="pgadmin"