Its good to know it can work. There is not much more that I can describe with the config. I have Grommunio running as a VM on Proxmox with one IP assigned to it. In front of Grommunio between my internet facing router is NGINX proxy which is handling ports 80 and 443 redirected to it by the router.
Various hosts setup on that as I only have one internet facing IP.
My internal DNS for the mail server also points to the IP of NGINX, my public DNS of course also has suitable records.
The basic connectivity is fine, either from my internal VLANS or the internet.
Eventually the Android devices simply vanish and the push connection drops, needing me to force a check for mail on the phone. Both are Android and using the Samsung email app. I tried Outlook for mobile and things got bad quickly, that was a fail.
Below is my location block for NGINX, but I have tried many many suggested lines, and commenting thigs out one by one to see what makes things worse or better. I have tried with buffering removed and enabled, left enabled in this block.
Crowdsec is installed onto NGINX with Appsec but disabled for this location.
If anyone is willing to share their NGINX location settings I would be grateful, Google searching returns multiple variations with no one definitive settings, tried them all though. What I have posted here works the best.
location /Microsoft-Server-ActiveSync{
auth_request /auth;
auth_request_set $arg_Cmd $arg_Cmd;
auth_request_set $arg_User $arg_User;
auth_request_set $arg_DeviceId $arg_DeviceId;
auth_request_set $auth_status $upstream_status;
proxy_connect_timeout 75s;
proxy_read_timeout 7200s;
proxy_send_timeout 7200s;
proxy_buffer_size 64k;
proxy_temp_file_write_size 256k;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Accept-Encoding "";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;