Ignas

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 =

Hi,

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

user@ferma:~$ hostname
ferma.devera.lt

user@ferma:~$ hostname -A

user@ferma:~$ cat /etc/hosts
127.0.0.1       localhost
127.0.1.1       ferma.devera.lt ferma
10.10.0.190     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