The email works fine when using a mail client.I’m using a nginx reverse proxy. Here is the nginx config file:
server {
index index.html index.htm index.nginx-debian.html index.php;
server_name mail.domain.tld autodiscover.* autoconfig.*;
location / {
proxy_pass http://127.0.0.1:85/;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
client_max_body_size 0;
}
location /Microsoft-Server-ActiveSync {
proxy_pass http://127.0.0.1:85/Microsoft-Server-ActiveSync;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_connect_timeout 75;
proxy_send_timeout 3650;
proxy_read_timeout 3650;
proxy_buffers 64 256k;
client_body_buffer_size 512k;
client_max_body_size 0;
}
location ~ /\.ht {
deny all;
}
listen [::]:443 ssl http2; # managed by Certbot
listen 443 ssl http2; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/mail.alkarkhi.net/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/mail.alkarkhi.net/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server {
if ($host = mail.alkarkhi.net) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80;
listen [::]:80;
server_name mail.alkarkhi.net autodiscover.* autoconfig.*;
return 404; # managed by Certbot
}