Add MTA-STS configuration
This commit is contained in:
parent
649e769424
commit
4e098544be
5 changed files with 66 additions and 0 deletions
14
templates/nginx/mta-sts.j2
Normal file
14
templates/nginx/mta-sts.j2
Normal 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; }
|
||||
}
|
6
templates/nginx/mta-sts.txt.j2
Normal file
6
templates/nginx/mta-sts.txt.j2
Normal file
|
@ -0,0 +1,6 @@
|
|||
version: STSv1
|
||||
mode: enforce
|
||||
max_age: 10368000
|
||||
{% for mx in item.mx_server %}
|
||||
mx: {{ mx }}
|
||||
{% endfor %}
|
Loading…
Add table
Add a link
Reference in a new issue