Dear community!
I am currently trying to install Proxmox Mail Gateway behind a load balancer. This is because I have limited availability of public IP addresses and want to combine things.
Loadbalancer Public IP (example) 1.2.3.4
Loadbalancer internal IP: 10.0.0.1
PMG: 10.0.0.10
I am using nginx as a loadbalancer for HTTP/HTTPS and now added a tcp stream to the config.
This works and PMG is answering on SMTP, however, it is now displaying the IP of the load balancer 10.0.0.1 instead of the real client/sender IP. This then causes SPF to fail.
Does anyone know if PMG supports the proxy_protocol to pass on the real IP? Do I need to change something in the config to make this work?
Thanks in advance,
Jan
I am currently trying to install Proxmox Mail Gateway behind a load balancer. This is because I have limited availability of public IP addresses and want to combine things.
Loadbalancer Public IP (example) 1.2.3.4
Loadbalancer internal IP: 10.0.0.1
PMG: 10.0.0.10
I am using nginx as a loadbalancer for HTTP/HTTPS and now added a tcp stream to the config.
NGINX:
server {
listen 25;
proxy_pass 10.0.0.10:25;
proxy_protocol on;
}
This works and PMG is answering on SMTP, however, it is now displaying the IP of the load balancer 10.0.0.1 instead of the real client/sender IP. This then causes SPF to fail.
Does anyone know if PMG supports the proxy_protocol to pass on the real IP? Do I need to change something in the config to make this work?
Thanks in advance,
Jan