Proxmox Mail Gateway version 8.0.3

sdz

New Member
Aug 19, 2025
4
0
1
Excuse me, I am using Proxmox Mail Gateway version 8.0.3. Currently, I notice that when sending outgoing emails, the email header contains the following content: localhost.localdomain [127.0.0.1] . Many companies prohibit the IP 127.0.0.1 in their email rules, considering it a characteristic of spam. How can I modify this 127.0.0.1 ?
 
try and update to the latest version. and you should have a public ip PMG should use that but first we need to know abit about the setup you have is the server on a public dedicated ip or is it behind a firewall or someting else?
 
try and update to the latest version. and you should have a public ip PMG should use that but first we need to know abit about the setup you have is the server on a public dedicated ip or is it behind a firewall or someting else?

I have a public IP configured on the outermost firewall. The PMG (Proxmox Mail Gateway) is located behind this firewall, and port 25 of the public IP is forwarded to the PMG via NAT.
 
Hello

you can try and set the public ip so that PMG uses it.

Use smtp_bind_address if you want to show external IP

If your PMG has an internally routed public IP, you can force outgoing traffic to bind to this IP:
smtp_bind_address = <your public IP>

in the main.cf file.
 
Hello

you can try and set the public ip so that PMG uses it.

Use smtp_bind_address if you want to show external IP

If your PMG has an internally routed public IP, you can force outgoing traffic to bind to this IP:
smtp_bind_address = <your public IP>

in the main.cf file.
/etc/postfix/main.cf

After modifying this file, it restores to its original state upon restarting the system
 
/etc/postfix/main.cf

After modifying this file, it restores to its original state upon restarting the system
See: https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#pmgconfig_template_engine - the postfix configuration is done via templates.

Excuse me, I am using Proxmox Mail Gateway version 8.0.3. Currently, I notice that when sending outgoing emails, the email header contains the following content: localhost.localdomain [127.0.0.1] . Many companies prohibit the IP 127.0.0.1 in their email rules, considering it a characteristic of spam. How can I modify this 127.0.0.1 ?
127.0.0.1 is also called the loop-back ip (localhost) and is e.g. used to speak with services on the same computer via TCP/IP - PMG sends mails through the processing and then submits them to postfix for further delivery - so there is no sensible way to remove it from all received headers.

Also I'm not really aware of any mail-filtering/anti-spam/... solution which penalizes 127.0.0.1 occurring in headers?!

I hope this helps!
 
See: https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#pmgconfig_template_engine - the postfix configuration is done via templates.


127.0.0.1 is also called the loop-back ip (localhost) and is e.g. used to speak with services on the same computer via TCP/IP - PMG sends mails through the processing and then submits them to postfix for further delivery - so there is no sensible way to remove it from all received headers.

Also I'm not really aware of any mail-filtering/anti-spam/... solution which penalizes 127.0.0.1 occurring in headers?!

I hope this helps!
Thank you very much