403 Forbidden beim Aufruf des täglichen Spamreports (PMG 9.0.3) hinter Nginx Reverse Proxy

May 8, 2025
21
3
3
Hallo zusammen,

ich betreibe ein Proxmox Mail Gateway (PMG) 9.0.3 hinter einem Nginx Reverse Proxy und stoße aktuell auf ein Problem beim Aufruf des täglichen Spamreports.

Problem​

Beim Öffnen des täglichen Spamreports erhalte ich folgenden Fehler in der Chrome Console:

Code:
https://subdomain.domain.tld/pve2/ext6/ext-all.js → 403 Forbidden

Setup​

  • Proxmox Mail Gateway 9.0.3 intern auf https://192.168.55.xx:8006
  • Zugriff auf dem Spamreport ausschließlich über Nginx Reverse Proxy

Hinweis zur Dokumentation​

In der offiziellen Anleitung „Quarantine Web Interface Via Nginx Proxy“ unter
https://pmg.proxmox.com/wiki/Quarantine_Web_Interface_Via_Nginx_Proxy
wird dieser Fall nicht behandelt bzw. ist für den täglichen Spamreport nicht dokumentiert.


Aktuelle Nginx-Konfiguration​

Code:
# Eigene 403-Seite verwenden
error_page 403 /custom_403.html;

location = /custom_403.html {
    internal;
    root /data/nginx/custom;
    default_type text/html;
}

# proxy requests for static components
# see https://pmg.proxmox.com/wiki/Quarantine_Web_Interface_Via_Nginx_Proxy
location ~ /proxmoxlib.js$|/favicon.ico$|/pve2/|/fontawesome/|/framework7/|/pwt/|/mobile {
    proxy_pass https://192.168.55.xx:8006;
}

location /quarantine {
    proxy_pass https://192.168.55.xx:8006;
}

location /api2 {
    location ~ /api2/(extjs|json|htmlmail)/(access/ticket$|version$) {
        proxy_pass https://192.168.55.xx:8006;
    }
    location ~ /api2/(extjs|json|htmlmail)/nodes/.+/subscription$ {
        proxy_pass https://192.168.55.xx:8006;
    }
    location ~ /api2/(extjs|json|htmlmail)/quarantine {
        proxy_pass https://192.168.55.xx:8006;
    }
    return 403;
}

location / {
    return 403;
}


Beobachtungen​

  • Quarantine Interface lädt und funktioniert
  • Login funktioniert
  • Nur der tägliche Spamreport meldet in der Chrome Console:

    https://…/pve2/ext6/ext-all.js → 403 Forbidden

Frage​

  • Wird für den Spamreport neuerdings eventuell ein zusätzlicher Pfad als Freigabe in Nginx benötigt?
Vielen Dank!