postfix myhostname configuration problem

When configuring Yast > Mail Server in main.cf the variable was assigned: myhostname = localhost But currently assignment is myhostname = hostname.domainname which results in loss of mail. Editing main.cf and restarting postfix fixes the problem.

Any suggestions to fix the problem with Yast > Mail Server?