Bug 1217862

Summary: First start of postifx with systemctl start postfix.service mangles the config file
Product: [openSUSE] openSUSE Distribution Reporter: Roy Bellingan <admin>
Component: OtherAssignee: Peter Varkoly <varkoly>
Status: IN_PROGRESS --- QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Leap 15.5   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Roy Bellingan 2023-12-06 21:15:41 UTC
Maybe related to 1013868 ?

Installing a new suse15.5 (using lxc with fingerprint d36482cdb85c)

If I edit the /etc/postfix/main.cf adding somethig like

relayhost = 10.151.156.1
myhostname = carige.xyz

And than I do

systemctl start postfix.service

it is mangled and became this

relayhost = 
myhostname = carigexyz

o.O

If I start instead with 

postfix start

It will warn of overriding 
/usr/sbin/postconf: warning: /etc/postfix/main.cf, line 843: overriding earlier entry: relayhost=
/usr/sbin/postconf: warning: /etc/postfix/main.cf, line 844: overriding earlier entry: myhostname=localhost

but else will not touch the config...

There are other element of the config file that got altered, but those do not incur on any problem.

A full video of the event is here https://seisho.us/swap/weirdbug.mkv

o.O