After dist-upgrade postfix keeps changing domain to localdomain

krzykar

Active Member
Aug 10, 2020
5
0
41
70
Hi,

After yesterday upgrade postfix changing mydomain and myhostname to localdomain (after settings something in gui)

Greetings
 
did you use pmg custom config template?
show output of /var/lib/pmg/templates/main.in.
 
In template:
Code:
mydomain = [% dns.domain %]
myhostname = [% dns.hostname %].[% dns.domain %]

/etc/hostname is correct
/etc/hosts is correct

hostname -f returns FQDN correct
 
do the mydomain and myhostname change back to localdomain after restart?
post output of postconf | grep -e mydomain -e myhostname
 
I do not know if it changes after rebbot, after changes in the GUI, for example - turning on TLS it's changes to localhost and localdomain. At the moment, I changed the template to my own.
 
the hostname change I cannot explain.
however regarding the domain-name - what's the search line in '/etc/resolv.conf' ? (pmg uses this to find the system's domain name)..