Add MTA-STS configuration

This commit is contained in:
phil 2023-04-17 22:11:40 +02:00
parent 649e769424
commit 4e098544be
5 changed files with 66 additions and 0 deletions

View file

@ -0,0 +1,14 @@
server {
listen 80;
server_name mta-sts.{{ item.name }};
include snippets/letsencrypt.conf;
location / { return 301 https://$http_host$request_uri; }
}
server {
listen 443 ssl http2;
server_name mta-sts.{{ item.name }};
ssl_certificate /var/lib/dehydrated/certs/mta-sts.{{ item.name }}/fullchain.pem;
ssl_certificate_key /var/lib/dehydrated/certs/mta-sts.{{ item.name }}/privkey.pem;
location /.well-known { alias /var/www/html; }
}

View file

@ -0,0 +1,6 @@
version: STSv1
mode: enforce
max_age: 10368000
{% for mx in item.mx_server %}
mx: {{ mx }}
{% endfor %}