Hello community,
I have PMG running as a VM inside Proxmox VE. All incoming mail on port 25 is forwarded via DNAT to the PMG VM.
Current setup:
Internet → Proxmox Host (public IP)
→ DNAT port 25 → PMG VM (10.0.0.4)
→ PMG always sees: connect from unknown[internal gateway 10.0.0.1]
Problem:
PMG always sees the internal gateway IP instead of the real external sender IP. This causes SPF checks to fail for senders with -all in their SPF record, because the internal gateway IP is not authorized to send for their domain.
What I already tried:
Question:
Is there a way to make PMG see the real sender IP without changing the network architecture? For example using a bridge network, or any other solution that works with Proxmox DNAT?
Thank you!
I have PMG running as a VM inside Proxmox VE. All incoming mail on port 25 is forwarded via DNAT to the PMG VM.
Current setup:
Internet → Proxmox Host (public IP)
→ DNAT port 25 → PMG VM (10.0.0.4)
→ PMG always sees: connect from unknown[internal gateway 10.0.0.1]
Problem:
PMG always sees the internal gateway IP instead of the real external sender IP. This causes SPF checks to fail for senders with -all in their SPF record, because the internal gateway IP is not authorized to send for their domain.
What I already tried:
- XFORWARD: configured on PMG (smtpd_authorized_xforward_hosts = internal gateway IP) but Proxmox DNAT cannot pass XFORWARD
- XCLIENT: same problem, Proxmox DNAT is in between
Question:
Is there a way to make PMG see the real sender IP without changing the network architecture? For example using a bridge network, or any other solution that works with Proxmox DNAT?
Thank you!