What should be the correct hostname of PMG

zw1d

Member
Jan 15, 2022
10
1
8
37
Hi,
in my setup I have PMG and mailcow next to it. I'm trying to figure out what is the correct DNS and hostname setup for these.

`mail.mydomain.net` is the MX server and DNS/rDNS is set to the public ip.

Port 25 goes to PMG (ip: 10.0.0.6)
Ports 80,110,143,443,465,587,993,995,4190 go to mailcow (ip: 10.0.0.7)

mailcow's hostname is set as `mail.mydomain.net` - so webmail and the certs automatically generated work correctly
pmg's hostname is `pmg.mydomain.net`

In this setup sending and receiving emails works correctly - however, when I tested an outgoing email with mail-tester.com, even though I got 10/10 score, there was one part of the report that made me wonder:
1708345049329.png


When I change hostname of pmg server to mail.mydomain.net incoming emails end up with (this is PMG log):
Code:
status=bounced (mail for [10.0.0.7]:25 loops back to myself)

What hostname should PMG have?
 
Last edited:
Thanks for the reply,
I just tested that, and nothing changes. Message bounces the same.
Code:
(mail for [10.0.0.7]:25 loops back to myself)
 
You are using 1 public IP for multiple servers hidden behind firewall with forwarded ports?
 
You are using 1 public IP for multiple servers hidden behind firewall with forwarded ports?
I do have multiple IPs, but in this setup I'm using one IP, for both mailcow and pmg. Yes, the ports are forwarded.