Hostname issue causing invalid helo .... help!

Sep 17, 2020
316
21
38
Hello All,

Not sure what changed because this has been running well for over a year.

We got blacklisted because:
helo: mgw.localdomain

Which is not the domain name.

I checked in /etc/pmg/templates/main.cf.in
While I do ave other custom settings, I never set anything manual for hostname, so those lines look like this (default):
mydomain = [% dns.domain %]
myhostname = [% dns.hostname %].[% dns.domain %]

Not sure what happened but when I look at /etc/postfix/main.cf it does have the localdomain reference.
I double checked server config and it looks correct in GUI.

Any ideas???
Not good being blacklisted...

Running: Mail Gateway 7.1-1
 
Last edited:
Side note:
After I did a config override for the hostname until we figure out how to fix it, when I was done editing the template and ran the sync tool I got this error:

pmgconfig sync --restart 1
Use of uninitialized value $domain in concatenation (.) or string at /usr/share/perl5/PMG/Utils.pm line 642.
 
I do have nameservers defined, does search really make a difference if everything is public DNS?
as written in the docs at the link i pasted - the search setting is used to get the domain-name of the system, which in turn is used in the postfix configuration.