So I keep getting errors on mail service

2019-04-11 11:08:32  [2]	postfix/sendmail	fatal: bad string length 0 < 1: myhostname =	  
2019-04-11 11:04:10  [4]	postmulti	fatal: bad string length 0 < 1: myhostname =	  
2019-04-11 11:03:58  [30]	postfix/postmap	fatal: bad string length 0 < 1: myhostname =


Nore sure where is 'system update', but log analyzer doesn't give any errors on saving.

Field is empty after save and sometimes mail service stops working, so I have to come backs here and enter hostname again and save.


hostname -A returns empty. It is Debian 9.8 (Stretch) on XCP-NG (XEN based) virtualisation (not sure if that matter).

user@ferma:~$ hostname

user@ferma:~$ hostname -A

user@ferma:~$ cat /etc/hosts       localhost       ferma.devera.lt ferma     skandinavija.today mail.skandinavija.today svetaine.dk
# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

Any ideas anyone?

2 weeks passed, but no solution.

Sometimes mail server stops working because of this (then I have to enter hostname again to make it work).

Loosing email service is absolutely unacceptable at any time of the day as incoming email gets rejected.

Join our Discord server
Write a reply Edit a reply