After dist-upgrade postfix keeps changing domain to localdomain

krzykar

Member
Aug 10, 2020
5
0
6
69
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)..
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!